Lines Matching refs:codec
117 MppEncH265Cfg *codec = &ctx->cfg->h265; in h265e_set_vps() local
136 …cBuffering[i] = MPP_MIN(MAX_REFS, MPP_MAX((vps->m_numReorderPics[i] + 3), codec->num_ref) + vps->m… in h265e_set_vps()
150 if (codec->level < level_idc) { in h265e_set_vps()
153 profileTierLevel->m_levelIdc = codec->level; in h265e_set_vps()
155 profileTierLevel->m_tierFlag = codec->tier ? 1 : 0; in h265e_set_vps()
159 codec->profile = MPP_PROFILE_HEVC_FORMAT_RANGE_EXTENDIONS; in h265e_set_vps()
172 profileTierLevel->m_profileIdc = codec->profile; in h265e_set_vps()
173 profileTierLevel->m_profileCompatibilityFlag[codec->profile] = 1; in h265e_set_vps()
183 MppEncH265Cfg *codec = &ctx->cfg->h265; in h265e_set_sps() local
187 MppEncVuiCfg *vui = &codec->vui; in h265e_set_sps()
207 maxCUDepth = (uint32_t)convertToBit[codec->max_cu_size]; in h265e_set_sps()
209 minCUDepth = (codec->max_cu_size >> (maxCUDepth - 1)); in h265e_set_sps()
211 tuQTMaxLog2Size = convertToBit[codec->max_cu_size] + 2 - 1; in h265e_set_sps()
218 while ((RK_U32)(codec->max_cu_size >> maxCUDepth) > (1u << (tuQTMinLog2Size + addCUDepth))) { 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()
261 sps->m_maxCUSize = codec->max_cu_size; in h265e_set_sps()
289 sps->m_iAMPAcc[i] = codec->amp_enable; in h265e_set_sps()
291 sps->m_useAMP = codec->amp_enable; in h265e_set_sps()
293 sps->m_iAMPAcc[i] = codec->amp_enable; in h265e_set_sps()
301 sps->m_bUseSAO = codec->sao_enable; in h265e_set_sps()
313 sps->m_scalingListEnabledFlag = codec->trans_cfg.scaling_list_mode == 0 ? 0 : 1; in h265e_set_sps()
319 sps->m_TMVPFlagsPresent = codec->tmvp_enable; in h265e_set_sps()
320 sps->m_useStrongIntraSmoothing = codec->cu_cfg.strong_intra_smoothing_enabled_flag; in h265e_set_sps()
325 codec->tmvp_enable = 0; in h265e_set_sps()
331 codec->tmvp_enable = 0; in h265e_set_sps()
333 codec->sao_enable = 0; in h265e_set_sps()
404 MppEncH265Cfg *codec = &ctx->cfg->h265; in h265e_set_pps() local
406 pps->m_bConstrainedIntraPred = codec->const_intra_pred; in h265e_set_pps()
411 pps->m_maxCuDQPDepth = codec->trans_cfg.diff_cu_qp_delta_depth; in h265e_set_pps()
416 pps->m_chromaCbQpOffset = codec->trans_cfg.cb_qp_offset; in h265e_set_pps()
418 pps->m_chromaCrQpOffset = codec->trans_cfg.cb_qp_offset; in h265e_set_pps()
425 pps->m_picInitQPMinus26 = codec->intra_qp - 26; in h265e_set_pps()
426 pps->m_LFCrossSliceBoundaryFlag = codec->lpf_acs_sli_en; in h265e_set_pps()
427 …pps->m_deblockingFilterControlPresentFlag = !codec->dblk_cfg.slice_deblocking_filter_disabled_flag; in h265e_set_pps()
432 pps->m_deblockingFilterBetaOffsetDiv2 = codec->dblk_cfg.slice_beta_offset_div2; in h265e_set_pps()
433 pps->m_deblockingFilterTcOffsetDiv2 = codec->dblk_cfg.slice_tc_offset_div2; in h265e_set_pps()
446 pps->m_transquantBypassEnableFlag = codec->trans_cfg.transquant_bypass_enabled_flag; in h265e_set_pps()
447 pps->m_useTransformSkip = codec->trans_cfg.transform_skip_enabled_flag; in h265e_set_pps()
451 pps->m_cabacInitPresentFlag = codec->entropy_cfg.cabac_init_flag; in h265e_set_pps()
459 pps->m_loopFilterAcrossTilesEnabledFlag = !codec->lpf_acs_tile_disable; in h265e_set_pps()
479 pps->m_nNumTileColumnsMinus1 = codec->auto_tile ? 1 : 0; in h265e_set_pps()
485 pps->m_loopFilterAcrossTilesEnabledFlag = !codec->lpf_acs_tile_disable; in h265e_set_pps()