Lines Matching refs:mMemory
526 mMemory(numBuffers), in QCamera3ProcessingChannel()
538 int32_t rc = m_postprocessor.init(&mMemory, mPostProcMask); in QCamera3ProcessingChannel()
609 resultBuffer = (buffer_handle_t *)mMemory.getBufferHandle(frameIndex); in streamCbRoutine()
610 resultFrameNumber = mMemory.getFrameNumber(frameIndex); in streamCbRoutine()
630 rc = mMemory.unregisterBuffer(frameIndex); in streamCbRoutine()
662 mMemory.deallocate(); in putStreamBufs()
741 index = mMemory.getMatchBufIndex((void*)buffer); in request()
750 index = mMemory.getMatchBufIndex((void*)buffer); in request()
762 rc = mMemory.markFrameNumber(index, frameNumber); in request()
817 if ((uint32_t)mMemory.getCnt() > (mNumBufs - 1)) { in registerBuffer()
833 rc = mMemory.registerBuffer(buffer, streamType); in registerBuffer()
1007 return &mMemory; in getStreamBufs()
1022 mMemory.unregisterBuffers(); in putStreamBufs()
1613 index = mMemory.getMatchBufIndex((void*)buffer); in request()
1622 index = mMemory.getMatchBufIndex((void*)buffer); in request()
1636 rc = mMemory.markFrameNumber((uint32_t)index, frameNumber); in request()
1664 mMemory(NULL) in QCamera3MetadataChannel()
1673 if (mMemory) { in ~QCamera3MetadataChannel()
1674 mMemory->deallocate(); in ~QCamera3MetadataChannel()
1675 delete mMemory; in ~QCamera3MetadataChannel()
1676 mMemory = NULL; in ~QCamera3MetadataChannel()
1686 if (mMemory || m_numStreams > 0) { in initialize()
1738 mMemory = new QCamera3StreamMem(MIN_STREAMING_BUFFER_NUM); in getStreamBufs()
1739 if (!mMemory) { in getStreamBufs()
1743 rc = mMemory->allocateAll(len); in getStreamBufs()
1746 delete mMemory; in getStreamBufs()
1747 mMemory = NULL; in getStreamBufs()
1750 clear_metadata_buffer((metadata_buffer_t*)mMemory->getPtr(0)); in getStreamBufs()
1751 return mMemory; in getStreamBufs()
1756 mMemory->deallocate(); in putStreamBufs()
1757 delete mMemory; in putStreamBufs()
1758 mMemory = NULL; in putStreamBufs()
1857 frame_number = mMemory.getFrameNumber((uint8_t)super_frame->bufs[0]->buf_idx); in streamCbRoutine()
1878 mMemory.cleanInvalidateCache(super_frame->bufs[0]->buf_idx); in streamCbRoutine()
2068 mMemory(NULL) in QCamera3RawDumpChannel()
2189 mMemory = new QCamera3StreamMem(mNumBuffers); in getStreamBufs()
2191 if (!mMemory) { in getStreamBufs()
2195 rc = mMemory->allocateAll((size_t)len); in getStreamBufs()
2198 delete mMemory; in getStreamBufs()
2199 mMemory = NULL; in getStreamBufs()
2202 return mMemory; in getStreamBufs()
2219 mMemory->deallocate(); in putStreamBufs()
2220 delete mMemory; in putStreamBufs()
2221 mMemory = NULL; in putStreamBufs()
2470 rc = mMemory.allocateOne(mFrameLen); in request()
2495 mMemory.markFrameNumber(bufIdx, frameNumber); in request()
2536 resultFrameNumber = mMemory.getFrameNumber(frameIndex); in streamCbRoutine()
2608 if (0 > mMemory.getHeapBufferIndex(resultFrameNumber)) { in reprocessCbRoutine()
2729 mMemory.getHeapBufferIndex(resultFrameNumber); in handleOfflinePpCallback()
2835 (buffer_handle_t *)obj->mMemory.getBufferHandle(bufIdx); in jpegEvtHandle()
2839 if (maxJpegSize > obj->mMemory.getSize(bufIdx)) { in jpegEvtHandle()
2840 maxJpegSize = obj->mMemory.getSize(bufIdx); in jpegEvtHandle()
2847 obj->mMemory.cleanInvalidateCache(bufIdx); in jpegEvtHandle()
2858 (buffer_handle_t *)obj->mMemory.getBufferHandle(bufIdx); in jpegEvtHandle()
2859 int32_t resultFrameNumber = obj->mMemory.getFrameNumber(bufIdx); in jpegEvtHandle()
2860 int32_t rc = obj->mMemory.unregisterBuffer(bufIdx); in jpegEvtHandle()
3066 int index = mMemory.getMatchBufIndex((void*)buffer); in request()
3076 index = mMemory.getMatchBufIndex((void*)buffer); in request()
3084 rc = mMemory.markFrameNumber((uint32_t)index, frameNumber); in request()
3415 mMemory(NULL), in QCamera3ReprocessChannel()
3559 resultFrameNumber = mMemory->getFrameNumber(frameIndex); in streamCbRoutine()
3619 mMemory = new QCamera3StreamMem(mNumBuffers, false); in getStreamBufs()
3620 if (!mMemory) { in getStreamBufs()
3625 return mMemory; in getStreamBufs()
3642 mMemory->deallocate(); in putStreamBufs()
3643 delete mMemory; in putStreamBufs()
3644 mMemory = NULL; in putStreamBufs()
4171 rc = mMemory->allocateOne(mFrameLen); in doReprocessOffline()
4183 mMemory->markFrameNumber(bufIdx, frame->frameNumber); in doReprocessOffline()
4402 mMemory(NULL) in QCamera3SupportChannel()
4414 if (mMemory) { in ~QCamera3SupportChannel()
4415 mMemory->deallocate(); in ~QCamera3SupportChannel()
4416 delete mMemory; in ~QCamera3SupportChannel()
4417 mMemory = NULL; in ~QCamera3SupportChannel()
4425 if (mMemory || m_numStreams > 0) { in initialize()
4461 mMemory = new QCamera3StreamMem(mNumBuffers); in getStreamBufs()
4462 if (!mMemory) { in getStreamBufs()
4466 rc = mMemory->allocateAll(len); in getStreamBufs()
4469 delete mMemory; in getStreamBufs()
4470 mMemory = NULL; in getStreamBufs()
4473 return mMemory; in getStreamBufs()
4478 mMemory->deallocate(); in putStreamBufs()
4479 delete mMemory; in putStreamBufs()
4480 mMemory = NULL; in putStreamBufs()