| 231 | } |
| 232 | |
| 233 | PPicture 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 |
no outgoing calls
no test coverage detected