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

Function ResetReorderingPictureBuffers

codec/decoder/core/src/decoder.cpp:294–309  ·  view source on GitHub ↗

reset picture reodering buffer list

Source from the content-addressed store, hash-verified

292
293//reset picture reodering buffer list
294void ResetReorderingPictureBuffers (PPictReoderingStatus pPictReoderingStatus, PPictInfo pPictInfo,
295 const bool& fullReset) {
296 if (pPictReoderingStatus != NULL && pPictInfo != NULL) {
297 int32_t pictInfoListCount = fullReset ? 16 : (pPictReoderingStatus->iLargestBufferedPicIndex + 1);
298 pPictReoderingStatus->iPictInfoIndex = 0;
299 pPictReoderingStatus->iMinPOC = IMinInt32;
300 pPictReoderingStatus->iNumOfPicts = 0;
301 pPictReoderingStatus->iLastWrittenPOC = IMinInt32;
302 pPictReoderingStatus->iLargestBufferedPicIndex = 0;
303 for (int32_t i = 0; i < pictInfoListCount; ++i) {
304 pPictInfo[i].iPOC = IMinInt32;
305 }
306 pPictInfo->sBufferInfo.iBufferStatus = 0;
307 pPictReoderingStatus->bHasBSlice = false;
308 }
309}
310
311/*
312 * fill data fields in default for decoder context

Callers 5

CWelsDecoderMethod · 0.85
ResetDecoderMethod · 0.85
ThreadResetDecoderMethod · 0.85
DecreasePicBuffFunction · 0.85
DestroyPicBuffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected