| 74 | |
| 75 | } |
| 76 | int32_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 | |
| 88 | static int32_t WelsCheckNumRefSetting (SLogContext* pLogCtx, SWelsSvcCodingParam* pParam, bool bStrictCheck) { |
| 89 | // validate LTR num |
no outgoing calls
no test coverage detected