Lines Matching refs:mMemory
616 mMemory.setColorSpace(mIntent);
671 if (0 < mMemory.getCnt()) {
718 index = mMemory.getMatchBufIndex((void*)buffer);
727 index = mMemory.getMatchBufIndex((void*)buffer);
741 rc = mMemory.markFrameNumber(index, frameNumber);
766 if ((uint32_t)mMemory.getCnt() > (mNumBufs - 1)) {
782 rc = mMemory.registerBuffer(buffer);
829 resultBuffer = (buffer_handle_t *)mMemory.getBufferHandle(frameIndex);
830 resultFrameNumber = mMemory.getFrameNumber(frameIndex);
845 return &mMemory;
850 mMemory.unregisterBuffers();
863 mMemory(NULL)
872 if (mMemory) {
873 mMemory->deallocate();
874 delete mMemory;
875 mMemory = NULL;
886 if (mMemory || m_numStreams > 0) {
940 mMemory = new QCamera3HeapMemory();
941 if (!mMemory) {
945 rc = mMemory->allocate(MIN_STREAMING_BUFFER_NUM, len, true);
948 delete mMemory;
949 mMemory = NULL;
952 memset(mMemory->getPtr(0), 0, sizeof(metadata_buffer_t));
953 return mMemory;
958 mMemory->deallocate();
959 delete mMemory;
960 mMemory = NULL;
1005 mMemory.cleanInvalidateCache(super_frame->bufs[0]->buf_idx);
1142 mMemory(NULL)
1251 mMemory = new QCamera3HeapMemory();
1253 if (!mMemory) {
1257 rc = mMemory->allocate(kMaxBuffers, len, true);
1260 delete mMemory;
1261 mMemory = NULL;
1264 return mMemory;
1281 mMemory->deallocate();
1282 delete mMemory;
1283 mMemory = NULL;
1402 (buffer_handle_t *)obj->mMemory.getBufferHandle(bufIdx);
1405 if (maxJpegSize > obj->mMemory.getSize(bufIdx)) {
1406 maxJpegSize = obj->mMemory.getSize(bufIdx);
1411 obj->mMemory.cleanInvalidateCache(bufIdx);
1414 resultBuffer = (buffer_handle_t *)obj->mMemory.getBufferHandle(bufIdx);
1415 resultFrameNumber = obj->mMemory.getFrameNumber(bufIdx);
1503 int32_t rc = m_postprocessor.init(&mMemory, jpegEvtHandle, mPostProcMask,
1586 mMemory.setColorSpace(mIntent);
1664 index = mMemory.getMatchBufIndex((void*)buffer);
1673 index = mMemory.getMatchBufIndex((void*)buffer);
1681 rc = mMemory.markFrameNumber(index, frameNumber);
1683 //Start the postprocessor for jpeg encoding. Pass mMemory as destination buffer
1873 if ((uint32_t)mMemory.getCnt() > (mNumBufsRegistered - 1)) {
1887 rc = mMemory.registerBuffer(buffer);
1990 mMemory.unregisterBuffers();
2649 mMemory(NULL)
2777 mMemory = new QCamera3HeapMemory();
2778 if (!mMemory) {
2786 rc = mMemory->allocate(MAX_INFLIGHT_REQUESTS, len, true);
2789 delete mMemory;
2790 mMemory = NULL;
2793 return mMemory;
2807 mMemory->deallocate();
2808 delete mMemory;
2809 mMemory = NULL;
3335 mMemory(NULL)
3344 if (mMemory) {
3345 mMemory->deallocate();
3346 delete mMemory;
3347 mMemory = NULL;
3356 if (mMemory || m_numStreams > 0) {
3399 mMemory = new QCamera3HeapMemory();
3400 if (!mMemory) {
3404 rc = mMemory->allocate(MIN_STREAMING_BUFFER_NUM, len, true);
3407 delete mMemory;
3408 mMemory = NULL;
3411 return mMemory;
3416 mMemory->deallocate();
3417 delete mMemory;
3418 mMemory = NULL;