| /rockchip-linux_mpp/mpp/codec/dec/av1/ |
| H A D | av1d_parser2_syntax.c | 13 static int av1d_fill_picparams(Av1CodecContext *ctx, DXVA_PicParams_AV1 *pp) in av1d_fill_picparams() argument 26 memset(pp, 0, sizeof(*pp)); in av1d_fill_picparams() 28 pp->width = h->frame_width; in av1d_fill_picparams() 29 pp->height = h->frame_height; in av1d_fill_picparams() 31 pp->max_width = seq->max_frame_width_minus_1 + 1; in av1d_fill_picparams() 32 pp->max_height = seq->max_frame_height_minus_1 + 1; in av1d_fill_picparams() 34 pp->CurrPic.Index7Bits = h->cur_frame.slot_index; in av1d_fill_picparams() 35 pp->CurrPicTextureIndex = h->cur_frame.slot_index; in av1d_fill_picparams() 36 …pp->superres_denom = frame_header->use_superres ? frame_header->coded_denom : AV1_SUPERRES_NU… in av1d_fill_picparams() 37 pp->bitdepth = h->bit_depth; in av1d_fill_picparams() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/h264/ |
| H A D | h264d_fill.c | 99 void fill_picparams(H264dVideoCtx_t *p_Vid, DXVA_PicParams_H264_MVC *pp) in fill_picparams() argument 107 … fill_picture_entry(&pp->CurrPic, dec_pic->mem_mark->slot_idx, dec_pic->structure == BOTTOM_FIELD); in fill_picparams() 109 pp->UsedForReferenceFlags = 0; in fill_picparams() 110 pp->NonExistingFrameFlags = 0; in fill_picparams() 111 for (i = 0; i < MPP_ARRAY_ELEMS(pp->RefFrameList); i++) { in fill_picparams() 113 … fill_picture_entry(&pp->RefFrameList[i], dpb_info[i].slot_index, dpb_info[i].is_long_term); in fill_picparams() 114 pp->FieldOrderCntList[i][0] = dpb_info[i].TOP_POC; in fill_picparams() 115 pp->FieldOrderCntList[i][1] = dpb_info[i].BOT_POC; in fill_picparams() 116 …pp->FrameNumList[i] = dpb_info[i].is_long_term ? dpb_info[i].long_term_frame_idx : dpb_info[i].fra… in fill_picparams() 117 pp->LongTermPicNumList[i] = dpb_info[i].long_term_pic_num; in fill_picparams() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkdec/h265d/ |
| H A D | hal_h265d_rkv.c | 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() [all …]
|
| H A D | hal_h265d_vdpu34x.c | 239 if (dxva_cxt->pp.ps_update_flag) { in hal_h265d_v345_output_pps_packet() 251 mpp_put_bits(&bp, dxva_cxt->pp.vps_id , 4); in hal_h265d_v345_output_pps_packet() 252 mpp_put_bits(&bp, dxva_cxt->pp.sps_id , 4); in hal_h265d_v345_output_pps_packet() 253 mpp_put_bits(&bp, dxva_cxt->pp.chroma_format_idc , 2); in hal_h265d_v345_output_pps_packet() 255 log2_min_cb_size = dxva_cxt->pp.log2_min_luma_coding_block_size_minus3 + 3; in hal_h265d_v345_output_pps_packet() 256 width = (dxva_cxt->pp.PicWidthInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet() 257 height = (dxva_cxt->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet() 261 mpp_put_bits(&bp, dxva_cxt->pp.bit_depth_luma_minus8 + 8 , 4); in hal_h265d_v345_output_pps_packet() 262 mpp_put_bits(&bp, dxva_cxt->pp.bit_depth_chroma_minus8 + 8 , 4); in hal_h265d_v345_output_pps_packet() 263 mpp_put_bits(&bp, dxva_cxt->pp.log2_max_pic_order_cnt_lsb_minus4 + 4 , 5); in hal_h265d_v345_output_pps_packet() [all …]
|
| H A D | hal_h265d_vdpu383.c | 333 if (!dxva_ctx->pp.scaling_list_enabled_flag) { in hal_h265d_vdpu383_scalinglist_packet() 401 log2_min_cb_size = dxva_ctx->pp.log2_min_luma_coding_block_size_minus3 + 3; in hal_h265d_v345_output_pps_packet() 402 width = (dxva_ctx->pp.PicWidthInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet() 403 height = (dxva_ctx->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet() 407 if (dxva_ctx->pp.ps_update_flag) { in hal_h265d_v345_output_pps_packet() 408 mpp_put_bits(&bp, dxva_ctx->pp.vps_id, 4); in hal_h265d_v345_output_pps_packet() 409 mpp_put_bits(&bp, dxva_ctx->pp.sps_id, 4); in hal_h265d_v345_output_pps_packet() 410 mpp_put_bits(&bp, dxva_ctx->pp.chroma_format_idc, 2); in hal_h265d_v345_output_pps_packet() 414 mpp_put_bits(&bp, dxva_ctx->pp.bit_depth_luma_minus8, 3); in hal_h265d_v345_output_pps_packet() 415 mpp_put_bits(&bp, dxva_ctx->pp.bit_depth_chroma_minus8, 3); in hal_h265d_v345_output_pps_packet() [all …]
|
| H A D | hal_h265d_vdpu382.c | 232 if (dxva_cxt->pp.ps_update_flag) { in hal_h265d_v382_output_pps_packet() 244 mpp_put_bits(&bp, dxva_cxt->pp.vps_id , 4); in hal_h265d_v382_output_pps_packet() 245 mpp_put_bits(&bp, dxva_cxt->pp.sps_id , 4); in hal_h265d_v382_output_pps_packet() 246 mpp_put_bits(&bp, dxva_cxt->pp.chroma_format_idc , 2); in hal_h265d_v382_output_pps_packet() 248 log2_min_cb_size = dxva_cxt->pp.log2_min_luma_coding_block_size_minus3 + 3; in hal_h265d_v382_output_pps_packet() 249 width = (dxva_cxt->pp.PicWidthInMinCbsY << log2_min_cb_size); in hal_h265d_v382_output_pps_packet() 250 height = (dxva_cxt->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_v382_output_pps_packet() 254 mpp_put_bits(&bp, dxva_cxt->pp.bit_depth_luma_minus8 + 8 , 4); in hal_h265d_v382_output_pps_packet() 255 mpp_put_bits(&bp, dxva_cxt->pp.bit_depth_chroma_minus8 + 8 , 4); in hal_h265d_v382_output_pps_packet() 256 mpp_put_bits(&bp, dxva_cxt->pp.log2_max_pic_order_cnt_lsb_minus4 + 4 , 5); in hal_h265d_v382_output_pps_packet() [all …]
|
| H A D | hal_h265d_vdpu384a.c | 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() [all …]
|
| H A D | hal_h265d_com.c | 241 if (dxva_cxt->pp.RefPicSetStCurrBefore[i] != 0xff) { in hal_h265d_slice_rpl() 245 if (dxva_cxt->pp.RefPicSetStCurrAfter[i] != 0xff) { in hal_h265d_slice_rpl() 249 if (dxva_cxt->pp.RefPicSetLtCurr[i] != 0xff) { in hal_h265d_slice_rpl() 278 rps = &dxva_cxt->pp.RefPicSetStCurrBefore[0]; in hal_h265d_slice_rpl() 281 rps = &dxva_cxt->pp.RefPicSetStCurrAfter[0]; in hal_h265d_slice_rpl() 284 rps = &dxva_cxt->pp.RefPicSetLtCurr[0]; in hal_h265d_slice_rpl() 316 if (!dxva_cxt->pp.rps_update_flag) { in hal_h265d_slice_hw_rps() 324 mpp_put_bits(&bp, dxva_cxt->pp.sps_lt_rps[i].lt_ref_pic_poc_lsb, 16); in hal_h265d_slice_hw_rps() 325 mpp_put_bits(&bp, dxva_cxt->pp.sps_lt_rps[i].used_by_curr_pic_lt_flag, 1); in hal_h265d_slice_hw_rps() 330 if (i < dxva_cxt->pp.num_short_term_ref_pic_sets) { in hal_h265d_slice_hw_rps() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/h265/ |
| H A D | h265d_parser2_syntax.c | 41 static RK_S32 get_refpic_index(const DXVA_PicParams_HEVC *pp, int surface_index) in get_refpic_index() argument 44 for (i = 0; i < MPP_ARRAY_ELEMS(pp->RefPicList); i++) { in get_refpic_index() 45 if ((pp->RefPicList[i].bPicEntry & 0x7f) == surface_index) { in get_refpic_index() 54 DXVA_PicParams_HEVC *pp) in fill_picture_parameters() argument 60 Short_SPS_RPS_HEVC *dst_rps = pp->sps_st_rps; in fill_picture_parameters() 62 Short_SPS_RPS_HEVC *cur_dst_rps = &pp->cur_st_rps; in fill_picture_parameters() 68 memset(pp, 0, sizeof(*pp)); in fill_picture_parameters() 70 pp->PicWidthInMinCbsY = sps->min_cb_width; in fill_picture_parameters() 71 pp->PicHeightInMinCbsY = sps->min_cb_height; in fill_picture_parameters() 72 pp->pps_id = h->sh.pps_id; in fill_picture_parameters() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkdec/h264d/ |
| H A D | hal_h264d_rkv_reg.c | 255 DXVA_PicParams_H264_MVC *pp = p_hal->pp; in prepare_spspps() local 265 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps() 266 mpp_put_bits(&bp, pp->bit_depth_luma_minus8, 3); in prepare_spspps() 267 mpp_put_bits(&bp, pp->bit_depth_chroma_minus8, 3); in prepare_spspps() 269 mpp_put_bits(&bp, pp->log2_max_frame_num_minus4, 4); in prepare_spspps() 270 mpp_put_bits(&bp, pp->num_ref_frames, 5); in prepare_spspps() 271 mpp_put_bits(&bp, pp->pic_order_cnt_type, 2); in prepare_spspps() 272 mpp_put_bits(&bp, pp->log2_max_pic_order_cnt_lsb_minus4, 4); in prepare_spspps() 273 mpp_put_bits(&bp, pp->delta_pic_order_always_zero_flag, 1); in prepare_spspps() 274 mpp_put_bits(&bp, (pp->wFrameWidthInMbsMinus1 + 1), 9); in prepare_spspps() [all …]
|
| H A D | hal_h264d_vdpu2.c | 384 p_regs->sw110.pic_mb_w = p_hal->pp->wFrameWidthInMbsMinus1 + 1; in set_pic_regs() 385 p_regs->sw110.pic_mb_h = (2 - p_hal->pp->frame_mbs_only_flag) in set_pic_regs() 386 * (p_hal->pp->wFrameHeightInMbsMinus1 + 1); in set_pic_regs() 395 DXVA_PicParams_H264_MVC *pp = p_hal->pp; in set_vlc_regs() local 401 p_regs->sw51.qp_init_val = pp->pic_init_qp_minus26 + 26; in set_vlc_regs() 402 p_regs->sw114.max_refidx0 = pp->num_ref_idx_l0_active_minus1 + 1; in set_vlc_regs() 403 p_regs->sw111.max_refnum = pp->num_ref_frames; in set_vlc_regs() 404 p_regs->sw112.cur_frm_len = pp->log2_max_frame_num_minus4 + 4; in set_vlc_regs() 405 p_regs->sw112.curfrm_num = pp->frame_num; in set_vlc_regs() 406 p_regs->sw115.const_intra_en = pp->constrained_intra_pred_flag; in set_vlc_regs() [all …]
|
| H A D | hal_h264d_vdpu1.c | 341 p_regs->SwReg04.sw_pic_mb_width = p_hal->pp->wFrameWidthInMbsMinus1 + 1; in vdpu1_set_pic_regs() 342 p_regs->SwReg04.sw_pic_mb_height_p = (2 - p_hal->pp->frame_mbs_only_flag) in vdpu1_set_pic_regs() 343 * (p_hal->pp->wFrameHeightInMbsMinus1 + 1); in vdpu1_set_pic_regs() 353 DXVA_PicParams_H264_MVC *pp = p_hal->pp; in vdpu1_set_vlc_regs() local 357 p_regs->SwReg06.sw_init_qp = pp->pic_init_qp_minus26 + 26; in vdpu1_set_vlc_regs() 358 p_regs->SwReg09.sw_refidx0_active = pp->num_ref_idx_l0_active_minus1 + 1; in vdpu1_set_vlc_regs() 359 p_regs->SwReg04.sw_ref_frames = pp->num_ref_frames; in vdpu1_set_vlc_regs() 361 p_regs->SwReg07.sw_framenum_len = pp->log2_max_frame_num_minus4 + 4; in vdpu1_set_vlc_regs() 362 p_regs->SwReg07.sw_framenum = pp->frame_num; in vdpu1_set_vlc_regs() 364 p_regs->SwReg08.sw_const_intra_e = pp->constrained_intra_pred_flag; in vdpu1_set_vlc_regs() [all …]
|
| H A D | hal_h264d_vdpu_com.c | 198 DXVA_PicParams_H264_MVC *pp) in get_info_input() argument 207 for (i = 0; i < MPP_ARRAY_ELEMS(pp->RefFrameList); i++) { in get_info_input() 208 if (pp->RefFrameList[i].bPicEntry != 0xff) { in get_info_input() 210 priv->new_dpb[i].is_long_term = pp->RefFrameList[i].AssociatedFlag; in get_info_input() 211 priv->new_dpb[i].slot_index = pp->RefFrameList[i].Index7Bits; in get_info_input() 212 priv->new_dpb[i].top_poc = pp->FieldOrderCntList[i][0]; in get_info_input() 213 priv->new_dpb[i].bot_poc = pp->FieldOrderCntList[i][1]; in get_info_input() 215 priv->new_dpb[i].long_term_frame_idx = pp->FrameNumList[i]; in get_info_input() 217 priv->new_dpb[i].frame_num = pp->FrameNumList[i]; in get_info_input() 219 priv->new_dpb[i].long_term_pic_num = pp->LongTermPicNumList[i]; in get_info_input() [all …]
|
| H A D | hal_h264d_vdpu34x.c | 354 DXVA_PicParams_H264_MVC *pp = p_hal->pp; in prepare_spspps() local 360 if (!p_hal->fast_mode && !pp->spspps_update) { in prepare_spspps() 366 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps() 367 mpp_put_bits(&bp, pp->bit_depth_luma_minus8, 3); in prepare_spspps() 368 mpp_put_bits(&bp, pp->bit_depth_chroma_minus8, 3); in prepare_spspps() 370 mpp_put_bits(&bp, pp->log2_max_frame_num_minus4, 4); in prepare_spspps() 371 mpp_put_bits(&bp, pp->num_ref_frames, 5); in prepare_spspps() 372 mpp_put_bits(&bp, pp->pic_order_cnt_type, 2); in prepare_spspps() 373 mpp_put_bits(&bp, pp->log2_max_pic_order_cnt_lsb_minus4, 4); in prepare_spspps() 374 mpp_put_bits(&bp, pp->delta_pic_order_always_zero_flag, 1); in prepare_spspps() [all …]
|
| H A D | hal_h264d_vdpu384a.c | 147 DXVA_PicParams_H264_MVC *pp = p_hal->pp; in prepare_spspps() local 153 if (!p_hal->fast_mode && !pp->spspps_update) { in prepare_spspps() 161 pic_width = 16 * (pp->wFrameWidthInMbsMinus1 + 1); in prepare_spspps() 162 pic_height = 16 * (pp->wFrameHeightInMbsMinus1 + 1); in prepare_spspps() 163 pic_height *= (2 - pp->frame_mbs_only_flag); in prepare_spspps() 164 pic_height /= (1 + pp->field_pic_flag); in prepare_spspps() 165 mpp_put_bits(&bp, pp->seq_parameter_set_id, 4); in prepare_spspps() 166 mpp_put_bits(&bp, pp->profile_idc, 8); in prepare_spspps() 167 mpp_put_bits(&bp, pp->constraint_set3_flag, 1); in prepare_spspps() 168 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps() [all …]
|
| H A D | hal_h264d_vdpu383.c | 160 DXVA_PicParams_H264_MVC *pp = p_hal->pp; in prepare_spspps() local 166 if (!p_hal->fast_mode && !pp->spspps_update) { in prepare_spspps() 174 pic_width = 16 * (pp->wFrameWidthInMbsMinus1 + 1); in prepare_spspps() 175 pic_height = 16 * (pp->wFrameHeightInMbsMinus1 + 1); in prepare_spspps() 176 pic_height *= (2 - pp->frame_mbs_only_flag); in prepare_spspps() 177 pic_height /= (1 + pp->field_pic_flag); in prepare_spspps() 178 mpp_put_bits(&bp, pp->seq_parameter_set_id, 4); in prepare_spspps() 179 mpp_put_bits(&bp, pp->profile_idc, 8); in prepare_spspps() 180 mpp_put_bits(&bp, pp->constraint_set3_flag, 1); in prepare_spspps() 181 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps() [all …]
|
| H A D | hal_h264d_vdpu382.c | 360 DXVA_PicParams_H264_MVC *pp = p_hal->pp; in prepare_spspps() local 366 if (!p_hal->fast_mode && !pp->spspps_update) { in prepare_spspps() 372 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps() 373 mpp_put_bits(&bp, pp->bit_depth_luma_minus8, 3); in prepare_spspps() 374 mpp_put_bits(&bp, pp->bit_depth_chroma_minus8, 3); in prepare_spspps() 376 mpp_put_bits(&bp, pp->log2_max_frame_num_minus4, 4); in prepare_spspps() 377 mpp_put_bits(&bp, pp->num_ref_frames, 5); in prepare_spspps() 378 mpp_put_bits(&bp, pp->pic_order_cnt_type, 2); in prepare_spspps() 379 mpp_put_bits(&bp, pp->log2_max_pic_order_cnt_lsb_minus4, 4); in prepare_spspps() 380 mpp_put_bits(&bp, pp->delta_pic_order_always_zero_flag, 1); in prepare_spspps() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkdec/avsd/ |
| H A D | hal_avsd_plus.c | 101 p_work_out->pic_code_type = p_syn->pp.picCodingType; in set_regs_parameters() 102 p_work_out->picture_distance = p_syn->pp.pictureDistance; in set_regs_parameters() 106 p_regs->sw04.pic_mb_width = (p_syn->pp.horizontalSize + 15) >> 4; in set_regs_parameters() 109 if (p_syn->pp.pictureStructure == FRAMEPICTURE) { in set_regs_parameters() 116 if (p_syn->pp.topFieldFirst) { in set_regs_parameters() 123 p_regs->sw04.pic_mb_height_p = (p_syn->pp.verticalSize + 15) >> 4; in set_regs_parameters() 124 p_regs->sw07.avs_h_ext = (p_syn->pp.verticalSize + 15) >> 12; in set_regs_parameters() 126 if (p_syn->pp.picCodingType == BFRAME) { in set_regs_parameters() 131 p_regs->sw03.pic_inter_e = (p_syn->pp.picCodingType != IFRAME) ? 1 : 0; in set_regs_parameters() 139 p_regs->sw03.pic_fixed_quant = p_syn->pp.fixedPictureQp; in set_regs_parameters() [all …]
|
| H A D | hal_avsd_vdpu2.c | 96 p_work_out->pic_code_type = p_syn->pp.picCodingType; in set_regs_parameters() 97 p_work_out->picture_distance = p_syn->pp.pictureDistance; in set_regs_parameters() 100 p_regs->sw120.pic_mb_width = (p_syn->pp.horizontalSize + 15) >> 4; in set_regs_parameters() 103 if (p_syn->pp.pictureStructure == FRAMEPICTURE) { in set_regs_parameters() 113 p_regs->sw120.pic_mb_height_p = (p_syn->pp.verticalSize + 15) >> 4; in set_regs_parameters() 114 p_regs->sw121.avs_h_ext = (p_syn->pp.verticalSize + 15) >> 12; in set_regs_parameters() 115 p_regs->sw57.pic_b_e = (p_syn->pp.picCodingType == BFRAME); in set_regs_parameters() 116 p_regs->sw57.pic_inter_e = (p_syn->pp.picCodingType != IFRAME) ? 1 : 0; in set_regs_parameters() 123 p_regs->sw50.dec_fixed_quant = p_syn->pp.fixedPictureQp; in set_regs_parameters() 124 p_regs->sw51.init_qp = p_syn->pp.pictureQp; in set_regs_parameters() [all …]
|
| H A D | hal_avsd_vdpu1.c | 98 p_work_out->pic_code_type = p_syn->pp.picCodingType; in set_regs_parameters() 99 p_work_out->picture_distance = p_syn->pp.pictureDistance; in set_regs_parameters() 102 p_regs->sw04.pic_mb_width = (p_syn->pp.horizontalSize + 15) >> 4; in set_regs_parameters() 105 if (p_syn->pp.pictureStructure == FRAMEPICTURE) { in set_regs_parameters() 115 p_regs->sw04.pic_mb_height_p = (p_syn->pp.verticalSize + 15) >> 4; in set_regs_parameters() 118 if (p_syn->pp.picCodingType == BFRAME) { in set_regs_parameters() 123 p_regs->sw03.pic_inter_e = (p_syn->pp.picCodingType != IFRAME) ? 1 : 0; in set_regs_parameters() 131 p_regs->sw03.pic_fixed_quant = p_syn->pp.fixedPictureQp; in set_regs_parameters() 132 p_regs->sw06.init_qp = p_syn->pp.pictureQp; in set_regs_parameters() 135 if (p_syn->pp.pictureStructure == FIELDPICTURE && !p_hal->first_field) { in set_regs_parameters() [all …]
|
| /rockchip-linux_mpp/mpp/codec/enc/h265/ |
| H A D | h265e_syntax.c | 41 H265ePicParams *pp) in fill_picture_parameters() argument 46 memset(pp, 0, sizeof(H265ePicParams)); in fill_picture_parameters() 48 pp->pic_width = h->cfg->prep.width; in fill_picture_parameters() 49 pp->pic_height = h->cfg->prep.height; in fill_picture_parameters() 50 pp->hor_stride = h->cfg->prep.hor_stride; in fill_picture_parameters() 51 pp->ver_stride = h->cfg->prep.ver_stride; in fill_picture_parameters() 52 pp->pps_id = h->slice->m_ppsId; in fill_picture_parameters() 53 pp->sps_id = pps->m_SPSId; in fill_picture_parameters() 54 pp->vps_id = sps->m_VPSId; in fill_picture_parameters() 55 pp->mpp_format = cfg->prep.format; in fill_picture_parameters() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/avs/ |
| H A D | avsd_parse.c | 588 PicParams_Avsd *pp = &syn->pp; in avsd_fill_parameters() local 591 pp->profileId = p_dec->vsh.profile_id; in avsd_fill_parameters() 592 pp->levelId = p_dec->vsh.level_id; in avsd_fill_parameters() 593 pp->progressiveSequence = p_dec->vsh.progressive_sequence; in avsd_fill_parameters() 594 pp->horizontalSize = p_dec->vsh.horizontal_size; in avsd_fill_parameters() 595 pp->verticalSize = p_dec->vsh.vertical_size; in avsd_fill_parameters() 596 pp->chromaFormat = p_dec->vsh.chroma_format; in avsd_fill_parameters() 597 pp->aspectRatio = p_dec->vsh.aspect_ratio; in avsd_fill_parameters() 598 pp->frameRateCode = p_dec->vsh.frame_rate_code; in avsd_fill_parameters() 599 pp->bitRateValue = p_dec->vsh.bit_rate; in avsd_fill_parameters() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkdec/vp9d/ |
| H A D | hal_vp9d_vdpu383.c | 504 static MPP_RET prepare_uncompress_header(HalVp9dCtx *p_hal, DXVA_PicParams_VP9 *pp, in prepare_uncompress_header() argument 513 mpp_put_bits(&bp, pp->frame_type, 1); in prepare_uncompress_header() 514 mpp_put_bits(&bp, pp->error_resilient_mode, 1); in prepare_uncompress_header() 515 mpp_put_bits(&bp, pp->BitDepthMinus8Luma, 3); in prepare_uncompress_header() 517 mpp_put_bits(&bp, pp->width, 16); in prepare_uncompress_header() 518 mpp_put_bits(&bp, pp->height, 16); in prepare_uncompress_header() 520 mpp_put_bits(&bp, (!pp->frame_type || pp->intra_only), 1); in prepare_uncompress_header() 521 mpp_put_bits(&bp, pp->ref_frame_sign_bias[1], 1); in prepare_uncompress_header() 522 mpp_put_bits(&bp, pp->ref_frame_sign_bias[2], 1); in prepare_uncompress_header() 523 mpp_put_bits(&bp, pp->ref_frame_sign_bias[3], 1); in prepare_uncompress_header() [all …]
|
| /rockchip-linux_mpp/mpp/hal/vpu/mpg4d/ |
| H A D | hal_m4vd_vdpu2.c | 39 DXVA_PicParams_MPEG4_PART2 *pp = NULL; in vdpu2_mpg4d_setup_regs_by_syntax() local 50 pp = (DXVA_PicParams_MPEG4_PART2 *)desc->pvPVPState; in vdpu2_mpg4d_setup_regs_by_syntax() 66 mpp_assert(pp); in vdpu2_mpg4d_setup_regs_by_syntax() 83 regs->reg120.sw_pic_mb_width = (pp->vop_width + 15) >> 4; in vdpu2_mpg4d_setup_regs_by_syntax() 84 regs->reg120.sw_pic_mb_hight_p = (pp->vop_height + 15) >> 4; in vdpu2_mpg4d_setup_regs_by_syntax() 85 if (pp->custorm_version == 4) { in vdpu2_mpg4d_setup_regs_by_syntax() 86 regs->reg120.sw_mb_width_off = pp->vop_width & 0xf; in vdpu2_mpg4d_setup_regs_by_syntax() 87 regs->reg120.sw_mb_height_off = pp->vop_height & 0xf; in vdpu2_mpg4d_setup_regs_by_syntax() 99 regs->reg136.sw_alt_scan_flag_e = pp->alternate_vertical_scan_flag; in vdpu2_mpg4d_setup_regs_by_syntax() 103 regs->reg136.sw_rounding = pp->vop_rounding_type; in vdpu2_mpg4d_setup_regs_by_syntax() [all …]
|
| H A D | hal_m4vd_vdpu1.c | 39 DXVA_PicParams_MPEG4_PART2 *pp = NULL; in vdpu1_mpg4d_setup_regs_by_syntax() local 50 pp = (DXVA_PicParams_MPEG4_PART2 *)desc->pvPVPState; in vdpu1_mpg4d_setup_regs_by_syntax() 66 mpp_assert(pp); in vdpu1_mpg4d_setup_regs_by_syntax() 83 regs->SwReg04.sw_pic_mb_width = (pp->vop_width + 15) >> 4; in vdpu1_mpg4d_setup_regs_by_syntax() 84 regs->SwReg04.sw_pic_mb_hight_p = (pp->vop_height + 15) >> 4; in vdpu1_mpg4d_setup_regs_by_syntax() 86 if (pp->custorm_version == 4) { in vdpu1_mpg4d_setup_regs_by_syntax() 87 regs->SwReg04.sw_mb_width_off = pp->vop_width & 0xf; in vdpu1_mpg4d_setup_regs_by_syntax() 88 regs->SwReg04.sw_mb_height_off = pp->vop_height & 0xf; in vdpu1_mpg4d_setup_regs_by_syntax() 101 regs->SwReg18.sw_alt_scan_flag_e = pp->alternate_vertical_scan_flag; in vdpu1_mpg4d_setup_regs_by_syntax() 105 regs->SwReg18.sw_mpeg4_vc1_rc = pp->vop_rounding_type; in vdpu1_mpg4d_setup_regs_by_syntax() [all …]
|