MCPcopy Create free account
hub / github.com/cisco/openh264 / WelsAdjustLevel

Function WelsAdjustLevel

codec/encoder/core/src/au_set.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75}
76int32_t WelsAdjustLevel (SSpatialLayerConfig* pSpatialLayer, const SLevelLimits* pCurLevel) {
77 int32_t iMaxBitrate = pSpatialLayer->iMaxSpatialBitrate;
78 do {
79 if (iMaxBitrate <= (int32_t) (pCurLevel->uiMaxBR * CpbBrNalFactor)) {
80 pSpatialLayer->uiLevelIdc = pCurLevel->uiLevelIdc;
81 return 0;
82 }
83 pCurLevel++;
84 } while (pCurLevel->uiLevelIdc != LEVEL_5_2);
85 return 1;
86}
87
88static int32_t WelsCheckNumRefSetting (SLogContext* pLogCtx, SWelsSvcCodingParam* pParam, bool bStrictCheck) {
89 // validate LTR num

Callers 1

WelsBitRateVerificationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected