* 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 */
| 2321 | * 0 - success; otherwise returned error_no defined in error_no.h |
| 2322 | */ |
| 2323 | int32_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 |
no test coverage detected