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

Function InitConstructAccessUnit

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

* InitConstructAccessUnit * Init before constructing an access unit for given input bitstream, maybe partial NAL Unit, one or more Units are involved to * joint a collective access unit. * parameter\ * SBufferInfo: Buffer info * return: * 0 - success; otherwise returned error_no defined in error_no.h */

Source from the content-addressed store, hash-verified

2321* 0 - success; otherwise returned error_no defined in error_no.h
2322*/
2323int32_t InitConstructAccessUnit (PWelsDecoderContext pCtx, SBufferInfo* pDstInfo) {
2324 int32_t iErr = ERR_NONE;
2325
2326 iErr = WelsDecodeInitAccessUnitStart (pCtx, pDstInfo);
2327 if (ERR_NONE != iErr) {
2328 return iErr;
2329 }
2330 if (pCtx->bNewSeqBegin) {
2331 iErr = AllocPicBuffOnNewSeqBegin (pCtx);
2332 if (ERR_NONE != iErr) {
2333 return iErr;
2334 }
2335 }
2336
2337 return iErr;
2338}
2339
2340/*
2341 * ConstructAccessUnit

Callers 2

ParseAccessUnitMethod · 0.85
ConstructAccessUnitFunction · 0.85

Calls 2

Tested by

no test coverage detected