Home
last modified time | relevance | path

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

/frameworks/av/services/camera/libcameraservice/camera2/
DCallbackProcessor.cpp180 CpuConsumer::LockedBuffer imgBuffer; in processNewCallback() local
182 res = mCallbackConsumer->lockNextBuffer(&imgBuffer); in processNewCallback()
201 mCallbackConsumer->unlockBuffer(imgBuffer); in processNewCallback()
208 mCallbackConsumer->unlockBuffer(imgBuffer); in processNewCallback()
215 mCallbackConsumer->unlockBuffer(imgBuffer); in processNewCallback()
219 if (imgBuffer.format != l.mParameters.previewFormat) { in processNewCallback()
222 imgBuffer.format, l.mParameters.previewFormat); in processNewCallback()
223 mCallbackConsumer->unlockBuffer(imgBuffer); in processNewCallback()
236 imgBuffer.width, imgBuffer.height, in processNewCallback()
237 imgBuffer.format, imgBuffer.stride); in processNewCallback()
[all …]
DJpegProcessor.cpp197 CpuConsumer::LockedBuffer imgBuffer; in processNewCapture() local
199 res = mCaptureConsumer->lockNextBuffer(&imgBuffer); in processNewCapture()
212 if (imgBuffer.format != HAL_PIXEL_FORMAT_BLOB) { in processNewCapture()
215 imgBuffer.format, in processNewCapture()
217 mCaptureConsumer->unlockBuffer(imgBuffer); in processNewCapture()
222 size_t jpegSize = findJpegSize(imgBuffer.data, imgBuffer.width); in processNewCapture()
224 jpegSize = imgBuffer.width; in processNewCapture()
237 memcpy(captureMemory, imgBuffer.data, jpegSize); in processNewCapture()
239 mCaptureConsumer->unlockBuffer(imgBuffer); in processNewCapture()
243 sequencer->onCaptureAvailable(imgBuffer.timestamp, captureBuffer); in processNewCapture()
DBurstCapture.cpp77 CpuConsumer::LockedBuffer *imgBuffer, in jpegEncode() argument
85 imgEncoded->width = imgBuffer->width; in jpegEncode()
86 imgEncoded->height = imgBuffer->height; in jpegEncode()
87 imgEncoded->stride = imgBuffer->stride; in jpegEncode()
90 buffers.push_back(imgBuffer); in jpegEncode()
DStreamingProcessor.cpp477 BufferItemConsumer::BufferItem imgBuffer; in onFrameAvailable() local
478 res = mRecordingConsumer->acquireBuffer(&imgBuffer); in onFrameAvailable()
484 timestamp = imgBuffer.mTimestamp; in onFrameAvailable()
495 mRecordingConsumer->releaseBuffer(imgBuffer); in onFrameAvailable()
510 mRecordingConsumer->releaseBuffer(imgBuffer); in onFrameAvailable()
531 mRecordingConsumer->releaseBuffer(imgBuffer); in onFrameAvailable()
551 *((buffer_handle_t*)(data + 4)) = imgBuffer.mGraphicBuffer->handle; in onFrameAvailable()
554 imgBuffer.mGraphicBuffer->handle); in onFrameAvailable()
555 mRecordingBuffers.replaceAt(imgBuffer, heapIdx); in onFrameAvailable()
DBurstCapture.h58 CpuConsumer::LockedBuffer *imgBuffer,
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
DSoftMPEG4Encoder.cpp778 buffer_handle_t imgBuffer = *(buffer_handle_t*)((uint8_t*)data + 4); in extractGrallocData() local
782 res = GraphicBufferMapper::get().lock(imgBuffer, in extractGrallocData()
787 imgBuffer); in extractGrallocData()
791 *buffer = imgBuffer; in extractGrallocData()
/frameworks/av/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.cpp971 buffer_handle_t imgBuffer = *(buffer_handle_t*)((uint8_t*)data + 4); in extractGrallocData() local
975 res = GraphicBufferMapper::get().lock(imgBuffer, in extractGrallocData()
980 imgBuffer); in extractGrallocData()
984 *buffer = imgBuffer; in extractGrallocData()