Home
last modified time | relevance | path

Searched refs:pSpatialLayer (Results 1 – 5 of 5) sorted by relevance

/third_party/openh264/codec/encoder/core/inc/
Dparam_svc.h393 SSpatialLayerConfig* pSpatialLayer = &sSpatialLayers[0]; in ParamTranscode() local
397pSpatialLayer->uiProfileIdc = (pCodingParam.sSpatialLayers[iIdxSpatial].uiProfileIdc == PRO_U… in ParamTranscode()
399 pSpatialLayer->uiLevelIdc = pCodingParam.sSpatialLayers[iIdxSpatial].uiLevelIdc; in ParamTranscode()
404 pSpatialLayer->fFrameRate = in ParamTranscode()
410pSpatialLayer->iVideoWidth = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].iVideoWidth, 0, in ParamTranscode()
412pSpatialLayer->iVideoHeight = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].iVideoHeight, 0, in ParamTranscode()
415 pSpatialLayer->iSpatialBitrate = in ParamTranscode()
417 pSpatialLayer->iMaxSpatialBitrate = in ParamTranscode()
421 if (pSpatialLayer->iVideoWidth == 0) { in ParamTranscode()
422 pSpatialLayer->iVideoWidth = iPicWidth; in ParamTranscode()
[all …]
Dau_set.h149 int32_t WelsAdjustLevel (SSpatialLayerConfig* pSpatialLayer,const SLevelLimits *pCurLevel);
/third_party/openh264/codec/encoder/core/src/
Dau_set.cpp76 int32_t WelsAdjustLevel (SSpatialLayerConfig* pSpatialLayer, const SLevelLimits* pCurLevel) { in WelsAdjustLevel() argument
77 int32_t iMaxBitrate = pSpatialLayer->iMaxSpatialBitrate; in WelsAdjustLevel()
80 pSpatialLayer->uiLevelIdc = pCurLevel->uiLevelIdc; in WelsAdjustLevel()
155 SSpatialLayerConfig* pSpatialLayer = &pParam->sSpatialLayers[i]; in WelsCheckRefFrameLimitationLevelIdcFirst() local
156 if (pSpatialLayer->uiLevelIdc == LEVEL_UNKNOWN) { in WelsCheckRefFrameLimitationLevelIdcFirst()
160 …uint32_t uiPicInMBs = ((pSpatialLayer->iVideoHeight + 15) >> 4) * ((pSpatialLayer->iVideoWidth + 1… in WelsCheckRefFrameLimitationLevelIdcFirst()
161 iRefFrame = g_ksLevelLimits[pSpatialLayer->uiLevelIdc - 1].uiMaxDPBMbs / uiPicInMBs; in WelsCheckRefFrameLimitationLevelIdcFirst()
166 pParam->iMaxNumRefFrame, iRefFrame, pSpatialLayer->uiLevelIdc); in WelsCheckRefFrameLimitationLevelIdcFirst()
172 pParam->iNumRefFrame, iRefFrame, pSpatialLayer->uiLevelIdc); in WelsCheckRefFrameLimitationLevelIdcFirst()
179 pParam->iMaxNumRefFrame, iRefFrame, pSpatialLayer->uiLevelIdc); in WelsCheckRefFrameLimitationLevelIdcFirst()
Dencoder_ext.cpp358 SSpatialLayerConfig* pSpatialLayer = &pCfg->sSpatialLayers[i]; in ParamValidation() local
359 iTotalBitrate += pSpatialLayer->iSpatialBitrate; in ParamValidation()
361 if (WelsBitRateVerification (pLogCtx, pSpatialLayer, i) != ENC_RETURN_SUCCESS) in ParamValidation()
496 SSpatialLayerConfig* pSpatialLayer = &pCodingParam->sSpatialLayers[i]; in ParamValidationExt() local
497 int32_t kiPicWidth = pSpatialLayer->iVideoWidth; in ParamValidationExt()
498 int32_t kiPicHeight = pSpatialLayer->iVideoHeight; in ParamValidationExt()
508 kiPicWidth = pSpatialLayer->iVideoWidth = pCodingParam->iPicWidth; in ParamValidationExt()
509 kiPicHeight = pSpatialLayer->iVideoHeight = pCodingParam->iPicHeight; in ParamValidationExt()
512 pSpatialLayer->iVideoWidth, pSpatialLayer->iVideoHeight); in ParamValidationExt()
528 if (pSpatialLayer->sSliceArgument.uiSliceMode >= SM_RESERVED) { in ParamValidationExt()
[all …]
/third_party/openh264/test/api/
Dencode_options_test.cpp110 SSpatialLayerConfig* pSpatialLayer = &param_.sSpatialLayers[iSpatialIdx]; in RandomParamExtCombination() local
115pSpatialLayer->iVideoWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 2, MAX_WI… in RandomParamExtCombination()
116pSpatialLayer->iVideoHeight = WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 2, MAX_HE… in RandomParamExtCombination()
117 pSpatialLayer->fFrameRate = rand() % FRAME_RATE_RANGE + 0.5f; in RandomParamExtCombination()
118 pSpatialLayer->iMaxSpatialBitrate = rand() % BIT_RATE_RANGE; in RandomParamExtCombination()
119 pSpatialLayer->iSpatialBitrate = rand() % BIT_RATE_RANGE; in RandomParamExtCombination()
122pSpatialLayer->sSliceArgument.uiSliceMode = static_cast<SliceModeEnum> (rand() % SLICE_MODE_NUM); in RandomParamExtCombination()
123 if (pSpatialLayer->sSliceArgument.uiSliceMode != SM_SIZELIMITED_SLICE) { in RandomParamExtCombination()
126 pSpatialLayer->sSliceArgument.uiSliceNum = rand(); in RandomParamExtCombination()
127 pSpatialLayer->sSliceArgument.uiSliceSizeConstraint = rand(); in RandomParamExtCombination()
[all …]