Lines Matching refs:pp

301     if (!dxva_ctx->pp.scaling_list_enabled_flag) {  in hal_h265d_vdpu384a_scalinglist_packet()
369 log2_min_cb_size = dxva_ctx->pp.log2_min_luma_coding_block_size_minus3 + 3; in hal_h265d_v345_output_pps_packet()
370 width = (dxva_ctx->pp.PicWidthInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet()
371 height = (dxva_ctx->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet()
375 if (dxva_ctx->pp.ps_update_flag) { in hal_h265d_v345_output_pps_packet()
376 mpp_put_bits(&bp, dxva_ctx->pp.vps_id, 4); in hal_h265d_v345_output_pps_packet()
377 mpp_put_bits(&bp, dxva_ctx->pp.sps_id, 4); in hal_h265d_v345_output_pps_packet()
378 mpp_put_bits(&bp, dxva_ctx->pp.chroma_format_idc, 2); in hal_h265d_v345_output_pps_packet()
382 mpp_put_bits(&bp, dxva_ctx->pp.bit_depth_luma_minus8, 3); in hal_h265d_v345_output_pps_packet()
383 mpp_put_bits(&bp, dxva_ctx->pp.bit_depth_chroma_minus8, 3); in hal_h265d_v345_output_pps_packet()
384 mpp_put_bits(&bp, dxva_ctx->pp.log2_max_pic_order_cnt_lsb_minus4 + 4, 5); in hal_h265d_v345_output_pps_packet()
385 mpp_put_bits(&bp, dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size, 2); in hal_h265d_v345_output_pps_packet()
386 mpp_put_bits(&bp, dxva_ctx->pp.log2_min_luma_coding_block_size_minus3 + 3, 3); in hal_h265d_v345_output_pps_packet()
387 mpp_put_bits(&bp, dxva_ctx->pp.log2_min_transform_block_size_minus2 + 2, 3); in hal_h265d_v345_output_pps_packet()
389 mpp_put_bits(&bp, dxva_ctx->pp.log2_diff_max_min_transform_block_size, 2); in hal_h265d_v345_output_pps_packet()
390 mpp_put_bits(&bp, dxva_ctx->pp.max_transform_hierarchy_depth_inter, 3); in hal_h265d_v345_output_pps_packet()
391 mpp_put_bits(&bp, dxva_ctx->pp.max_transform_hierarchy_depth_intra, 3); in hal_h265d_v345_output_pps_packet()
392 mpp_put_bits(&bp, dxva_ctx->pp.scaling_list_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
393 mpp_put_bits(&bp, dxva_ctx->pp.amp_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
394 mpp_put_bits(&bp, dxva_ctx->pp.sample_adaptive_offset_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
396 mpp_put_bits(&bp, dxva_ctx->pp.pcm_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
397 …mpp_put_bits(&bp, dxva_ctx->pp.pcm_enabled_flag ? (dxva_ctx->pp.pcm_sample_bit_depth_luma_minus1 +… in hal_h265d_v345_output_pps_packet()
398 …mpp_put_bits(&bp, dxva_ctx->pp.pcm_enabled_flag ? (dxva_ctx->pp.pcm_sample_bit_depth_chroma_minus1… in hal_h265d_v345_output_pps_packet()
399 mpp_put_bits(&bp, dxva_ctx->pp.pcm_loop_filter_disabled_flag, 1); in hal_h265d_v345_output_pps_packet()
400 mpp_put_bits(&bp, dxva_ctx->pp.log2_diff_max_min_pcm_luma_coding_block_size, 3); in hal_h265d_v345_output_pps_packet()
401 …mpp_put_bits(&bp, dxva_ctx->pp.pcm_enabled_flag ? (dxva_ctx->pp.log2_min_pcm_luma_coding_block_siz… in hal_h265d_v345_output_pps_packet()
403 mpp_put_bits(&bp, dxva_ctx->pp.num_short_term_ref_pic_sets, 7); in hal_h265d_v345_output_pps_packet()
404 mpp_put_bits(&bp, dxva_ctx->pp.long_term_ref_pics_present_flag, 1); in hal_h265d_v345_output_pps_packet()
405 mpp_put_bits(&bp, dxva_ctx->pp.num_long_term_ref_pics_sps, 6); in hal_h265d_v345_output_pps_packet()
406 mpp_put_bits(&bp, dxva_ctx->pp.sps_temporal_mvp_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
407 mpp_put_bits(&bp, dxva_ctx->pp.strong_intra_smoothing_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
409 mpp_put_bits(&bp, dxva_ctx->pp.transform_skip_rotation_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
410 mpp_put_bits(&bp, dxva_ctx->pp.transform_skip_context_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
411 mpp_put_bits(&bp, dxva_ctx->pp.strong_intra_smoothing_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
412 mpp_put_bits(&bp, dxva_ctx->pp.implicit_rdpcm_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
413 mpp_put_bits(&bp, dxva_ctx->pp.explicit_rdpcm_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
414 mpp_put_bits(&bp, dxva_ctx->pp.extended_precision_processing_flag, 1); in hal_h265d_v345_output_pps_packet()
415 mpp_put_bits(&bp, dxva_ctx->pp.intra_smoothing_disabled_flag, 1); in hal_h265d_v345_output_pps_packet()
416 mpp_put_bits(&bp, dxva_ctx->pp.sps_max_dec_pic_buffering_minus1, 4); in hal_h265d_v345_output_pps_packet()
417 mpp_put_bits(&bp, dxva_ctx->pp.separate_colour_plane_flag, 1); in hal_h265d_v345_output_pps_packet()
418 mpp_put_bits(&bp, dxva_ctx->pp.high_precision_offsets_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
419 mpp_put_bits(&bp, dxva_ctx->pp.persistent_rice_adaptation_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
422 mpp_put_bits(&bp, dxva_ctx->pp.pps_id, 6); in hal_h265d_v345_output_pps_packet()
423 mpp_put_bits(&bp, dxva_ctx->pp.sps_id, 4); in hal_h265d_v345_output_pps_packet()
424 mpp_put_bits(&bp, dxva_ctx->pp.dependent_slice_segments_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
425 mpp_put_bits(&bp, dxva_ctx->pp.output_flag_present_flag, 1); in hal_h265d_v345_output_pps_packet()
426 mpp_put_bits(&bp, dxva_ctx->pp.num_extra_slice_header_bits, 13); in hal_h265d_v345_output_pps_packet()
428 mpp_put_bits(&bp, dxva_ctx->pp.sign_data_hiding_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
429 mpp_put_bits(&bp, dxva_ctx->pp.cabac_init_present_flag, 1); in hal_h265d_v345_output_pps_packet()
430 mpp_put_bits(&bp, dxva_ctx->pp.num_ref_idx_l0_default_active_minus1 + 1, 4); in hal_h265d_v345_output_pps_packet()
431 mpp_put_bits(&bp, dxva_ctx->pp.num_ref_idx_l1_default_active_minus1 + 1, 4); in hal_h265d_v345_output_pps_packet()
432 mpp_put_bits(&bp, dxva_ctx->pp.init_qp_minus26, 7); in hal_h265d_v345_output_pps_packet()
433 mpp_put_bits(&bp, dxva_ctx->pp.constrained_intra_pred_flag, 1); in hal_h265d_v345_output_pps_packet()
434 mpp_put_bits(&bp, dxva_ctx->pp.transform_skip_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
435 mpp_put_bits(&bp, dxva_ctx->pp.cu_qp_delta_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
436 …mpp_put_bits(&bp, log2_min_cb_size + dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size - dxva_… in hal_h265d_v345_output_pps_packet()
438 mpp_put_bits(&bp, dxva_ctx->pp.pps_cb_qp_offset, 5); in hal_h265d_v345_output_pps_packet()
439 mpp_put_bits(&bp, dxva_ctx->pp.pps_cr_qp_offset, 5); in hal_h265d_v345_output_pps_packet()
440 mpp_put_bits(&bp, dxva_ctx->pp.pps_slice_chroma_qp_offsets_present_flag, 1); in hal_h265d_v345_output_pps_packet()
441 mpp_put_bits(&bp, dxva_ctx->pp.weighted_pred_flag, 1); in hal_h265d_v345_output_pps_packet()
442 mpp_put_bits(&bp, dxva_ctx->pp.weighted_bipred_flag, 1); in hal_h265d_v345_output_pps_packet()
443 mpp_put_bits(&bp, dxva_ctx->pp.transquant_bypass_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
444 mpp_put_bits(&bp, dxva_ctx->pp.tiles_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
445 mpp_put_bits(&bp, dxva_ctx->pp.entropy_coding_sync_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
446 mpp_put_bits(&bp, dxva_ctx->pp.pps_loop_filter_across_slices_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
448 mpp_put_bits(&bp, dxva_ctx->pp.loop_filter_across_tiles_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
449 mpp_put_bits(&bp, dxva_ctx->pp.deblocking_filter_override_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
450 mpp_put_bits(&bp, dxva_ctx->pp.pps_deblocking_filter_disabled_flag, 1); in hal_h265d_v345_output_pps_packet()
451 mpp_put_bits(&bp, dxva_ctx->pp.pps_beta_offset_div2, 4); in hal_h265d_v345_output_pps_packet()
452 mpp_put_bits(&bp, dxva_ctx->pp.pps_tc_offset_div2, 4); in hal_h265d_v345_output_pps_packet()
453 mpp_put_bits(&bp, dxva_ctx->pp.lists_modification_present_flag, 1); in hal_h265d_v345_output_pps_packet()
454 mpp_put_bits(&bp, dxva_ctx->pp.log2_parallel_merge_level_minus2 + 2, 3); in hal_h265d_v345_output_pps_packet()
455 mpp_put_bits(&bp, dxva_ctx->pp.slice_segment_header_extension_present_flag, 1); in hal_h265d_v345_output_pps_packet()
459 if (dxva_ctx->pp.log2_max_transform_skip_block_size > 2) { in hal_h265d_v345_output_pps_packet()
460 mpp_put_bits(&bp, dxva_ctx->pp.log2_max_transform_skip_block_size - 2, 2); in hal_h265d_v345_output_pps_packet()
464 mpp_put_bits(&bp, dxva_ctx->pp.cross_component_prediction_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
465 mpp_put_bits(&bp, dxva_ctx->pp.chroma_qp_offset_list_enabled_flag, 1); in hal_h265d_v345_output_pps_packet()
468 … dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size - in hal_h265d_v345_output_pps_packet()
469 dxva_ctx->pp.diff_cu_chroma_qp_offset_depth; in hal_h265d_v345_output_pps_packet()
472 mpp_put_bits(&bp, dxva_ctx->pp.cb_qp_offset_list[i], 5); in hal_h265d_v345_output_pps_packet()
474 mpp_put_bits(&bp, dxva_ctx->pp.cr_qp_offset_list[i], 5); in hal_h265d_v345_output_pps_packet()
475 mpp_put_bits(&bp, dxva_ctx->pp.chroma_qp_offset_list_len_minus1, 3); in hal_h265d_v345_output_pps_packet()
492 for (i = 0; i < (RK_S32)MPP_ARRAY_ELEMS(dxva_ctx->pp.RefPicList); i++) { in hal_h265d_v345_output_pps_packet()
493 if (dxva_ctx->pp.RefPicList[i].bPicEntry != 0xff && in hal_h265d_v345_output_pps_packet()
494 dxva_ctx->pp.RefPicList[i].bPicEntry != 0x7f) { in hal_h265d_v345_output_pps_packet()
496 refpic_poc[i] = dxva_ctx->pp.PicOrderCntValList[i]; in hal_h265d_v345_output_pps_packet()
503 mpp_put_bits(&bp, dxva_ctx->pp.current_poc, 32); in hal_h265d_v345_output_pps_packet()
514 …mpp_put_bits(&bp, dxva_ctx->pp.tiles_enabled_flag ? (dxva_ctx->pp.num_tile_columns_minus1 + 1) : 1… in hal_h265d_v345_output_pps_packet()
515 …mpp_put_bits(&bp, dxva_ctx->pp.tiles_enabled_flag ? (dxva_ctx->pp.num_tile_rows_minus1 + 1) : 1, 5… in hal_h265d_v345_output_pps_packet()
524 if (dxva_ctx->pp.tiles_enabled_flag) { in hal_h265d_v345_output_pps_packet()
525 if (dxva_ctx->pp.uniform_spacing_flag == 0) { in hal_h265d_v345_output_pps_packet()
526 … RK_S32 maxcuwidth = dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size + log2_min_cb_size; in hal_h265d_v345_output_pps_packet()
532 for (i = 0; i < dxva_ctx->pp.num_tile_columns_minus1; i++) { in hal_h265d_v345_output_pps_packet()
533 column_width[i] = dxva_ctx->pp.column_width_minus1[i] + 1; in hal_h265d_v345_output_pps_packet()
539 for (i = 0; i < dxva_ctx->pp.num_tile_rows_minus1; i++) { in hal_h265d_v345_output_pps_packet()
540 row_height[i] = dxva_ctx->pp.row_height_minus1[i] + 1; in hal_h265d_v345_output_pps_packet()
547 … dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size)) - 1) in hal_h265d_v345_output_pps_packet()
549 … dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size)); in hal_h265d_v345_output_pps_packet()
552 … dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size)) - 1) in hal_h265d_v345_output_pps_packet()
554 … dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size)); in hal_h265d_v345_output_pps_packet()
556 for (i = 0; i < dxva_ctx->pp.num_tile_columns_minus1 + 1; i++) in hal_h265d_v345_output_pps_packet()
557 … column_width[i] = ((i + 1) * pic_in_cts_width) / (dxva_ctx->pp.num_tile_columns_minus1 + 1) - in hal_h265d_v345_output_pps_packet()
558 … (i * pic_in_cts_width) / (dxva_ctx->pp.num_tile_columns_minus1 + 1); in hal_h265d_v345_output_pps_packet()
560 for (i = 0; i < dxva_ctx->pp.num_tile_rows_minus1 + 1; i++) in hal_h265d_v345_output_pps_packet()
561 … row_height[i] = ((i + 1) * pic_in_cts_height) / (dxva_ctx->pp.num_tile_rows_minus1 + 1) - in hal_h265d_v345_output_pps_packet()
562 … (i * pic_in_cts_height) / (dxva_ctx->pp.num_tile_rows_minus1 + 1); in hal_h265d_v345_output_pps_packet()
565 …RK_S32 MaxCUWidth = (1 << (dxva_ctx->pp.log2_diff_max_min_luma_coding_block_size + log2_min_cb_siz… in hal_h265d_v345_output_pps_packet()
578 if (dxva_ctx->pp.rps_update_flag) { in hal_h265d_v345_output_pps_packet()
579 Short_SPS_RPS_HEVC *cur_st_rps_ptr = &dxva_ctx->pp.cur_st_rps; in hal_h265d_v345_output_pps_packet()
582 mpp_put_bits(&bp, dxva_ctx->pp.sps_lt_rps[i].lt_ref_pic_poc_lsb, 16); in hal_h265d_v345_output_pps_packet()
583 mpp_put_bits(&bp, dxva_ctx->pp.sps_lt_rps[i].used_by_curr_pic_lt_flag, 1); in hal_h265d_v345_output_pps_packet()
608 if (dxva_ctx->pp.scaling_list_enabled_flag) { in hal_h265d_v345_output_pps_packet()
612 if (dxva_ctx->pp.scaling_list_data_present_flag) { in hal_h265d_v345_output_pps_packet()
613 addr = (dxva_ctx->pp.pps_id + 16) * 1360; in hal_h265d_v345_output_pps_packet()
614 } else if (dxva_ctx->pp.scaling_list_enabled_flag) { in hal_h265d_v345_output_pps_packet()
615 addr = dxva_ctx->pp.sps_id * 1360; in hal_h265d_v345_output_pps_packet()
650 DXVA_PicParams_HEVC *pp = &dxva_ctx->pp; in h265d_refine_rcb_size() local
651 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in h265d_refine_rcb_size()
652 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in h265d_refine_rcb_size()
653 …RK_U8 ctu_size = 1 << (pp->log2_diff_max_min_luma_coding_block_size + pp->log2_min_luma_coding_blo… in h265d_refine_rcb_size()
654 RK_U32 tile_row_cut_num = pp->num_tile_rows_minus1; in h265d_refine_rcb_size()
655 RK_U32 tile_col_cut_num = pp->num_tile_columns_minus1; in h265d_refine_rcb_size()
727 DXVA_PicParams_HEVC *pp = &dxva_ctx->pp; in hal_h265d_rcb_info_update() local
728 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in hal_h265d_rcb_info_update()
729 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in hal_h265d_rcb_info_update()
730 …RK_U8 ctu_size = 1 << (pp->log2_diff_max_min_luma_coding_block_size + pp->log2_min_luma_coding_blo… in hal_h265d_rcb_info_update()
731 RK_U32 num_tiles = pp->num_tile_rows_minus1 + 1; in hal_h265d_rcb_info_update()
850 log2_min_cb_size = dxva_ctx->pp.log2_min_luma_coding_block_size_minus3 + 3; in hal_h265d_vdpu384a_gen_regs()
851 width = (dxva_ctx->pp.PicWidthInMinCbsY << log2_min_cb_size); in hal_h265d_vdpu384a_gen_regs()
852 height = (dxva_ctx->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_vdpu384a_gen_regs()
879 RK_U32 chroma_fmt_idc = dxva_ctx->pp.chroma_format_idc; in hal_h265d_vdpu384a_gen_regs()
881 mpp_buf_slot_get_prop(reg_ctx->slots, dxva_ctx->pp.CurrPic.Index7Bits, in hal_h265d_vdpu384a_gen_regs()
943 mpp_buf_slot_get_prop(reg_ctx->slots, dxva_ctx->pp.CurrPic.Index7Bits, in hal_h265d_vdpu384a_gen_regs()
948 dxva_ctx->pp.CurrPic.Index7Bits); in hal_h265d_vdpu384a_gen_regs()
973 mv_buf = hal_bufs_get_buf(reg_ctx->cmv_bufs, dxva_ctx->pp.CurrPic.Index7Bits); in hal_h265d_vdpu384a_gen_regs()
1044 reg_ctx->error_index[syn->dec.reg_index] = dxva_ctx->pp.CurrPic.Index7Bits; in hal_h265d_vdpu384a_gen_regs()
1047 for (i = 0; i < (RK_S32)MPP_ARRAY_ELEMS(dxva_ctx->pp.RefPicList); i++) { in hal_h265d_vdpu384a_gen_regs()
1048 if (dxva_ctx->pp.RefPicList[i].bPicEntry != 0xff && in hal_h265d_vdpu384a_gen_regs()
1049 dxva_ctx->pp.RefPicList[i].bPicEntry != 0x7f) { in hal_h265d_vdpu384a_gen_regs()
1053 dxva_ctx->pp.RefPicList[i].Index7Bits, in hal_h265d_vdpu384a_gen_regs()
1055 mpp_buf_slot_get_prop(reg_ctx->slots, dxva_ctx->pp.RefPicList[i].Index7Bits, in hal_h265d_vdpu384a_gen_regs()
1059 dxva_ctx->pp.RefPicList[i].Index7Bits); in hal_h265d_vdpu384a_gen_regs()
1066 … if ((pocdistance(dxva_ctx->pp.PicOrderCntValList[i], dxva_ctx->pp.current_poc) < distance) in hal_h265d_vdpu384a_gen_regs()
1069 … distance = pocdistance(dxva_ctx->pp.PicOrderCntValList[i], dxva_ctx->pp.current_poc); in hal_h265d_vdpu384a_gen_regs()
1071 … reg_ctx->error_index[syn->dec.reg_index] = dxva_ctx->pp.RefPicList[i].Index7Bits; in hal_h265d_vdpu384a_gen_regs()
1079 mv_buf = hal_bufs_get_buf(reg_ctx->cmv_bufs, dxva_ctx->pp.RefPicList[i].Index7Bits); in hal_h265d_vdpu384a_gen_regs()
1084 if ((reg_ctx->error_index[syn->dec.reg_index] == dxva_ctx->pp.CurrPic.Index7Bits) && in hal_h265d_vdpu384a_gen_regs()
1085 !dxva_ctx->pp.IntraPicFlag) { in hal_h265d_vdpu384a_gen_regs()
1099 for (i = 0; i < (RK_S32)MPP_ARRAY_ELEMS(dxva_ctx->pp.RefPicList); i++) { in hal_h265d_vdpu384a_gen_regs()
1101 if (dxva_ctx->pp.RefPicList[i].bPicEntry != 0xff && in hal_h265d_vdpu384a_gen_regs()
1102 dxva_ctx->pp.RefPicList[i].bPicEntry != 0x7f) { in hal_h265d_vdpu384a_gen_regs()
1106 dxva_ctx->pp.RefPicList[i].Index7Bits, in hal_h265d_vdpu384a_gen_regs()
1109 mpp_buf_slot_get_prop(reg_ctx->slots, dxva_ctx->pp.RefPicList[i].Index7Bits, in hal_h265d_vdpu384a_gen_regs()
1139 mpp_buf_slot_get_prop(reg_ctx->slots, dxva_ctx->pp.CurrPic.Index7Bits, in hal_h265d_vdpu384a_gen_regs()
1141 mpp_buf_slot_get_prop(reg_ctx->slots, dxva_ctx->pp.CurrPic.Index7Bits, in hal_h265d_vdpu384a_gen_regs()
1147 origin_buf = hal_bufs_get_buf(reg_ctx->origin_bufs, dxva_ctx->pp.CurrPic.Index7Bits); in hal_h265d_vdpu384a_gen_regs()