| 149 | } |
| 150 | } |
| 151 | void 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 | } |
| 163 | void 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; |
no outgoing calls
no test coverage detected