Home
last modified time | relevance | path

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

/frameworks/av/services/camera/libcameraservice/api1/client2/
DCallbackProcessor.cpp248 CpuConsumer::LockedBuffer imgBuffer; in discardNewCallback() local
249 res = mCallbackConsumer->lockNextBuffer(&imgBuffer); in discardNewCallback()
257 mCallbackConsumer->unlockBuffer(imgBuffer); in discardNewCallback()
275 CpuConsumer::LockedBuffer imgBuffer; in processNewCallback() local
283 res = mCallbackConsumer->lockNextBuffer(&imgBuffer); in processNewCallback()
299 mCallbackConsumer->unlockBuffer(imgBuffer); in processNewCallback()
306 mCallbackConsumer->unlockBuffer(imgBuffer); in processNewCallback()
313 mCallbackConsumer->unlockBuffer(imgBuffer); in processNewCallback()
317 if (imgBuffer.width != static_cast<uint32_t>(l.mParameters.previewWidth) || in processNewCallback()
318 imgBuffer.height != static_cast<uint32_t>(l.mParameters.previewHeight)) { in processNewCallback()
[all …]
DJpegProcessor.cpp253 CpuConsumer::LockedBuffer imgBuffer; in processNewCapture() local
262 res = mCaptureConsumer->lockNextBuffer(&imgBuffer); in processNewCapture()
275 if (imgBuffer.format != HAL_PIXEL_FORMAT_BLOB) { in processNewCapture()
278 imgBuffer.format, in processNewCapture()
280 mCaptureConsumer->unlockBuffer(imgBuffer); in processNewCapture()
285 size_t jpegSize = findJpegSize(imgBuffer.data, imgBuffer.width); in processNewCapture()
287 jpegSize = imgBuffer.width; in processNewCapture()
300 memcpy(captureMemory, imgBuffer.data, jpegSize); in processNewCapture()
302 mCaptureConsumer->unlockBuffer(imgBuffer); in processNewCapture()
307 sequencer->onCaptureAvailable(imgBuffer.timestamp, captureBuffer, !captureSuccess); in processNewCapture()