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

Function PrefetchLastPicForThread

codec/decoder/core/src/pic_queue.cpp:233–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233PPicture PrefetchLastPicForThread (PPicBuff pPicBuf, const int32_t& iLastPicBuffIdx) {
234 PPicture pPic = NULL;
235
236 if (pPicBuf->iCapacity == 0) {
237 return NULL;
238 }
239 if (iLastPicBuffIdx >= 0 && iLastPicBuffIdx < pPicBuf->iCapacity) {
240 pPic = pPicBuf->ppPic[iLastPicBuffIdx];
241 }
242 return pPic;
243}
244
245} // namespace WelsDec

Callers 1

DecodeCurrentAccessUnitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected