| /rockchip-linux_mpp/mpp/codec/enc/h264/ |
| H A D | h264e_sps.c | 61 MPP_RET h264e_sps_update(H264eSps *sps, MppEncCfgSet *cfg) in h264e_sps_update() argument 63 H264eVui *vui = &sps->vui; in h264e_sps_update() 82 sps->profile_idc = h264->profile; in h264e_sps_update() 83 switch (sps->profile_idc) { in h264e_sps_update() 85 sps->constraint_set0 = 1; in h264e_sps_update() 86 sps->constraint_set1 = 1; in h264e_sps_update() 87 sps->constraint_set2 = 0; in h264e_sps_update() 88 sps->constraint_set3 = 0; in h264e_sps_update() 89 sps->constraint_set4 = 0; in h264e_sps_update() 90 sps->constraint_set5 = 0; in h264e_sps_update() [all …]
|
| H A D | h264e_sps.h | 128 MPP_RET h264e_sps_update(H264eSps *sps, MppEncCfgSet *cfg); 129 MPP_RET h264e_sps_to_packet(H264eSps *sps, MppPacket packet, RK_S32 *offset, 131 MPP_RET h264e_sps_dump(H264eSps *sps);
|
| H A D | h264e_api_v2.c | 56 H264eSps sps; member 323 h264e_sps_update(&p->sps, p->cfg); in h264e_gen_hdr() 330 h264e_dpb_setup(&p->dpb, p->cfg, &p->sps); in h264e_gen_hdr() 334 h264e_sps_to_packet(&p->sps, p->hdr_pkt, &p->sps_offset, &p->sps_len, p->cfg); in h264e_gen_hdr() 464 h264e_slice_update(&p->slice, p->cfg, &p->sps, &p->pps, dpb->curr); in h264e_proc_dpb() 504 h264e_add_syntax(p, H264E_SYN_SPS, &p->sps); in h264e_proc_hal()
|
| /rockchip-linux_mpp/mpp/codec/enc/h265/ |
| H A D | h265e_ps.c | 180 MPP_RET h265e_set_sps(H265eCtx *ctx, H265eSps *sps, H265eVps *vps) in h265e_set_sps() argument 198 RK_U32 *tmp = &sps->zscan2raster[0]; in h265e_set_sps() 225 …init_raster2zscan(codec->max_cu_size, maxCUDepth + 1, &sps->raster2zscan[0], &sps->zscan2raster[0]… in h265e_set_sps() 226 … init_raster2pelxy(codec->max_cu_size, maxCUDepth + 1, &sps->raster2pelx[0], &sps->raster2pely[0]); in h265e_set_sps() 228 memset(&sps->m_conformanceWindow, 0, sizeof(H265eCropInfo)); in h265e_set_sps() 236 sps->m_conformanceWindow.m_enabledFlag = 1; in h265e_set_sps() 237 sps->m_conformanceWindow.m_winRightOffset = pad[0]; in h265e_set_sps() 247 sps->m_conformanceWindow.m_enabledFlag = 1; in h265e_set_sps() 248 sps->m_conformanceWindow.m_winBottomOffset = pad[1]; in h265e_set_sps() 253 sps->m_SPSId = 0; in h265e_set_sps() [all …]
|
| H A D | h265e_header_gen.c | 444 static MPP_RET h265e_sps_write(H265eSps *sps, H265eStream *s) in h265e_sps_write() argument 450 H265eCropInfo *conf = &sps->m_conformanceWindow; in h265e_sps_write() 456 h265e_stream_write_with_log(s, sps->m_VPSId, 4, "sps_video_parameter_set_id"); in h265e_sps_write() 457 h265e_stream_write_with_log(s, sps->m_maxTLayers - 1, 3, "sps_max_sub_layers_minus1"); in h265e_sps_write() 458 …h265e_stream_write1_with_log(s, sps->m_bTemporalIdNestingFlag ? 1 : 0, "sps_temporal_id_nesting_fl… in h265e_sps_write() 459 codePTL(s, sps->m_ptl, 1, sps->m_maxTLayers - 1); in h265e_sps_write() 460 h265e_stream_write_ue_with_log(s, sps->m_SPSId, "sps_seq_parameter_set_id"); in h265e_sps_write() 461 h265e_stream_write_ue_with_log(s, sps->m_chromaFormatIdc, "chroma_format_idc"); in h265e_sps_write() 463 if (sps->m_chromaFormatIdc == 4) { in h265e_sps_write() 467 h265e_stream_write_ue_with_log(s, sps->m_picWidthInLumaSamples, "pic_width_in_luma_samples"); in h265e_sps_write() [all …]
|
| H A D | h265e_syntax.c | 44 const H265eSps *sps = (H265eSps *)&h->sps; in fill_picture_parameters() local 54 pp->vps_id = sps->m_VPSId; in fill_picture_parameters() 57 pp->wFormatAndSequenceInfoFlags = (sps->m_chromaFormatIdc << 0) | in fill_picture_parameters() 58 (sps->m_colorPlaneFlag << 2) | in fill_picture_parameters() 59 ((sps->m_bitDepthY - 8) << 3) | in fill_picture_parameters() 60 ((sps->m_bitDepthC - 8) << 6) | in fill_picture_parameters() 61 ((sps->m_bitsForPOC - 4) << 9) | in fill_picture_parameters() 67 …pp->sps_max_dec_pic_buffering_minus1 = sps->m_maxDecPicBuffering[sps->m_maxTLayers - 1] - … in fill_picture_parameters() 68 pp->log2_min_luma_coding_block_size_minus3 = sps->m_log2MinCodingBlockSize - 3; in fill_picture_parameters() 69 pp->log2_diff_max_min_luma_coding_block_size = sps->m_log2DiffMaxMinCodingBlockSize; in fill_picture_parameters() [all …]
|
| H A D | h265e_slice.c | 210 H265eSps *sps = &p->sps; in h265e_slice_init() local 219 slice->m_sps = sps; in h265e_slice_init() 234 slice->m_enableTMVPFlag = sps->m_TMVPFlagsPresent; in h265e_slice_init() 359 H265eSps *sps = slice->m_sps; in h265e_code_slice_header() local 360 RK_U32 pic_width_in_ctb = (sps->m_picWidthInLumaSamples + sps->m_maxCUSize - 1) / in h265e_code_slice_header() 361 sps->m_maxCUSize; in h265e_code_slice_header() 362 RK_U32 pic_height_in_ctb = (sps->m_picHeightInLumaSamples + sps->m_maxCUSize - 1) / in h265e_code_slice_header() 363 sps->m_maxCUSize; in h265e_code_slice_header() 559 H265eSps *sps = slice->m_sps; in code_skip_flag() local 561 RK_U32 tpelx = cu->pixelX + sps->raster2pelx[sps->zscan2raster[abs_part_idx]]; in code_skip_flag() [all …]
|
| H A D | h265e_ps.h | 27 MPP_RET h265e_set_sps(H265eCtx *ctx, H265eSps *sps, H265eVps *vps); 28 MPP_RET h265e_set_pps(H265eCtx *ctx, H265ePps *pps, H265eSps *sps);
|
| /rockchip-linux_mpp/mpp/codec/dec/h265/ |
| H A D | h265d_ps.c | 139 const HEVCSPS *sps, RK_S32 is_slice_header) in mpp_hevc_decode_short_term_rps() argument 150 if (rps != sps->st_rps && sps->nb_st_rps) in mpp_hevc_decode_short_term_rps() 163 if (delta_idx > sps->nb_st_rps) { in mpp_hevc_decode_short_term_rps() 166 delta_idx, sps->nb_st_rps); in mpp_hevc_decode_short_term_rps() 169 rps_ridx = &sps->st_rps[sps->nb_st_rps - delta_idx]; in mpp_hevc_decode_short_term_rps() 171 rps_ridx = &sps->st_rps[rps - sps->st_rps - 1]; in mpp_hevc_decode_short_term_rps() 652 static RK_S32 compare_sps(HEVCSPS *openhevc_sps, HEVCSPS *sps) in compare_sps() argument 654 if (openhevc_sps->vps_id != sps->vps_id) { in compare_sps() 658 if (openhevc_sps->sps_id != sps->sps_id) { in compare_sps() 662 if (openhevc_sps->chroma_format_idc != sps->chroma_format_idc) { in compare_sps() [all …]
|
| H A D | h265d_parser2_syntax.c | 58 const HEVCSPS *sps = (HEVCSPS *)h->sps_list[pps->sps_id]; in fill_picture_parameters() local 59 const ShortTermRPS *src_rps = sps->st_rps; 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() 74 pp->vps_id = sps->vps_id; in fill_picture_parameters() 76 pp->wFormatAndSequenceInfoFlags = (sps->chroma_format_idc << 0) | in fill_picture_parameters() 77 (sps->separate_colour_plane_flag << 2) | in fill_picture_parameters() 78 ((sps->bit_depth - 8) << 3) | in fill_picture_parameters() 79 ((sps->bit_depth - 8) << 6) | in fill_picture_parameters() 80 ((sps->log2_max_poc_lsb - 4) << 9) | in fill_picture_parameters() [all …]
|
| H A D | h265d_parser.c | 331 if (s->sps->chroma_format_idc != 0) { in pred_weight_table() 345 if (s->sps->chroma_format_idc != 0) { // FIXME: invert "if" and "for" in pred_weight_table() 387 if (s->sps->chroma_format_idc != 0) { in pred_weight_table() 426 const HEVCSPS *sps = s->sps; in decode_lt_rps() local 427 RK_S32 max_poc_lsb = 1 << sps->log2_max_poc_lsb; in decode_lt_rps() 437 if (!sps->long_term_ref_pics_present_flag) in decode_lt_rps() 440 if (sps->num_long_term_ref_pics_sps > 0) in decode_lt_rps() 456 if (sps->num_long_term_ref_pics_sps > 1) in decode_lt_rps() 457 READ_BITS(gb, mpp_ceil_log2(sps->num_long_term_ref_pics_sps), <_idx_sps); in decode_lt_rps() 459 rps->poc[i] = sps->lt_ref_pic_poc_lsb_sps[lt_idx_sps]; in decode_lt_rps() [all …]
|
| H A D | h265d_refs.c | 140 mpp_frame_set_color_primaries(frame->frame, s->sps->vui.colour_primaries); in alloc_frame() 145 mpp_frame_set_color_trc(frame->frame, s->sps->vui.transfer_characteristic); in alloc_frame() 199 ref->window = s->sps->output_window; in mpp_hevc_set_new_ref() 206 RK_S32 LtMask = (1 << s->sps->log2_max_poc_lsb) - 1; in find_ref_idx() 353 RK_S32 max_poc_lsb = 1 << s->sps->log2_max_poc_lsb; in mpp_hevc_compute_poc()
|
| /rockchip-linux_mpp/mpp/codec/dec/h264/ |
| H A D | h264d_scalist.c | 66 static void set_sps_scanlist_matrix(H264_SPS_t *sps, H264dVideoCtx_t *p_Vid) in set_sps_scanlist_matrix() argument 71 if (!sps->seq_scaling_list_present_flag[i]) { // fall-back rule A in set_sps_scanlist_matrix() 80 if (sps->UseDefaultScalingMatrix4x4Flag[i]) { in set_sps_scanlist_matrix() 84 p_Vid->qmatrix[i] = sps->ScalingList4x4[i]; in set_sps_scanlist_matrix() 89 for (i = 6; i < ((sps->chroma_format_idc != H264_CHROMA_444) ? 8 : 12); ++i) { in set_sps_scanlist_matrix() 90 if (!sps->seq_scaling_list_present_flag[i]) { // fall-back rule A in set_sps_scanlist_matrix() 99 if (sps->UseDefaultScalingMatrix8x8Flag[i - 6]) { in set_sps_scanlist_matrix() 103 p_Vid->qmatrix[i] = sps->ScalingList8x8[i - 6]; in set_sps_scanlist_matrix() 109 static void set_pps_scanlist_matrix(H264_SPS_t *sps, H264_PPS_t *pps, H264dVideoCtx_t *p_Vid) in set_pps_scanlist_matrix() argument 116 if (!sps->seq_scaling_matrix_present_flag) { in set_pps_scanlist_matrix() [all …]
|
| H A D | h264d_sps.c | 41 cur_subpps->sps.seq_parameter_set_id = 0; // reset in reset_cur_subpps_data() 374 if ((cur_subsps->sps.profile_idc == H264_PROFILE_MVC_HIGH) in parser_subsps_ext() 375 || (cur_subsps->sps.profile_idc == H264_PROFILE_STEREO_HIGH)) { in parser_subsps_ext() 390 static void update_video_pars(H264dVideoCtx_t *p_Vid, H264_SPS_t *sps) in update_video_pars() argument 398 p_Vid->max_frame_num = 1 << (sps->log2_max_frame_num_minus4 + 4); in update_video_pars() 399 p_Vid->PicWidthInMbs = (sps->pic_width_in_mbs_minus1 + 1); in update_video_pars() 400 …p_Vid->FrameHeightInMbs = (2 - sps->frame_mbs_only_flag) * (sps->pic_height_in_map_units_minus1 + … in update_video_pars() 401 p_Vid->yuv_format = sps->chroma_format_idc; in update_video_pars() 402 p_Vid->frame_mbs_only_flag = sps->frame_mbs_only_flag; in update_video_pars() 406 p_Vid->bit_depth_luma = sps->bit_depth_luma_minus8 + 8; in update_video_pars() [all …]
|
| H A D | h264d_slice.c | 270 static MPP_RET check_sps_pps(H264_SPS_t *sps, H264_subSPS_t *subset_sps, in check_sps_pps() argument 276 ret |= (sps->seq_parameter_set_id > 31); in check_sps_pps() 277 ret |= (sps->separate_colour_plane_flag == 1); in check_sps_pps() 278 ret |= (sps->chroma_format_idc >= 3); in check_sps_pps() 279 ret |= (sps->bit_depth_luma_minus8 > 2); in check_sps_pps() 280 ret |= (sps->bit_depth_chroma_minus8 > 2); in check_sps_pps() 281 ret |= (sps->log2_max_frame_num_minus4 > 12); in check_sps_pps() 282 ret |= (sps->pic_order_cnt_type > 2); in check_sps_pps() 283 ret |= (sps->log2_max_pic_order_cnt_lsb_minus4 > 12); in check_sps_pps() 284 ret |= (sps->num_ref_frames_in_pic_order_cnt_cycle > 255); in check_sps_pps() [all …]
|
| H A D | h264d_scalist.h | 31 MPP_RET get_max_dec_frame_buf_size(H264_SPS_t *sps); 33 MPP_RET parse_sps_scalinglists(BitReadCtx_t *p_bitctx, H264_SPS_t *sps);
|
| H A D | h264d_pps.c | 35 static MPP_RET parse_pps_calingLists(BitReadCtx_t *p_bitctx, H264_SPS_t *sps, H264_PPS_t *pps) in parse_pps_calingLists() argument 49 for (i = 0; i < ((sps->chroma_format_idc != 3) ? 2 : 6); ++i) { in parse_pps_calingLists() 140 FUN_CHECK(ret = parser_pps(p_bitctx, &p_Cur->sps, cur_pps)); in process_pps()
|
| H A D | h264d_sps.h | 33 MPP_RET activate_sps(H264dVideoCtx_t *p_Vid, H264_SPS_t *sps, H264_subSPS_t *subset_sps);
|
| /rockchip-linux_mpp/mpp/hal/vpu/vp8e/ |
| H A D | hal_vp8e_base.c | 37 Vp8eSps *sps = &ctx->sps; in set_frame_params() local 41 pps->level_sgm[i] = sps->filter_level; in set_frame_params() 51 Vp8eSps *sps = &ctx->sps; in set_filter() local 53 if (sps->auto_filter_level) { in set_filter() 58 sps->filter_level = MPP_CLIP3(0, 63, tmp); in set_filter() 64 sps->filter_level = inter_level_tbl[qp]; in set_filter() 72 if (sps->auto_filter_sharpness) { in set_filter() 73 sps->filter_sharpness = 0; in set_filter() 76 if (!sps->filter_delta_enable) in set_filter() 79 if (sps->filter_delta_enable == 2) { in set_filter() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkenc/h264e/ |
| H A D | hal_h264e_vepu541.c | 61 H264eSps *sps; member 310 ctx->sps = desc->p; in update_vepu541_syntax() 365 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu541_get_task() 553 static void setup_vepu541_codec(Vepu541H264eRegSet *regs, H264eSps *sps, in setup_vepu541_codec() argument 568 regs->reg104.max_fnum = sps->log2_max_frame_num_minus4; in setup_vepu541_codec() 569 regs->reg104.drct_8x8 = sps->direct8x8_inference; in setup_vepu541_codec() 570 regs->reg104.mpoc_lm4 = sps->log2_max_poc_lsb_minus4; in setup_vepu541_codec() 769 static void setup_vepu541_rdo_pred(Vepu541H264eRegSet *regs, H264eSps *sps, in setup_vepu541_rdo_pred() argument 799 regs->reg102.rect_size = (sps->profile_idc == H264_PROFILE_BASELINE && in setup_vepu541_rdo_pred() 800 sps->level_idc <= H264_LEVEL_3_0) ? 1 : 0; in setup_vepu541_rdo_pred() [all …]
|
| H A D | hal_h264e_vepu580.c | 79 H264eSps *sps; member 533 ctx->sps = desc->p; in update_vepu580_syntax() 606 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu580_get_task() 891 static void setup_vepu580_codec(HalVepu580RegSet *regs, H264eSps *sps, in setup_vepu580_codec() argument 903 regs->reg_base.synt_sps.max_fnum = sps->log2_max_frame_num_minus4; in setup_vepu580_codec() 904 regs->reg_base.synt_sps.drct_8x8 = sps->direct8x8_inference; in setup_vepu580_codec() 905 regs->reg_base.synt_sps.mpoc_lm4 = sps->log2_max_poc_lsb_minus4; in setup_vepu580_codec() 1104 static void setup_vepu580_rdo_pred(HalVepu580RegSet *regs, H264eSps *sps, in setup_vepu580_rdo_pred() argument 1120 regs->reg_base.rdo_cfg.rect_size = (sps->profile_idc == H264_PROFILE_BASELINE && in setup_vepu580_rdo_pred() 1121 sps->level_idc <= H264_LEVEL_3_0) ? 1 : 0; in setup_vepu580_rdo_pred() [all …]
|
| H A D | hal_h264e_vepu540c.c | 65 H264eSps *sps; member 317 ctx->sps = desc->p; in update_vepu540c_syntax() 368 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu540c_get_task() 545 static void setup_vepu540c_codec(HalVepu540cRegSet *regs, H264eSps *sps, in setup_vepu540c_codec() argument 557 regs->reg_base.synt_sps.max_fnum = sps->log2_max_frame_num_minus4; in setup_vepu540c_codec() 558 regs->reg_base.synt_sps.drct_8x8 = sps->direct8x8_inference; in setup_vepu540c_codec() 559 regs->reg_base.synt_sps.mpoc_lm4 = sps->log2_max_poc_lsb_minus4; in setup_vepu540c_codec() 757 static void setup_vepu540c_rdo_pred(HalVepu540cRegSet *regs, H264eSps *sps, in setup_vepu540c_rdo_pred() argument 768 regs->reg_base.rdo_cfg.rect_size = (sps->profile_idc == H264_PROFILE_BASELINE && in setup_vepu540c_rdo_pred() 769 sps->level_idc <= H264_LEVEL_3_0) ? 1 : 0; in setup_vepu540c_rdo_pred() [all …]
|
| H A D | hal_h264e_vepu510.c | 111 H264eSps *sps; member 511 ctx->sps = desc->p; in update_vepu510_syntax() 587 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu510_get_task() 588 hw_cfg->hw_poc_type = ctx->sps->pic_order_cnt_type; in hal_h264e_vepu510_get_task() 912 static void setup_vepu510_codec(HalVepu510RegSet *regs, H264eSps *sps, in setup_vepu510_codec() argument 926 reg_frm->synt_sps.max_fnum = sps->log2_max_frame_num_minus4; in setup_vepu510_codec() 927 reg_frm->synt_sps.drct_8x8 = sps->direct8x8_inference; in setup_vepu510_codec() 928 reg_frm->synt_sps.mpoc_lm4 = sps->log2_max_poc_lsb_minus4; in setup_vepu510_codec() 929 reg_frm->synt_sps.poc_type = sps->pic_order_cnt_type; in setup_vepu510_codec() 1127 static void setup_vepu510_rdo_pred(HalH264eVepu510Ctx *ctx, H264eSps *sps, in setup_vepu510_rdo_pred() argument [all …]
|
| /rockchip-linux_mpp/mpp/hal/vpu/h264e/ |
| H A D | hal_h264e_vepu2_v2.c | 63 H264eSps *sps; member 163 ctx->sps = desc->p; in update_vepu2_syntax() 289 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in setup_intra_refresh() 290 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in setup_intra_refresh() 346 H264eSps *sps = ctx->sps; in hal_h264e_vepu2_gen_regs_v2() local 350 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu2_gen_regs_v2() 351 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu2_gen_regs_v2() 358 mb_w = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu2_gen_regs_v2() 359 mb_h = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu2_gen_regs_v2() 407 if (sps->profile_idc > 31) in hal_h264e_vepu2_gen_regs_v2() [all …]
|
| H A D | hal_h264e_vepu1_v2.c | 63 H264eSps *sps; member 162 ctx->sps = desc->p; in update_vepu1_syntax() 296 H264eSps *sps = ctx->sps; in hal_h264e_vepu1_gen_regs_v2() local 300 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu1_gen_regs_v2() 301 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu1_gen_regs_v2() 308 mb_w = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu1_gen_regs_v2() 309 mb_h = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu1_gen_regs_v2() 366 if (sps->profile_idc > 31) in hal_h264e_vepu1_gen_regs_v2() 703 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu1_ret_task_v2() 704 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu1_ret_task_v2()
|