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

Function CheckLevelSetting

codec/encoder/core/src/encoder_ext.cpp:151–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150}
151void CheckLevelSetting (SLogContext* pLogCtx, SWelsSvcCodingParam* pParam, int32_t iLayer, ELevelIdc uiLevelIdc) {
152 SSpatialLayerConfig* pLayerInfo = &pParam->sSpatialLayers[iLayer];
153 pLayerInfo->uiLevelIdc = LEVEL_UNKNOWN;
154 int32_t iLevelIdx = LEVEL_NUMBER - 1;
155 do {
156 if (g_ksLevelLimits[iLevelIdx].uiLevelIdc == uiLevelIdc) {
157 pLayerInfo->uiLevelIdc = uiLevelIdc;
158 break;
159 }
160 iLevelIdx--;
161 } while (iLevelIdx >= 0);
162}
163void CheckReferenceNumSetting (SLogContext* pLogCtx, SWelsSvcCodingParam* pParam, int32_t iNumRef) {
164 int32_t iRefUpperBound = (pParam->iUsageType == CAMERA_VIDEO_REAL_TIME) ?
165 MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA : MAX_REFERENCE_PICTURE_COUNT_NUM_SCREEN;

Callers 2

SetOptionMethod · 0.85
ParamValidationExtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected