Home
last modified time | relevance | path

Searched refs:kiNewSize (Results 1 – 1 of 1) sorted by relevance

/third_party/openh264/codec/decoder/core/src/
Ddecoder.cpp108 … const int32_t kiPicWidth, const int32_t kiPicHeight, const int32_t kiNewSize) { in IncreasePicBuff() argument
112 if (kiOldSize <= 0 || kiNewSize <= 0 || kiPicWidth <= 0 || kiPicHeight <= 0) { in IncreasePicBuff()
123 pPicNewBuf->ppPic = (PPicture*)pMa->WelsMallocz (kiNewSize * sizeof (PPicture), "PPicture*"); in IncreasePicBuff()
132 for (iPicIdx = kiOldSize; iPicIdx < kiNewSize; ++ iPicIdx) { in IncreasePicBuff()
147 pPicNewBuf->iCapacity = kiNewSize; in IncreasePicBuff()
170 … const int32_t kiPicWidth, const int32_t kiPicHeight, const int32_t kiNewSize) { in DecreasePicBuff() argument
174 if (kiOldSize <= 0 || kiNewSize <= 0 || kiPicWidth <= 0 || kiPicHeight <= 0) { in DecreasePicBuff()
186 pPicNewBuf->ppPic = (PPicture*)pMa->WelsMallocz (kiNewSize * sizeof (PPicture), "PPicture*"); in DecreasePicBuff()
203 if (iPrevPicIdx < kiOldSize && iPrevPicIdx >= kiNewSize) { in DecreasePicBuff()
207 memcpy (pPicNewBuf->ppPic + 1, pPicOldBuf->ppPic, (kiNewSize - 1) * sizeof (PPicture)); in DecreasePicBuff()
[all …]