diff options
author | Alex Ray <aray@google.com> | 2013-10-14 15:58:02 -0700 |
---|---|---|
committer | Alex Ray <aray@google.com> | 2013-10-14 15:58:02 -0700 |
commit | 3e8a9fe5e03d2bd5e450c904e08ed60c29cf7df9 (patch) | |
tree | 9c03e671db1e875cd092ef911334b8dee2d9d090 /modules/camera | |
parent | ea80382be17ab288622506475b8f15d9d8ebee80 (diff) | |
download | hardware_libhardware-3e8a9fe5e03d2bd5e450c904e08ed60c29cf7df9.zip hardware_libhardware-3e8a9fe5e03d2bd5e450c904e08ed60c29cf7df9.tar.gz hardware_libhardware-3e8a9fe5e03d2bd5e450c904e08ed60c29cf7df9.tar.bz2 |
modules: camera: Add android.jpeg.maxSize metadata
Change-Id: I0984b55df0adf8c60b07844003e97b5aac8ece3f
Diffstat (limited to 'modules/camera')
-rw-r--r-- | modules/camera/Camera.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/camera/Camera.cpp b/modules/camera/Camera.cpp index 724f861..764bb8f 100644 --- a/modules/camera/Camera.cpp +++ b/modules/camera/Camera.cpp @@ -195,6 +195,11 @@ camera_metadata_t *Camera::initStaticInfo() ARRAY_SIZE(android_jpeg_available_thumbnail_sizes), android_jpeg_available_thumbnail_sizes); + int32_t android_jpeg_max_size[] = {13 * 1024 * 1024}; // 13MB + m.addInt32(ANDROID_JPEG_MAX_SIZE, + ARRAY_SIZE(android_jpeg_max_size), + android_jpeg_max_size); + /* android.lens */ float android_lens_info_available_focal_lengths[] = {1.0}; m.addFloat(ANDROID_LENS_INFO_AVAILABLE_FOCAL_LENGTHS, |