Home
last modified time | relevance | path

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

/frameworks/av/services/camera/libcameraservice/api1/client2/
DJpegProcessor.cpp250 size_t jpegSize = findJpegSize(imgBuffer.data, imgBuffer.width); in processNewCapture() local
251 if (jpegSize == 0) { // failed to find size, default to whole buffer in processNewCapture()
252 jpegSize = imgBuffer.width; in processNewCapture()
255 if (jpegSize > heapSize) { in processNewCapture()
258 __FUNCTION__, jpegSize, heapSize); in processNewCapture()
259 jpegSize = heapSize; in processNewCapture()
263 captureBuffer = new MemoryBase(mCaptureHeap, 0, jpegSize); in processNewCapture()
265 memcpy(captureMemory, imgBuffer.data, jpegSize); in processNewCapture()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestThreadManager.java560 Size jpegSize = sizeIterator.next(); in calculatePictureSize() local
565 configuredJpegSizes.add(jpegSize); in calculatePictureSize()
577 for (Size jpegSize : configuredJpegSizes) { in calculatePictureSize()
578 maxConfiguredJpegWidth = jpegSize.getWidth() > maxConfiguredJpegWidth ? in calculatePictureSize()
579 jpegSize.getWidth() : maxConfiguredJpegWidth; in calculatePictureSize()
580 maxConfiguredJpegHeight = jpegSize.getHeight() > maxConfiguredJpegHeight ? in calculatePictureSize()
581 jpegSize.getHeight() : maxConfiguredJpegHeight; in calculatePictureSize()