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

Function WelsDecodeAccessUnitStart

codec/decoder/core/src/decoder_core.cpp:2134–2153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2132}
2133
2134int32_t WelsDecodeAccessUnitStart (PWelsDecoderContext pCtx) {
2135 // Roll back NAL units not being belong to current access unit list for proceeded access unit
2136 int32_t iRet = UpdateAccessUnit (pCtx);
2137 if (iRet != ERR_NONE)
2138 return iRet;
2139
2140 pCtx->pAccessUnitList->uiStartPos = 0;
2141 if (!pCtx->sSpsPpsCtx.bAvcBasedFlag && !CheckIntegrityNalUnitsList (pCtx)) {
2142 pCtx->iErrorCode |= dsBitstreamError;
2143 return dsBitstreamError;
2144 }
2145
2146 //check current AU has only one layer or not
2147 //If YES, can use deblocking based on AVC
2148 if (!pCtx->sSpsPpsCtx.bAvcBasedFlag) {
2149 CheckOnlyOneLayerInAu (pCtx);
2150 }
2151
2152 return ERR_NONE;
2153}
2154
2155void WelsDecodeAccessUnitEnd (PWelsDecoderContext pCtx) {
2156 //save previous header info

Callers 1

Calls 3

UpdateAccessUnitFunction · 0.85
CheckOnlyOneLayerInAuFunction · 0.85

Tested by

no test coverage detected