| 1184 | } |
| 1185 | |
| 1186 | static inline int32_t InitSliceRC (SSlice* pSlice, const int32_t kiGlobalQp) { |
| 1187 | |
| 1188 | if (NULL == pSlice || kiGlobalQp < 0) |
| 1189 | return ENC_RETURN_INVALIDINPUT; |
| 1190 | |
| 1191 | pSlice->sSlicingOverRc.iComplexityIndexSlice = 0; |
| 1192 | pSlice->sSlicingOverRc.iCalculatedQpSlice = kiGlobalQp; |
| 1193 | pSlice->sSlicingOverRc.iTotalQpSlice = 0; |
| 1194 | pSlice->sSlicingOverRc.iTotalMbSlice = 0; |
| 1195 | pSlice->sSlicingOverRc.iTargetBitsSlice = 0; |
| 1196 | pSlice->sSlicingOverRc.iFrameBitsSlice = 0; |
| 1197 | pSlice->sSlicingOverRc.iGomBitsSlice = 0; |
| 1198 | |
| 1199 | return ENC_RETURN_SUCCESS; |
| 1200 | } |
| 1201 | |
| 1202 | int32_t ReallocateSliceList (sWelsEncCtx* pCtx, |
| 1203 | SSliceArgument* pSliceArgument, |
no outgoing calls
no test coverage detected