summaryrefslogtreecommitdiff
path: root/camera
diff options
context:
space:
mode:
authorMansoor Aftab <maftab@codeaurora.org>2015-04-10 01:20:15 -0700
committerZhijun He <zhijunhe@google.com>2015-04-10 10:13:11 -0700
commitc5eaac4b8457c7292c76789fae02e132a92b3769 (patch)
tree6a8534317a7a00e90f0f5643cc251ca1bd464336 /camera
parent91d78ccfb1d705f2b086f3981c0de24777e02c9d (diff)
downloadshamu-c5eaac4b8457c7292c76789fae02e132a92b3769.tar.gz
Camera3: Add reprocess static metadata
Change-Id: I7bd6db14ba29dead415b1fdef54c61742399b776
Diffstat (limited to 'camera')
-rw-r--r--camera/QCamera2/HAL3/QCamera3HWI.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index 8df8ca95..04fc86a7 100644
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -4697,14 +4697,18 @@ int QCamera3HardwareInterface::initStaticMetadata(int cameraId)
available_capabilities,
available_capabilities_count);
- int32_t max_input_streams = 0;
+ int32_t max_input_streams = 1;
staticInfo.update(ANDROID_REQUEST_MAX_NUM_INPUT_STREAMS,
&max_input_streams,
1);
- int32_t io_format_map[] = {};
+ int32_t io_format_map[] = {
+ HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, 2,
+ HAL_PIXEL_FORMAT_YCbCr_420_888, HAL_PIXEL_FORMAT_BLOB,
+ HAL_PIXEL_FORMAT_YCbCr_420_888, 2,
+ HAL_PIXEL_FORMAT_YCbCr_420_888, HAL_PIXEL_FORMAT_BLOB};
staticInfo.update(ANDROID_SCALER_AVAILABLE_INPUT_OUTPUT_FORMATS_MAP,
- io_format_map, 0);
+ io_format_map, sizeof(io_format_map)/sizeof(io_format_map[0]));
int32_t max_latency = (facingBack)? ANDROID_SYNC_MAX_LATENCY_PER_FRAME_CONTROL:CAM_MAX_SYNC_LATENCY;
staticInfo.update(ANDROID_SYNC_MAX_LATENCY,