Lines Matching refs:dxva_cxt
262 h265d_dxva2_picture_context_t *dxva_cxt = (h265d_dxva2_picture_context_t*)dxva; in hal_h265d_v345_output_pps_packet() local
266 if (NULL == reg_ctx || dxva_cxt == NULL) { in hal_h265d_v345_output_pps_packet()
286 mpp_put_bits(&bp, dxva_cxt->pp.vps_id , 4); in hal_h265d_v345_output_pps_packet()
287 mpp_put_bits(&bp, dxva_cxt->pp.sps_id , 4); in hal_h265d_v345_output_pps_packet()
288 mpp_put_bits(&bp, dxva_cxt->pp.chroma_format_idc , 2); in hal_h265d_v345_output_pps_packet()
290 log2_min_cb_size = dxva_cxt->pp.log2_min_luma_coding_block_size_minus3 + 3; in hal_h265d_v345_output_pps_packet()
291 width = (dxva_cxt->pp.PicWidthInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet()
292 height = (dxva_cxt->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet()
296 mpp_put_bits(&bp, dxva_cxt->pp.bit_depth_luma_minus8 + 8 , 4); in hal_h265d_v345_output_pps_packet()
297 mpp_put_bits(&bp, dxva_cxt->pp.bit_depth_chroma_minus8 + 8 , 4); in hal_h265d_v345_output_pps_packet()
298 mpp_put_bits(&bp, dxva_cxt->pp.log2_max_pic_order_cnt_lsb_minus4 + 4 , 5); in hal_h265d_v345_output_pps_packet()
299 …mpp_put_bits(&bp, dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size , 2); //log2_maxa_coding… in hal_h265d_v345_output_pps_packet()
300 mpp_put_bits(&bp, dxva_cxt->pp.log2_min_luma_coding_block_size_minus3 + 3 , 3); in hal_h265d_v345_output_pps_packet()
301 mpp_put_bits(&bp, dxva_cxt->pp.log2_min_transform_block_size_minus2 + 2 , 3); in hal_h265d_v345_output_pps_packet()
303 mpp_put_bits(&bp, dxva_cxt->pp.log2_diff_max_min_transform_block_size , 2); in hal_h265d_v345_output_pps_packet()
304 mpp_put_bits(&bp, dxva_cxt->pp.max_transform_hierarchy_depth_inter , 3); in hal_h265d_v345_output_pps_packet()
305 mpp_put_bits(&bp, dxva_cxt->pp.max_transform_hierarchy_depth_intra , 3); in hal_h265d_v345_output_pps_packet()
306 mpp_put_bits(&bp, dxva_cxt->pp.scaling_list_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
307 mpp_put_bits(&bp, dxva_cxt->pp.amp_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
308 mpp_put_bits(&bp, dxva_cxt->pp.sample_adaptive_offset_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
310 mpp_put_bits(&bp, dxva_cxt->pp.pcm_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
311 …mpp_put_bits(&bp, dxva_cxt->pp.pcm_enabled_flag ? (dxva_cxt->pp.pcm_sample_bit_depth_luma_minus1 +… in hal_h265d_v345_output_pps_packet()
312 …mpp_put_bits(&bp, dxva_cxt->pp.pcm_enabled_flag ? (dxva_cxt->pp.pcm_sample_bit_depth_chroma_minus1… in hal_h265d_v345_output_pps_packet()
313 …mpp_put_bits(&bp, dxva_cxt->pp.pcm_loop_filter_disabled_flag … in hal_h265d_v345_output_pps_packet()
314 …mpp_put_bits(&bp, dxva_cxt->pp.log2_diff_max_min_pcm_luma_coding_block_size … in hal_h265d_v345_output_pps_packet()
315 …mpp_put_bits(&bp, dxva_cxt->pp.pcm_enabled_flag ? (dxva_cxt->pp.log2_min_pcm_luma_coding_block_siz… in hal_h265d_v345_output_pps_packet()
317 mpp_put_bits(&bp, dxva_cxt->pp.num_short_term_ref_pic_sets , 7); in hal_h265d_v345_output_pps_packet()
318 mpp_put_bits(&bp, dxva_cxt->pp.long_term_ref_pics_present_flag , 1); in hal_h265d_v345_output_pps_packet()
319 mpp_put_bits(&bp, dxva_cxt->pp.num_long_term_ref_pics_sps , 6); in hal_h265d_v345_output_pps_packet()
320 mpp_put_bits(&bp, dxva_cxt->pp.sps_temporal_mvp_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
321 mpp_put_bits(&bp, dxva_cxt->pp.strong_intra_smoothing_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
326 mpp_put_bits(&bp, dxva_cxt->pp.sps_max_dec_pic_buffering_minus1, 4); in hal_h265d_v345_output_pps_packet()
331 mpp_put_bits(&bp, dxva_cxt->pp.pps_id , 6 ); in hal_h265d_v345_output_pps_packet()
332 mpp_put_bits(&bp, dxva_cxt->pp.sps_id , 4 ); in hal_h265d_v345_output_pps_packet()
333 mpp_put_bits(&bp, dxva_cxt->pp.dependent_slice_segments_enabled_flag , 1 ); in hal_h265d_v345_output_pps_packet()
334 mpp_put_bits(&bp, dxva_cxt->pp.output_flag_present_flag , 1 ); in hal_h265d_v345_output_pps_packet()
335 mpp_put_bits(&bp, dxva_cxt->pp.num_extra_slice_header_bits , 13); in hal_h265d_v345_output_pps_packet()
336 mpp_put_bits(&bp, dxva_cxt->pp.sign_data_hiding_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
337 mpp_put_bits(&bp, dxva_cxt->pp.cabac_init_present_flag , 1); in hal_h265d_v345_output_pps_packet()
338 mpp_put_bits(&bp, dxva_cxt->pp.num_ref_idx_l0_default_active_minus1 + 1 , 4); in hal_h265d_v345_output_pps_packet()
339 mpp_put_bits(&bp, dxva_cxt->pp.num_ref_idx_l1_default_active_minus1 + 1 , 4); in hal_h265d_v345_output_pps_packet()
340 mpp_put_bits(&bp, dxva_cxt->pp.init_qp_minus26 , 7); in hal_h265d_v345_output_pps_packet()
341 mpp_put_bits(&bp, dxva_cxt->pp.constrained_intra_pred_flag , 1); in hal_h265d_v345_output_pps_packet()
342 mpp_put_bits(&bp, dxva_cxt->pp.transform_skip_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
343 mpp_put_bits(&bp, dxva_cxt->pp.cu_qp_delta_enabled_flag , 1); //164 in hal_h265d_v345_output_pps_packet()
346 dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size - in hal_h265d_v345_output_pps_packet()
347 dxva_cxt->pp.diff_cu_qp_delta_depth , 3); in hal_h265d_v345_output_pps_packet()
350 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size, dxva_cxt->pp.diff_cu_qp_delta_depth ); in hal_h265d_v345_output_pps_packet()
352 mpp_put_bits(&bp, dxva_cxt->pp.pps_cb_qp_offset , 5); in hal_h265d_v345_output_pps_packet()
353 mpp_put_bits(&bp, dxva_cxt->pp.pps_cr_qp_offset , 5); in hal_h265d_v345_output_pps_packet()
354 mpp_put_bits(&bp, dxva_cxt->pp.pps_slice_chroma_qp_offsets_present_flag , 1); in hal_h265d_v345_output_pps_packet()
355 mpp_put_bits(&bp, dxva_cxt->pp.weighted_pred_flag , 1); in hal_h265d_v345_output_pps_packet()
356 mpp_put_bits(&bp, dxva_cxt->pp.weighted_bipred_flag , 1); in hal_h265d_v345_output_pps_packet()
357 mpp_put_bits(&bp, dxva_cxt->pp.transquant_bypass_enabled_flag , 1 ); in hal_h265d_v345_output_pps_packet()
358 mpp_put_bits(&bp, dxva_cxt->pp.tiles_enabled_flag , 1 ); in hal_h265d_v345_output_pps_packet()
359 mpp_put_bits(&bp, dxva_cxt->pp.entropy_coding_sync_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
360 mpp_put_bits(&bp, dxva_cxt->pp.pps_loop_filter_across_slices_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
361 mpp_put_bits(&bp, dxva_cxt->pp.loop_filter_across_tiles_enabled_flag , 1); //185 in hal_h265d_v345_output_pps_packet()
362 mpp_put_bits(&bp, dxva_cxt->pp.deblocking_filter_override_enabled_flag , 1); in hal_h265d_v345_output_pps_packet()
363 mpp_put_bits(&bp, dxva_cxt->pp.pps_deblocking_filter_disabled_flag , 1); in hal_h265d_v345_output_pps_packet()
364 mpp_put_bits(&bp, dxva_cxt->pp.pps_beta_offset_div2 , 4); in hal_h265d_v345_output_pps_packet()
365 mpp_put_bits(&bp, dxva_cxt->pp.pps_tc_offset_div2 , 4); in hal_h265d_v345_output_pps_packet()
366 mpp_put_bits(&bp, dxva_cxt->pp.lists_modification_present_flag , 1); in hal_h265d_v345_output_pps_packet()
367 mpp_put_bits(&bp, dxva_cxt->pp.log2_parallel_merge_level_minus2 + 2 , 3); in hal_h265d_v345_output_pps_packet()
368 mpp_put_bits(&bp, dxva_cxt->pp.slice_segment_header_extension_present_flag , 1); in hal_h265d_v345_output_pps_packet()
370 …mpp_put_bits(&bp, dxva_cxt->pp.tiles_enabled_flag ? dxva_cxt->pp.num_tile_columns_minus1 + 1 : 0, … in hal_h265d_v345_output_pps_packet()
371 …mpp_put_bits(&bp, dxva_cxt->pp.tiles_enabled_flag ? dxva_cxt->pp.num_tile_rows_minus1 + 1 : 0 , 5 … in hal_h265d_v345_output_pps_packet()
382 if (dxva_cxt->pp.tiles_enabled_flag) { in hal_h265d_v345_output_pps_packet()
384 if (dxva_cxt->pp.uniform_spacing_flag == 0) { in hal_h265d_v345_output_pps_packet()
385 … RK_S32 maxcuwidth = dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size + log2_min_cb_size; in hal_h265d_v345_output_pps_packet()
391 for (i = 0; i < dxva_cxt->pp.num_tile_columns_minus1; i++) { in hal_h265d_v345_output_pps_packet()
392 column_width[i] = dxva_cxt->pp.column_width_minus1[i] + 1; in hal_h265d_v345_output_pps_packet()
398 for (i = 0; i < dxva_cxt->pp.num_tile_rows_minus1; i++) { in hal_h265d_v345_output_pps_packet()
399 row_height[i] = dxva_cxt->pp.row_height_minus1[i] + 1; in hal_h265d_v345_output_pps_packet()
408 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size)) - 1) in hal_h265d_v345_output_pps_packet()
410 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size)); in hal_h265d_v345_output_pps_packet()
413 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size)) - 1) in hal_h265d_v345_output_pps_packet()
415 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size)); in hal_h265d_v345_output_pps_packet()
417 for (i = 0; i < dxva_cxt->pp.num_tile_columns_minus1 + 1; i++) in hal_h265d_v345_output_pps_packet()
418 … column_width[i] = ((i + 1) * pic_in_cts_width) / (dxva_cxt->pp.num_tile_columns_minus1 + 1) - in hal_h265d_v345_output_pps_packet()
419 … (i * pic_in_cts_width) / (dxva_cxt->pp.num_tile_columns_minus1 + 1); in hal_h265d_v345_output_pps_packet()
421 for (i = 0; i < dxva_cxt->pp.num_tile_rows_minus1 + 1; i++) in hal_h265d_v345_output_pps_packet()
422 … row_height[i] = ((i + 1) * pic_in_cts_height) / (dxva_cxt->pp.num_tile_rows_minus1 + 1) - in hal_h265d_v345_output_pps_packet()
423 … (i * pic_in_cts_height) / (dxva_cxt->pp.num_tile_rows_minus1 + 1); in hal_h265d_v345_output_pps_packet()
427 …RK_S32 MaxCUWidth = (1 << (dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size + log2_min_cb_siz… in hal_h265d_v345_output_pps_packet()
476 h265d_dxva2_picture_context_t *dxva_cxt = (h265d_dxva2_picture_context_t*)dxva; in hal_h265d_output_pps_packet() local
480 if (NULL == reg_ctx || dxva_cxt == NULL) { in hal_h265d_output_pps_packet()
500 mpp_put_bits(&bp, dxva_cxt->pp.vps_id , 4); in hal_h265d_output_pps_packet()
501 mpp_put_bits(&bp, dxva_cxt->pp.sps_id , 4); in hal_h265d_output_pps_packet()
502 mpp_put_bits(&bp, dxva_cxt->pp.chroma_format_idc , 2); in hal_h265d_output_pps_packet()
504 log2_min_cb_size = dxva_cxt->pp.log2_min_luma_coding_block_size_minus3 + 3; in hal_h265d_output_pps_packet()
505 width = (dxva_cxt->pp.PicWidthInMinCbsY << log2_min_cb_size); in hal_h265d_output_pps_packet()
506 height = (dxva_cxt->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_output_pps_packet()
510 mpp_put_bits(&bp, dxva_cxt->pp.bit_depth_luma_minus8 + 8 , 4); in hal_h265d_output_pps_packet()
511 mpp_put_bits(&bp, dxva_cxt->pp.bit_depth_chroma_minus8 + 8 , 4); in hal_h265d_output_pps_packet()
512 mpp_put_bits(&bp, dxva_cxt->pp.log2_max_pic_order_cnt_lsb_minus4 + 4 , 5); in hal_h265d_output_pps_packet()
513 …mpp_put_bits(&bp, dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size , 2); //log2_maxa_coding… in hal_h265d_output_pps_packet()
514 mpp_put_bits(&bp, dxva_cxt->pp.log2_min_luma_coding_block_size_minus3 + 3 , 3); in hal_h265d_output_pps_packet()
515 mpp_put_bits(&bp, dxva_cxt->pp.log2_min_transform_block_size_minus2 + 2 , 3); in hal_h265d_output_pps_packet()
517 mpp_put_bits(&bp, dxva_cxt->pp.log2_diff_max_min_transform_block_size , 2); in hal_h265d_output_pps_packet()
518 mpp_put_bits(&bp, dxva_cxt->pp.max_transform_hierarchy_depth_inter , 3); in hal_h265d_output_pps_packet()
519 mpp_put_bits(&bp, dxva_cxt->pp.max_transform_hierarchy_depth_intra , 3); in hal_h265d_output_pps_packet()
520 mpp_put_bits(&bp, dxva_cxt->pp.scaling_list_enabled_flag , 1); in hal_h265d_output_pps_packet()
521 mpp_put_bits(&bp, dxva_cxt->pp.amp_enabled_flag , 1); in hal_h265d_output_pps_packet()
522 mpp_put_bits(&bp, dxva_cxt->pp.sample_adaptive_offset_enabled_flag , 1); in hal_h265d_output_pps_packet()
524 mpp_put_bits(&bp, dxva_cxt->pp.pcm_enabled_flag , 1); in hal_h265d_output_pps_packet()
525 …mpp_put_bits(&bp, dxva_cxt->pp.pcm_enabled_flag ? (dxva_cxt->pp.pcm_sample_bit_depth_luma_minus1 +… in hal_h265d_output_pps_packet()
526 …mpp_put_bits(&bp, dxva_cxt->pp.pcm_enabled_flag ? (dxva_cxt->pp.pcm_sample_bit_depth_chroma_minus1… in hal_h265d_output_pps_packet()
527 …mpp_put_bits(&bp, dxva_cxt->pp.pcm_loop_filter_disabled_flag … in hal_h265d_output_pps_packet()
528 …mpp_put_bits(&bp, dxva_cxt->pp.log2_diff_max_min_pcm_luma_coding_block_size … in hal_h265d_output_pps_packet()
529 …mpp_put_bits(&bp, dxva_cxt->pp.pcm_enabled_flag ? (dxva_cxt->pp.log2_min_pcm_luma_coding_block_siz… in hal_h265d_output_pps_packet()
531 mpp_put_bits(&bp, dxva_cxt->pp.num_short_term_ref_pic_sets , 7); in hal_h265d_output_pps_packet()
532 mpp_put_bits(&bp, dxva_cxt->pp.long_term_ref_pics_present_flag , 1); in hal_h265d_output_pps_packet()
533 mpp_put_bits(&bp, dxva_cxt->pp.num_long_term_ref_pics_sps , 6); in hal_h265d_output_pps_packet()
534 mpp_put_bits(&bp, dxva_cxt->pp.sps_temporal_mvp_enabled_flag , 1); in hal_h265d_output_pps_packet()
535 mpp_put_bits(&bp, dxva_cxt->pp.strong_intra_smoothing_enabled_flag , 1); in hal_h265d_output_pps_packet()
542 mpp_put_bits(&bp, dxva_cxt->pp.pps_id , 6 ); in hal_h265d_output_pps_packet()
543 mpp_put_bits(&bp, dxva_cxt->pp.sps_id , 4 ); in hal_h265d_output_pps_packet()
544 mpp_put_bits(&bp, dxva_cxt->pp.dependent_slice_segments_enabled_flag , 1 ); in hal_h265d_output_pps_packet()
545 mpp_put_bits(&bp, dxva_cxt->pp.output_flag_present_flag , 1 ); in hal_h265d_output_pps_packet()
546 mpp_put_bits(&bp, dxva_cxt->pp.num_extra_slice_header_bits , 13); in hal_h265d_output_pps_packet()
547 mpp_put_bits(&bp, dxva_cxt->pp.sign_data_hiding_enabled_flag , 1); in hal_h265d_output_pps_packet()
548 mpp_put_bits(&bp, dxva_cxt->pp.cabac_init_present_flag , 1); in hal_h265d_output_pps_packet()
549 mpp_put_bits(&bp, dxva_cxt->pp.num_ref_idx_l0_default_active_minus1 + 1 , 4); in hal_h265d_output_pps_packet()
550 mpp_put_bits(&bp, dxva_cxt->pp.num_ref_idx_l1_default_active_minus1 + 1 , 4); in hal_h265d_output_pps_packet()
551 mpp_put_bits(&bp, dxva_cxt->pp.init_qp_minus26 , 7); in hal_h265d_output_pps_packet()
552 mpp_put_bits(&bp, dxva_cxt->pp.constrained_intra_pred_flag , 1); in hal_h265d_output_pps_packet()
553 mpp_put_bits(&bp, dxva_cxt->pp.transform_skip_enabled_flag , 1); in hal_h265d_output_pps_packet()
554 mpp_put_bits(&bp, dxva_cxt->pp.cu_qp_delta_enabled_flag , 1); in hal_h265d_output_pps_packet()
557 dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size - in hal_h265d_output_pps_packet()
558 dxva_cxt->pp.diff_cu_qp_delta_depth , 3); in hal_h265d_output_pps_packet()
561 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size, dxva_cxt->pp.diff_cu_qp_delta_depth ); in hal_h265d_output_pps_packet()
563 mpp_put_bits(&bp, dxva_cxt->pp.pps_cb_qp_offset , 5); in hal_h265d_output_pps_packet()
564 mpp_put_bits(&bp, dxva_cxt->pp.pps_cr_qp_offset , 5); in hal_h265d_output_pps_packet()
565 mpp_put_bits(&bp, dxva_cxt->pp.pps_slice_chroma_qp_offsets_present_flag , 1); in hal_h265d_output_pps_packet()
566 mpp_put_bits(&bp, dxva_cxt->pp.weighted_pred_flag , 1); in hal_h265d_output_pps_packet()
567 mpp_put_bits(&bp, dxva_cxt->pp.weighted_bipred_flag , 1); in hal_h265d_output_pps_packet()
568 mpp_put_bits(&bp, dxva_cxt->pp.transquant_bypass_enabled_flag , 1 ); in hal_h265d_output_pps_packet()
569 mpp_put_bits(&bp, dxva_cxt->pp.tiles_enabled_flag , 1 ); in hal_h265d_output_pps_packet()
570 mpp_put_bits(&bp, dxva_cxt->pp.entropy_coding_sync_enabled_flag , 1); in hal_h265d_output_pps_packet()
571 mpp_put_bits(&bp, dxva_cxt->pp.pps_loop_filter_across_slices_enabled_flag , 1); in hal_h265d_output_pps_packet()
572 mpp_put_bits(&bp, dxva_cxt->pp.loop_filter_across_tiles_enabled_flag , 1); in hal_h265d_output_pps_packet()
574 mpp_put_bits(&bp, dxva_cxt->pp.deblocking_filter_override_enabled_flag , 1); in hal_h265d_output_pps_packet()
575 mpp_put_bits(&bp, dxva_cxt->pp.pps_deblocking_filter_disabled_flag , 1); in hal_h265d_output_pps_packet()
576 mpp_put_bits(&bp, dxva_cxt->pp.pps_beta_offset_div2 , 4); in hal_h265d_output_pps_packet()
577 mpp_put_bits(&bp, dxva_cxt->pp.pps_tc_offset_div2 , 4); in hal_h265d_output_pps_packet()
578 mpp_put_bits(&bp, dxva_cxt->pp.lists_modification_present_flag , 1); in hal_h265d_output_pps_packet()
579 mpp_put_bits(&bp, dxva_cxt->pp.log2_parallel_merge_level_minus2 + 2 , 3); in hal_h265d_output_pps_packet()
583 mpp_put_bits(&bp, dxva_cxt->pp.num_tile_columns_minus1 + 1, 5); in hal_h265d_output_pps_packet()
584 mpp_put_bits(&bp, dxva_cxt->pp.num_tile_rows_minus1 + 1 , 5 ); in hal_h265d_output_pps_packet()
596 if (dxva_cxt->pp.tiles_enabled_flag) { in hal_h265d_output_pps_packet()
597 if (dxva_cxt->pp.uniform_spacing_flag == 0) { in hal_h265d_output_pps_packet()
598 … RK_S32 maxcuwidth = dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size + log2_min_cb_size; in hal_h265d_output_pps_packet()
604 for (i = 0; i < dxva_cxt->pp.num_tile_columns_minus1; i++) { in hal_h265d_output_pps_packet()
605 column_width[i] = dxva_cxt->pp.column_width_minus1[i] + 1; in hal_h265d_output_pps_packet()
611 for (i = 0; i < dxva_cxt->pp.num_tile_rows_minus1; i++) { in hal_h265d_output_pps_packet()
612 row_height[i] = dxva_cxt->pp.row_height_minus1[i] + 1; in hal_h265d_output_pps_packet()
621 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size)) - 1) in hal_h265d_output_pps_packet()
623 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size)); in hal_h265d_output_pps_packet()
626 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size)) - 1) in hal_h265d_output_pps_packet()
628 … dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size)); in hal_h265d_output_pps_packet()
630 for (i = 0; i < dxva_cxt->pp.num_tile_columns_minus1 + 1; i++) in hal_h265d_output_pps_packet()
631 … column_width[i] = ((i + 1) * pic_in_cts_width) / (dxva_cxt->pp.num_tile_columns_minus1 + 1) - in hal_h265d_output_pps_packet()
632 … (i * pic_in_cts_width) / (dxva_cxt->pp.num_tile_columns_minus1 + 1); in hal_h265d_output_pps_packet()
634 for (i = 0; i < dxva_cxt->pp.num_tile_rows_minus1 + 1; i++) in hal_h265d_output_pps_packet()
635 … row_height[i] = ((i + 1) * pic_in_cts_height) / (dxva_cxt->pp.num_tile_rows_minus1 + 1) - in hal_h265d_output_pps_packet()
636 … (i * pic_in_cts_height) / (dxva_cxt->pp.num_tile_rows_minus1 + 1); in hal_h265d_output_pps_packet()
640 …RK_S32 MaxCUWidth = (1 << (dxva_cxt->pp.log2_diff_max_min_luma_coding_block_size + log2_min_cb_siz… in hal_h265d_output_pps_packet()
681 h265d_dxva2_picture_context_t *dxva_cxt = in update_stream_buffer() local
686 RK_U32 stream_size = dxva_cxt->bitstream_size; in update_stream_buffer()
691 for (i = 0; i < dxva_cxt->slice_count; i++) { in update_stream_buffer()
692 if (dxva_cxt->slice_cut_param[i].is_enable) { in update_stream_buffer()
694 bit_left = 8 - (dxva_cxt->slice_cut_param[i].start_bit & 0x7); in update_stream_buffer()
695 start_byte = dxva_cxt->slice_cut_param[i].start_bit >> 3; in update_stream_buffer()
696 end_byte = (dxva_cxt->slice_cut_param[i].end_bit + 7) >> 3; in update_stream_buffer()
697 buf = ptr + (dxva_cxt->slice_short[i].BSNALunitDataLocation - cut_byte_acc); in update_stream_buffer()
701 dxva_cxt->slice_cut_param[i].start_bit, start_byte, buf[start_byte], in update_stream_buffer()
702 dxva_cxt->slice_cut_param[i].end_bit, end_byte, buf[end_byte]); in update_stream_buffer()
709 if ((dxva_cxt->slice_cut_param[i].end_bit & 0x7) == 0 && buf[end_byte] == 0x80) in update_stream_buffer()
713 i, dxva_cxt->slice_short[i].BSNALunitDataLocation, dxva_cxt->slice_count, in update_stream_buffer()
714 dxva_cxt->slice_short[i].SliceBytesInBuffer, dxva_cxt->bitstream_size); in update_stream_buffer()
717 stream_size - dxva_cxt->slice_short[i].BSNALunitDataLocation - end_byte); in update_stream_buffer()
720 dxva_cxt->slice_short[i].SliceBytesInBuffer -= cut_byte; in update_stream_buffer()
721 dxva_cxt->bitstream_size -= cut_byte; in update_stream_buffer()
748 h265d_dxva2_picture_context_t *dxva_cxt = in hal_h265d_rkv_gen_regs() local
799 mpp_buf_slot_get_prop(reg_ctx->slots, dxva_cxt->pp.CurrPic.Index7Bits, in hal_h265d_rkv_gen_regs()
806 hw_regs->sw_picparameter.sw_slice_num = dxva_cxt->slice_count; in hal_h265d_rkv_gen_regs()
812 mpp_buf_slot_get_prop(reg_ctx->slots, dxva_cxt->pp.CurrPic.Index7Bits, in hal_h265d_rkv_gen_regs()
823 hw_regs->sw_cur_poc = dxva_cxt->pp.CurrPicOrderCntVal; in hal_h265d_rkv_gen_regs()
828 if ( dxva_cxt->bitstream == NULL) { in hal_h265d_rkv_gen_regs()
829 dxva_cxt->bitstream = mpp_buffer_get_ptr(streambuf); in hal_h265d_rkv_gen_regs()
844 if (dxva_cxt->pp.slice_segment_header_extension_present_flag && !reg_ctx->is_v345) { in hal_h265d_rkv_gen_regs()
855 hw_regs->sw_stream_len = ((dxva_cxt->bitstream_size + 15) in hal_h265d_rkv_gen_regs()
860 aglin_offset = hw_regs->sw_stream_len - dxva_cxt->bitstream_size; in hal_h265d_rkv_gen_regs()
862 memset((void *)(dxva_cxt->bitstream + dxva_cxt->bitstream_size), 0, in hal_h265d_rkv_gen_regs()
867 hw_regs->sw_interrupt.sw_wr_ddr_align_en = dxva_cxt->pp.tiles_enabled_flag in hal_h265d_rkv_gen_regs()
875 for (i = 0; i < (RK_S32)MPP_ARRAY_ELEMS(dxva_cxt->pp.RefPicList); i++) { in hal_h265d_rkv_gen_regs()
876 if (dxva_cxt->pp.RefPicList[i].bPicEntry != 0xff && in hal_h265d_rkv_gen_regs()
877 dxva_cxt->pp.RefPicList[i].bPicEntry != 0x7f) { in hal_h265d_rkv_gen_regs()
878 hw_regs->sw_refer_poc[i] = dxva_cxt->pp.PicOrderCntValList[i]; in hal_h265d_rkv_gen_regs()
880 dxva_cxt->pp.RefPicList[i].Index7Bits, in hal_h265d_rkv_gen_regs()