| /rockchip-linux_mpp/mpp/codec/enc/h264/ |
| H A D | h264e_pps.c | 54 MPP_RET h264e_pps_update(H264ePps *pps, MppEncCfgSet *cfg) in h264e_pps_update() argument 58 pps->pps_id = 0; in h264e_pps_update() 59 pps->sps_id = 0; in h264e_pps_update() 61 pps->entropy_coding_mode = codec->entropy_coding_mode; in h264e_pps_update() 62 pps->bottom_field_pic_order_in_frame_present = 0; in h264e_pps_update() 63 pps->num_slice_groups = 1; in h264e_pps_update() 65 pps->num_ref_idx_l0_default_active = 1; in h264e_pps_update() 66 pps->num_ref_idx_l1_default_active = 1; in h264e_pps_update() 68 pps->weighted_pred = 0; in h264e_pps_update() 69 pps->weighted_bipred_idc = 0; in h264e_pps_update() [all …]
|
| H A D | h264e_pps.h | 63 MPP_RET h264e_pps_update(H264ePps *pps, MppEncCfgSet *cfg); 64 MPP_RET h264e_pps_to_packet(H264ePps *pps, MppPacket packet, RK_S32 *offset, RK_S32 *len); 65 MPP_RET h264e_pps_dump(H264ePps *pps);
|
| H A D | h264e_api_v2.c | 57 H264ePps pps; member 324 h264e_pps_update(&p->pps, p->cfg); in h264e_gen_hdr() 335 h264e_pps_to_packet(&p->pps, p->hdr_pkt, &p->pps_offset, &p->pps_len); in h264e_gen_hdr() 464 h264e_slice_update(&p->slice, p->cfg, &p->sps, &p->pps, dpb->curr); in h264e_proc_dpb() 505 h264e_add_syntax(p, H264E_SYN_PPS, &p->pps); in h264e_proc_hal()
|
| H A D | h264e_slice.h | 166 H264eSps *sps, H264ePps *pps,
|
| /rockchip-linux_mpp/mpp/codec/enc/h265/ |
| H A D | h265e_ps.c | 402 MPP_RET h265e_set_pps(H265eCtx *ctx, H265ePps *pps, H265eSps *sps) in h265e_set_pps() argument 406 pps->m_bConstrainedIntraPred = codec->const_intra_pred; in h265e_set_pps() 407 pps->m_PPSId = 0; in h265e_set_pps() 408 pps->m_SPSId = 0; in h265e_set_pps() 409 pps->m_picInitQPMinus26 = 0; in h265e_set_pps() 410 pps->m_useDQP = 1; in h265e_set_pps() 411 pps->m_maxCuDQPDepth = codec->trans_cfg.diff_cu_qp_delta_depth; in h265e_set_pps() 412 pps->m_minCuDQPSize = (sps->m_maxCUSize >> pps->m_maxCuDQPDepth); in h265e_set_pps() 414 pps->m_sps = sps; in h265e_set_pps() 415 pps->m_bSliceChromaQpFlag = 0; in h265e_set_pps() [all …]
|
| H A D | h265e_syntax.c | 43 const H265ePps *pps = (H265ePps *)&h->pps; in fill_picture_parameters() local 53 pp->sps_id = pps->m_SPSId; in fill_picture_parameters() 82 pp->num_ref_idx_l0_default_active_minus1 = pps->m_numRefIdxL0DefaultActive - 1; in fill_picture_parameters() 83 pp->num_ref_idx_l1_default_active_minus1 = pps->m_numRefIdxL1DefaultActive - 1; in fill_picture_parameters() 84 pp->init_qp_minus26 = pps->m_picInitQPMinus26; in fill_picture_parameters() 100 (pps->m_outputFlagPresentFlag << 21) | in fill_picture_parameters() 101 (pps->m_numExtraSliceHeaderBits << 22) | in fill_picture_parameters() 102 (pps->m_signHideFlag << 25) | in fill_picture_parameters() 103 (pps->m_cabacInitPresentFlag << 26) | in fill_picture_parameters() 106 …pp->CodingSettingPicturePropertyFlags = (pps->m_bConstrainedIntraPred << … in fill_picture_parameters() [all …]
|
| H A D | h265e_header_gen.c | 553 H265ePps *pps, RK_S32 idx ) 559 static MPP_RET h265e_pps_write(H265ePps *pps, H265eSps *sps, H265eStream *s) in h265e_pps_write() argument 568 …h265e_stream_write_ue_with_log(s, pps->m_PPSId, "pps_pic_parameter_set_… in h265e_pps_write() 569 …h265e_stream_write_ue_with_log(s, pps->m_SPSId, "pps_seq_parameter_set_… in h265e_pps_write() 571 …h265e_stream_write1_with_log(s, pps->m_outputFlagPresentFlag ? 1 : 0, "output_flag_present_flag… in h265e_pps_write() 572 …h265e_stream_write_with_log(s, pps->m_numExtraSliceHeaderBits, 3, "num_extra_slice_header_bi… in h265e_pps_write() 573 … h265e_stream_write1_with_log(s, pps->m_signHideFlag, "sign_data_hiding_flag"); in h265e_pps_write() 574 …h265e_stream_write1_with_log(s, pps->m_cabacInitPresentFlag ? 1 : 0, "cabac_init_present_flag"… in h265e_pps_write() 575 …h265e_stream_write_ue_with_log(s, pps->m_numRefIdxL0DefaultActive - 1, "num_ref_idx_l0_default… in h265e_pps_write() 576 …h265e_stream_write_ue_with_log(s, pps->m_numRefIdxL1DefaultActive - 1, "num_ref_idx_l1_default… in h265e_pps_write() [all …]
|
| H A D | h265e_slice.c | 211 H265ePps *pps = &p->pps; in h265e_slice_init() local 221 slice->m_pps = pps; in h265e_slice_init() 255 slice->m_deblockingFilterDisable = pps->m_picDisableDeblockingFilterFlag; in h265e_slice_init() 256 slice->m_deblockingFilterBetaOffsetDiv2 = pps->m_deblockingFilterBetaOffsetDiv2; in h265e_slice_init() 257 slice->m_deblockingFilterTcOffsetDiv2 = pps->m_deblockingFilterTcOffsetDiv2; in h265e_slice_init() 265 slice->m_ppsId = pps->m_PPSId; in h265e_slice_init() 855 H265ePps *pps = &p->pps; in h265e_code_slice_skip_frame() local 873 if (pps->m_nNumTileColumnsMinus1) { in h265e_code_slice_skip_frame() 875 for (i = 0; i <= pps->m_nNumTileColumnsMinus1; i++) { in h265e_code_slice_skip_frame() 876 tile.mb_total = pps->m_nTileColumnWidthArray[i] * pps->m_nTileRowHeightArray[i]; in h265e_code_slice_skip_frame() [all …]
|
| H A D | h265e_ps.h | 28 MPP_RET h265e_set_pps(H265eCtx *ctx, H265ePps *pps, H265eSps *sps);
|
| H A D | h265e_codec.h | 70 H265ePps pps; member
|
| /rockchip-linux_mpp/mpp/codec/dec/h265/ |
| H A D | h265d_parser2_syntax.c | 57 const HEVCPPS *pps = (HEVCPPS *)h->pps_list[h->sh.pps_id]; in fill_picture_parameters() local 58 const HEVCSPS *sps = (HEVCSPS *)h->sps_list[pps->sps_id]; in fill_picture_parameters() 73 pp->sps_id = pps->sps_id; in fill_picture_parameters() 97 pp->num_ref_idx_l0_default_active_minus1 = pps->num_ref_idx_l0_default_active - 1; in fill_picture_parameters() 98 pp->num_ref_idx_l1_default_active_minus1 = pps->num_ref_idx_l1_default_active - 1; in fill_picture_parameters() 99 pp->init_qp_minus26 = pps->pic_init_qp_minus26; in fill_picture_parameters() 118 (pps->dependent_slice_segments_enabled_flag << 20) | in fill_picture_parameters() 119 (pps->output_flag_present_flag << 21) | in fill_picture_parameters() 120 (pps->num_extra_slice_header_bits << 22) | in fill_picture_parameters() 121 (pps->sign_data_hiding_flag << 25) | in fill_picture_parameters() [all …]
|
| H A D | h265d_ps.c | 849 static RK_S32 compare_pps(HEVCPPS *openhevc_pps, HEVCPPS *pps) in compare_pps() argument 852 if (openhevc_pps->sps_id != pps->sps_id) { in compare_pps() 857 if (openhevc_pps->pps_id != pps->pps_id) { in compare_pps() 862 if (openhevc_pps->sign_data_hiding_flag != pps->sign_data_hiding_flag) { in compare_pps() 867 if (openhevc_pps->cabac_init_present_flag != pps->cabac_init_present_flag) { in compare_pps() 872 if (openhevc_pps->num_ref_idx_l0_default_active != pps->num_ref_idx_l0_default_active) { in compare_pps() 876 if (openhevc_pps->num_ref_idx_l1_default_active != pps->num_ref_idx_l1_default_active) { in compare_pps() 880 if (openhevc_pps->pic_init_qp_minus26 != pps->pic_init_qp_minus26) { in compare_pps() 885 if (openhevc_pps->constrained_intra_pred_flag != pps->constrained_intra_pred_flag) { in compare_pps() 889 if (openhevc_pps->transform_skip_enabled_flag != pps->transform_skip_enabled_flag) { in compare_pps() [all …]
|
| H A D | h265d_parser.c | 753 s->pps != (HEVCPPS*)s->pps_list[sh->pps_id]) { in hls_slice_header() 757 s->pps = (HEVCPPS*)s->pps_list[sh->pps_id]; in hls_slice_header() 759 if (s->sps_need_upate || s->sps != (HEVCSPS*)s->sps_list[s->pps->sps_id]) { in hls_slice_header() 760 s->sps = (HEVCSPS*)s->sps_list[s->pps->sps_id]; in hls_slice_header() 780 if (s->pps->dependent_slice_segments_enabled_flag) in hls_slice_header() 808 for (i = 0; i < s->pps->num_extra_slice_header_bits; i++) in hls_slice_header() 824 if (s->pps->output_flag_present_flag) in hls_slice_header() 925 sh->nb_refs[L0] = s->pps->num_ref_idx_l0_default_active; in hls_slice_header() 927 sh->nb_refs[L1] = s->pps->num_ref_idx_l1_default_active; in hls_slice_header() 953 if (s->pps->lists_modification_present_flag && nb_refs > 1) { in hls_slice_header() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/h264/ |
| 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 41 READ_ONEBIT(p_bitctx, &pps->pic_scaling_list_present_flag[i]); in parse_pps_calingLists() 43 if (pps->pic_scaling_list_present_flag[i]) { in parse_pps_calingLists() 45 … pps->ScalingList4x4[i], &pps->UseDefaultScalingMatrix4x4Flag[i])); in parse_pps_calingLists() 48 if (pps->transform_8x8_mode_flag) { in parse_pps_calingLists() 50 READ_ONEBIT(p_bitctx, &pps->pic_scaling_list_present_flag[i + 6]); in parse_pps_calingLists() 51 if (pps->pic_scaling_list_present_flag[i + 6]) { in parse_pps_calingLists() 53 … pps->ScalingList8x8[i], &pps->UseDefaultScalingMatrix8x8Flag[i])); in parse_pps_calingLists() 136 H264_PPS_t *cur_pps = &p_Cur->pps; in process_pps() 162 MPP_RET activate_pps(H264dVideoCtx_t *p_Vid, H264_PPS_t *pps) in activate_pps() argument [all …]
|
| H A D | h264d_scalist.c | 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 114 if (!pps->pic_scaling_list_present_flag[i]) { // fall-back rule B in set_pps_scanlist_matrix() 127 if (pps->UseDefaultScalingMatrix4x4Flag[i]) { in set_pps_scanlist_matrix() 130 p_Vid->qmatrix[i] = pps->ScalingList4x4[i]; in set_pps_scanlist_matrix() 135 if (!pps->pic_scaling_list_present_flag[i]) { // fall-back rule B in set_pps_scanlist_matrix() 146 if (pps->UseDefaultScalingMatrix8x8Flag[i - 6]) { in set_pps_scanlist_matrix() 149 p_Vid->qmatrix[i] = pps->ScalingList8x8[i - 6]; in set_pps_scanlist_matrix() 342 H264_PPS_t *pps = currSlice->p_Vid->active_pps; in prepare_init_scanlist() local 344 if (!pps->pic_scaling_matrix_present_flag && !sps->seq_scaling_matrix_present_flag) { in prepare_init_scanlist() 352 if (pps->pic_scaling_matrix_present_flag) { // then check pps in prepare_init_scanlist() [all …]
|
| H A D | h264d_slice.c | 271 H264_PPS_t *pps, const MppDecHwCap *hw_info) in check_sps_pps() argument 327 ret |= (pps->pic_parameter_set_id > 255); in check_sps_pps() 328 ret |= (pps->seq_parameter_set_id > 31); in check_sps_pps() 329 ret |= (pps->num_slice_groups_minus1 > 0); in check_sps_pps() 330 ret |= (pps->num_ref_idx_l0_default_active_minus1 > 31); in check_sps_pps() 331 ret |= (pps->num_ref_idx_l1_default_active_minus1 > 31); in check_sps_pps() 332 …ret |= (pps->pic_init_qp_minus26 > 25 || pps->pic_init_qp_minus26 < -(26 + 6 * (RK_S32)sps->bit_de… in check_sps_pps() 333 ret |= (pps->pic_init_qs_minus26 > 25 || pps->pic_init_qs_minus26 < -26); in check_sps_pps() 334 ret |= (pps->chroma_qp_index_offset > 12 || pps->chroma_qp_index_offset < -12); in check_sps_pps() 335 ret |= (pps->redundant_pic_cnt_present_flag == 1); in check_sps_pps() [all …]
|
| H A D | h264d_pps.h | 31 MPP_RET activate_pps(H264dVideoCtx_t *p_Vid, H264_PPS_t *pps);
|
| /rockchip-linux_mpp/mpp/hal/vpu/vp8e/ |
| H A D | hal_vp8e_base.c | 36 Pps *pps = ctx->ppss.pps; in set_frame_params() local 40 pps->qp_sgm[i] = ctx->rc->qp_hdr; in set_frame_params() 41 pps->level_sgm[i] = sps->filter_level; in set_frame_params() 55 Pps *p_pps = ctx->ppss.pps; in set_filter() 128 Pps *pps = ppss->pps; in set_segmentation() local 136 pps->qp_sgm[1] = MPP_CLIP3(0, 127, qp - hw_cfg->roi1_delta_qp); in set_segmentation() 139 pps->qp_sgm[2] = MPP_CLIP3(0, 127, qp - hw_cfg->roi2_delta_qp); in set_segmentation() 151 pps->segment_enabled = 1; in set_segmentation() 153 memset(pps->sgm.id_cnt, 0, sizeof(pps->sgm.id_cnt)); in set_segmentation() 165 pps->sgm.id_cnt[id]++; in set_segmentation() [all …]
|
| /rockchip-linux_mpp/mpp/hal/vpu/h264e/ |
| H A D | hal_h264e_vepu1_v2.c | 64 H264ePps *pps; member 166 ctx->pps = desc->p; in update_vepu1_syntax() 297 H264ePps *pps = ctx->pps; in hal_h264e_vepu1_gen_regs_v2() local 362 if (pps->entropy_coding_mode) in hal_h264e_vepu1_gen_regs_v2() 364 if (pps->transform_8x8_mode) in hal_h264e_vepu1_gen_regs_v2() 440 val = VEPU_REG_PPS_INIT_QP(pps->pic_init_qp) in hal_h264e_vepu1_gen_regs_v2() 443 | VEPU_REG_CHROMA_QP_OFFSET(pps->chroma_qp_index_offset) in hal_h264e_vepu1_gen_regs_v2() 446 if (pps->constrained_intra_pred) in hal_h264e_vepu1_gen_regs_v2() 508 val = VEPU_REG_PPS_ID(pps->pps_id) in hal_h264e_vepu1_gen_regs_v2()
|
| H A D | hal_h264e_vepu2_v2.c | 64 H264ePps *pps; member 167 ctx->pps = desc->p; in update_vepu2_syntax() 347 H264ePps *pps = ctx->pps; in hal_h264e_vepu2_gen_regs_v2() local 403 if (pps->entropy_coding_mode) in hal_h264e_vepu2_gen_regs_v2() 405 if (pps->transform_8x8_mode) in hal_h264e_vepu2_gen_regs_v2() 487 val = VEPU_REG_PPS_INIT_QP(pps->pic_init_qp) in hal_h264e_vepu2_gen_regs_v2() 490 | VEPU_REG_CHROMA_QP_OFFSET(pps->chroma_qp_index_offset) in hal_h264e_vepu2_gen_regs_v2() 496 if (pps->constrained_intra_pred) in hal_h264e_vepu2_gen_regs_v2() 568 val = VEPU_REG_PPS_ID(pps->pps_id) in hal_h264e_vepu2_gen_regs_v2()
|
| /rockchip-linux_mpp/mpp/hal/rkenc/h264e/ |
| H A D | hal_h264e_vepu541.c | 62 H264ePps *pps; member 314 ctx->pps = desc->p; in update_vepu541_syntax() 554 H264ePps *pps, H264eSlice *slice) in setup_vepu541_codec() argument 572 regs->reg105.etpy_mode = pps->entropy_coding_mode; in setup_vepu541_codec() 573 regs->reg105.trns_8x8 = pps->transform_8x8_mode; in setup_vepu541_codec() 574 regs->reg105.csip_flag = pps->constrained_intra_pred; in setup_vepu541_codec() 575 regs->reg105.num_ref0_idx = pps->num_ref_idx_l0_default_active - 1; in setup_vepu541_codec() 576 regs->reg105.num_ref1_idx = pps->num_ref_idx_l1_default_active - 1; in setup_vepu541_codec() 577 regs->reg105.pic_init_qp = pps->pic_init_qp; in setup_vepu541_codec() 578 regs->reg105.cb_ofst = pps->chroma_qp_index_offset; in setup_vepu541_codec() [all …]
|
| H A D | hal_h264e_vepu540c.c | 66 H264ePps *pps; member 321 ctx->pps = desc->p; in update_vepu540c_syntax() 546 H264ePps *pps, H264eSlice *slice) in setup_vepu540c_codec() argument 561 regs->reg_base.synt_pps.etpy_mode = pps->entropy_coding_mode; in setup_vepu540c_codec() 562 regs->reg_base.synt_pps.trns_8x8 = pps->transform_8x8_mode; in setup_vepu540c_codec() 563 regs->reg_base.synt_pps.csip_flag = pps->constrained_intra_pred; in setup_vepu540c_codec() 564 regs->reg_base.synt_pps.num_ref0_idx = pps->num_ref_idx_l0_default_active - 1; in setup_vepu540c_codec() 565 regs->reg_base.synt_pps.num_ref1_idx = pps->num_ref_idx_l1_default_active - 1; in setup_vepu540c_codec() 566 regs->reg_base.synt_pps.pic_init_qp = pps->pic_init_qp; in setup_vepu540c_codec() 567 regs->reg_base.synt_pps.cb_ofst = pps->chroma_qp_index_offset; in setup_vepu540c_codec() [all …]
|
| H A D | hal_h264e_vepu510.c | 112 H264ePps *pps; member 515 ctx->pps = desc->p; in update_vepu510_syntax() 913 H264ePps *pps, H264eSlice *slice) in setup_vepu510_codec() argument 931 reg_frm->synt_pps.etpy_mode = pps->entropy_coding_mode; in setup_vepu510_codec() 932 reg_frm->synt_pps.trns_8x8 = pps->transform_8x8_mode; in setup_vepu510_codec() 933 reg_frm->synt_pps.csip_flag = pps->constrained_intra_pred; in setup_vepu510_codec() 934 reg_frm->synt_pps.num_ref0_idx = pps->num_ref_idx_l0_default_active - 1; in setup_vepu510_codec() 935 reg_frm->synt_pps.num_ref1_idx = pps->num_ref_idx_l1_default_active - 1; in setup_vepu510_codec() 936 reg_frm->synt_pps.pic_init_qp = pps->pic_init_qp; in setup_vepu510_codec() 937 reg_frm->synt_pps.cb_ofst = pps->chroma_qp_index_offset; in setup_vepu510_codec() [all …]
|
| H A D | hal_h264e_vepu580.c | 80 H264ePps *pps; member 537 ctx->pps = desc->p; in update_vepu580_syntax() 892 H264ePps *pps, H264eSlice *slice) in setup_vepu580_codec() argument 907 regs->reg_base.synt_pps.etpy_mode = pps->entropy_coding_mode; in setup_vepu580_codec() 908 regs->reg_base.synt_pps.trns_8x8 = pps->transform_8x8_mode; in setup_vepu580_codec() 909 regs->reg_base.synt_pps.csip_flag = pps->constrained_intra_pred; in setup_vepu580_codec() 910 regs->reg_base.synt_pps.num_ref0_idx = pps->num_ref_idx_l0_default_active - 1; in setup_vepu580_codec() 911 regs->reg_base.synt_pps.num_ref1_idx = pps->num_ref_idx_l1_default_active - 1; in setup_vepu580_codec() 912 regs->reg_base.synt_pps.pic_init_qp = pps->pic_init_qp; in setup_vepu580_codec() 913 regs->reg_base.synt_pps.cb_ofst = pps->chroma_qp_index_offset; in setup_vepu580_codec() [all …]
|
| H A D | hal_h264e_vepu511.c | 112 H264ePps *pps; member 514 ctx->pps = desc->p; in update_vepu511_syntax() 884 H264ePps *pps = ctx->pps; in setup_vepu511_codec() local 901 reg_frm->synt_pps.etpy_mode = pps->entropy_coding_mode; in setup_vepu511_codec() 902 reg_frm->synt_pps.trns_8x8 = pps->transform_8x8_mode; in setup_vepu511_codec() 903 reg_frm->synt_pps.csip_flag = pps->constrained_intra_pred; in setup_vepu511_codec() 904 reg_frm->synt_pps.num_ref0_idx = pps->num_ref_idx_l0_default_active - 1; in setup_vepu511_codec() 905 reg_frm->synt_pps.num_ref1_idx = pps->num_ref_idx_l1_default_active - 1; in setup_vepu511_codec() 906 reg_frm->synt_pps.pic_init_qp = pps->pic_init_qp; in setup_vepu511_codec() 907 reg_frm->synt_pps.cb_ofst = pps->chroma_qp_index_offset; in setup_vepu511_codec() [all …]
|