Lines Matching refs:index
123 int QCamera3StreamMem::getFd(uint32_t index) in getFd() argument
127 if (index < mMaxHeapBuffers) in getFd()
128 return mHeapMem.getFd(index); in getFd()
130 return mGrallocMem.getFd(index); in getFd()
143 ssize_t QCamera3StreamMem::getSize(uint32_t index) in getSize() argument
147 if (index < mMaxHeapBuffers) in getSize()
148 return mHeapMem.getSize(index); in getSize()
150 return mGrallocMem.getSize(index); in getSize()
165 int QCamera3StreamMem::invalidateCache(uint32_t index) in invalidateCache() argument
169 if (index < mMaxHeapBuffers) in invalidateCache()
170 return mHeapMem.invalidateCache(index); in invalidateCache()
172 return mGrallocMem.invalidateCache(index); in invalidateCache()
187 int QCamera3StreamMem::cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument
191 if (index < mMaxHeapBuffers) in cleanInvalidateCache()
192 return mHeapMem.cleanInvalidateCache(index); in cleanInvalidateCache()
194 return mGrallocMem.cleanInvalidateCache(index); in cleanInvalidateCache()
209 int QCamera3StreamMem::cleanCache(uint32_t index) in cleanCache() argument
213 if (index < mMaxHeapBuffers) in cleanCache()
214 return mHeapMem.cleanCache(index); in cleanCache()
216 return mGrallocMem.cleanCache(index); in cleanCache()
236 mm_camera_buf_def_t &bufDef, uint32_t index, bool virtualAddr) in getBufDef() argument
240 if (index < mMaxHeapBuffers) in getBufDef()
241 ret = mHeapMem.getBufDef(offset, bufDef, index, virtualAddr); in getBufDef()
243 ret = mGrallocMem.getBufDef(offset, bufDef, index, virtualAddr); in getBufDef()
260 void* QCamera3StreamMem::getPtr(uint32_t index) in getPtr() argument
264 if (index < mMaxHeapBuffers) in getPtr()
265 return mHeapMem.getPtr(index); in getPtr()
267 return mGrallocMem.getPtr(index); in getPtr()
280 bool QCamera3StreamMem::valid(uint32_t index) in valid() argument
284 if (index < mMaxHeapBuffers) in valid()
285 return (mHeapMem.getSize(index) > 0); in valid()
287 return (mGrallocMem.getSize(index) > 0); in valid()
357 void *QCamera3StreamMem::getBufferHandle(uint32_t index) in getBufferHandle() argument
360 return mGrallocMem.getBufferHandle(index); in getBufferHandle()
435 int32_t QCamera3StreamMem::markFrameNumber(uint32_t index, uint32_t frameNumber) in markFrameNumber() argument
438 if (index < mMaxHeapBuffers) in markFrameNumber()
439 return mHeapMem.markFrameNumber(index, frameNumber); in markFrameNumber()
441 return mGrallocMem.markFrameNumber(index, frameNumber); in markFrameNumber()
499 int32_t QCamera3StreamMem::getFrameNumber(uint32_t index) in getFrameNumber() argument
502 if (index < mMaxHeapBuffers) in getFrameNumber()
503 return mHeapMem.getFrameNumber(index); in getFrameNumber()
505 return mGrallocMem.getFrameNumber(index); in getFrameNumber()
523 int32_t index = mGrallocMem.getBufferIndex(frameNumber); in getGrallocBufferIndex() local
524 return index; in getGrallocBufferIndex()
542 int32_t index = mHeapMem.getBufferIndex(frameNumber); in getHeapBufferIndex() local
543 return index; in getHeapBufferIndex()
562 int32_t index = mGrallocMem.getBufferIndex(frameNumber); in getBufferIndex() local
564 if (index < 0) in getBufferIndex()
567 return index; in getBufferIndex()