Home
last modified time | relevance | path

Searched refs:jpegBuffer (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/services/camera/libcameraservice/tests/
DNV12Compressor.cpp271 status_t NV12Compressor::findJpegSize(uint8_t *jpegBuffer, size_t maxSize, size_t *size /*out*/) { in findJpegSize() argument
272 if ((size == nullptr) || (jpegBuffer == nullptr)) { in findJpegSize()
276 if (checkJpegStart(jpegBuffer) == 0) { in findJpegSize()
283 segment_t *segment = (segment_t*)(jpegBuffer + *size); in findJpegSize()
300 if (checkJpegEnd(jpegBuffer + *size)) { in findJpegSize()
318 status_t NV12Compressor::getJpegImageDimensions(uint8_t *jpegBuffer, in getJpegImageDimensions() argument
320 if ((jpegBuffer == nullptr) || (width == nullptr) || (height == nullptr) || in getJpegImageDimensions()
329 if (checkStartOfFrame(jpegBuffer + currentPos)) { in getJpegImageDimensions()
341 sof_t *startOfFrame = reinterpret_cast<sof_t *> (jpegBuffer + currentPos); in getJpegImageDimensions()
348 status_t NV12Compressor::getExifOrientation(uint8_t *jpegBuffer, size_t jpegBufferSize, in getExifOrientation() argument
[all …]
DNV12Compressor.h52 static android::status_t findJpegSize(uint8_t *jpegBuffer, size_t maxSize,
55 static android::status_t getExifOrientation(uint8_t *jpegBuffer,
62 static android::status_t getJpegImageDimensions(uint8_t *jpegBuffer, size_t jpegBufferSize,
/frameworks/av/services/camera/libcameraservice/api1/client2/
DJpegProcessor.cpp346 size_t JpegProcessor::findJpegSize(uint8_t* jpegBuffer, size_t maxSize) { in findJpegSize() argument
350 uint8_t *header = jpegBuffer + (maxSize - sizeof(struct camera2_jpeg_blob)); in findJpegSize()
357 uint8_t *end = jpegBuffer + offset; in findJpegSize()
358 if (checkJpegStart(jpegBuffer) && checkJpegEnd(end)) { in findJpegSize()
370 if ( !checkJpegStart(jpegBuffer) ) { in findJpegSize()
378 segment_t *segment = (segment_t*)(jpegBuffer + size); in findJpegSize()
397 if ( checkJpegEnd(jpegBuffer + size) ) { in findJpegSize()
DJpegProcessor.h59 static size_t findJpegSize(uint8_t* jpegBuffer, size_t maxSize);
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp144 mPendingInputFrames[imgBuffer.timestamp].jpegBuffer = imgBuffer; in compilePendingInputLocked()
225 (it.second.jpegBuffer.data != nullptr) && (it.first < *currentTs)) { in getNextReadyInputLocked()
257 auto jpegSize = android::camera2::JpegProcessor::findJpegSize(inputFrame.jpegBuffer.data, in processInputFrame()
258 inputFrame.jpegBuffer.width); in processInputFrame()
261 jpegSize = inputFrame.jpegBuffer.width; in processInputFrame()
313 depthPhoto.mMainJpegBuffer = reinterpret_cast<const char*> (inputFrame.jpegBuffer.data); in processInputFrame()
402 if (inputFrame->jpegBuffer.data != nullptr) { in releaseInputFrameLocked()
403 mBlobConsumer->unlockBuffer(inputFrame->jpegBuffer); in releaseInputFrameLocked()
404 inputFrame->jpegBuffer.data = nullptr; in releaseInputFrameLocked()
DDepthCompositeStream.h77 CpuConsumer::LockedBuffer jpegBuffer; member
/frameworks/av/services/camera/libcameraservice/common/
DDepthPhotoProcessor.cpp78 ExifOrientation getExifOrientation(const unsigned char *jpegBuffer, size_t jpegBufferSize) { in getExifOrientation() argument
79 if ((jpegBuffer == nullptr) || (jpegBufferSize == 0)) { in getExifOrientation()
84 exif_data_load_data(exifData, jpegBuffer, jpegBufferSize); in getExifOrientation()
/frameworks/av/media/ndk/
DNdkImage.cpp375 uint8_t* jpegBuffer = mLockedBuffer->data; in getJpegSize() local
378 uint8_t* header = jpegBuffer + (width - sizeof(struct camera3_jpeg_blob)); in getJpegSize()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2StillCaptureTest.java457 byte[] jpegBuffer = getDataFromImage(jpegImage); in fullRawCaptureTestByCamera()
461 dumpFile(jpegFileName, jpegBuffer); in fullRawCaptureTestByCamera()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1856 byte[] jpegBuffer = getDataFromImage(image); in verifyJpegKeys()
1859 dumpFile(jpegFilename, jpegBuffer); in verifyJpegKeys()