diff options
author | Zhijun He <zhijunhe@google.com> | 2014-04-24 14:34:53 -0700 |
---|---|---|
committer | Zhijun He <zhijunhe@google.com> | 2014-04-28 11:33:23 -0700 |
commit | 44a891518719c1efc1520baa0c5926bf62de3873 (patch) | |
tree | a4c50bf69a58c666bfdf2dbef96726d3a4dd8ab8 /include/hardware/camera3.h | |
parent | cc14f23c976db7ed9b57032e1292a43303856e60 (diff) | |
download | hardware_libhardware-44a891518719c1efc1520baa0c5926bf62de3873.zip hardware_libhardware-44a891518719c1efc1520baa0c5926bf62de3873.tar.gz hardware_libhardware-44a891518719c1efc1520baa0c5926bf62de3873.tar.bz2 |
camera3: Update camera3_jpeg_blob_t for max jpeg size change
We no longer have a single max jpeg size for all resolution jpeg streams.
Bug: 14288983
Change-Id: I2c96d7c473901d7f419d0da9c2947fec095834a9
Diffstat (limited to 'include/hardware/camera3.h')
-rw-r--r-- | include/hardware/camera3.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/include/hardware/camera3.h b/include/hardware/camera3.h index 4503885..6623dc7 100644 --- a/include/hardware/camera3.h +++ b/include/hardware/camera3.h @@ -1535,17 +1535,18 @@ typedef struct camera3_stream_buffer_set { * Transport header for compressed JPEG buffers in output streams. * * To capture JPEG images, a stream is created using the pixel format - * HAL_PIXEL_FORMAT_BLOB, and the static metadata field android.jpeg.maxSize is - * used as the buffer size. Since compressed JPEG images are of variable size, - * the HAL needs to include the final size of the compressed image using this - * structure inside the output stream buffer. The JPEG blob ID field must be set - * to CAMERA3_JPEG_BLOB_ID. - * - * Transport header should be at the end of the JPEG output stream buffer. That - * means the jpeg_blob_id must start at byte[android.jpeg.maxSize - - * sizeof(camera3_jpeg_blob)]. Any HAL using this transport header must - * account for it in android.jpeg.maxSize. The JPEG data itself starts at - * the beginning of the buffer and should be jpeg_size bytes long. + * HAL_PIXEL_FORMAT_BLOB. The buffer size for the stream is calculated by the + * framework, based on the static metadata field android.jpeg.maxSize. Since + * compressed JPEG images are of variable size, the HAL needs to include the + * final size of the compressed image using this structure inside the output + * stream buffer. The JPEG blob ID field must be set to CAMERA3_JPEG_BLOB_ID. + * + * Transport header should be at the end of the JPEG output stream buffer. That + * means the jpeg_blob_id must start at byte[buffer_size - + * sizeof(camera3_jpeg_blob)], where the buffer_size is the size of gralloc buffer. + * Any HAL using this transport header must account for it in android.jpeg.maxSize + * The JPEG data itself starts at the beginning of the buffer and should be + * jpeg_size bytes long. */ typedef struct camera3_jpeg_blob { uint16_t jpeg_blob_id; |