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

Function InitAllSlicesInThread

codec/encoder/core/src/svc_encode_slice.cpp:989–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989int32_t InitAllSlicesInThread (sWelsEncCtx* pCtx) {
990 SDqLayer* pCurDqLayer = pCtx->pCurDqLayer;
991 int32_t iSliceIdx = 0;
992 int32_t iSlcBuffIdx = 0;
993
994 for (; iSliceIdx < pCurDqLayer->iMaxSliceNum; iSliceIdx++) {
995 if (NULL == pCurDqLayer->ppSliceInLayer[iSliceIdx]) {
996 return ENC_RETURN_UNEXPECTED;
997 }
998
999 pCurDqLayer->ppSliceInLayer[iSliceIdx]->iSliceIdx = -1;
1000 }
1001
1002 for (; iSlcBuffIdx < pCtx->iActiveThreadsNum; iSlcBuffIdx++) {
1003 pCurDqLayer->sSliceBufferInfo[iSlcBuffIdx].iCodedSliceNum = 0;
1004 }
1005
1006 return ENC_RETURN_SUCCESS;
1007}
1008
1009int32_t InitOneSliceInThread (sWelsEncCtx* pCtx,
1010 SSlice*& pSlice,

Callers 2

TEST_FFunction · 0.85
WelsEncoderEncodeExtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected