reset picture reodering buffer list
| 292 | |
| 293 | //reset picture reodering buffer list |
| 294 | void 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 |
no outgoing calls
no test coverage detected