From 597e03b41dde032d0747df2134f27fc7fdd6a12a Mon Sep 17 00:00:00 2001 From: Shuzhen Wang Date: Fri, 23 Mar 2018 13:56:42 -0700 Subject: [PATCH] Camera: Add MONOCHROME capability Test: Camera CTS Bug: 74597035 Bug: 64691172 Change-Id: I4034be668660f913f5e527cb20e2904694818de2 --- camera/ndk/include/camera/NdkCameraMetadataTags.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/camera/ndk/include/camera/NdkCameraMetadataTags.h b/camera/ndk/include/camera/NdkCameraMetadataTags.h index 346761c174..6af0873a6a 100644 --- a/camera/ndk/include/camera/NdkCameraMetadataTags.h +++ b/camera/ndk/include/camera/NdkCameraMetadataTags.h @@ -4803,6 +4803,8 @@ typedef enum acamera_metadata_tag { * of points can be less than max (that is, the request doesn't have to * always provide a curve with number of points equivalent to * ACAMERA_TONEMAP_MAX_CURVE_POINTS).

+ *

For devices with MONOCHROME capability, only red channel is used. Green and blue channels + * are ignored.

*

A few examples, and their corresponding graphical mappings; these * only specify the red channel and the precision is limited to 4 * digits, for conciseness.

@@ -7033,6 +7035,12 @@ typedef enum acamera_metadata_enum_acamera_request_available_capabilities { */ ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA = 11, + /** + *

The camera device is a monochrome camera that doesn't contain a color filter array, + * and the pixel values on U and Y planes are all 128.

+ */ + ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_MONOCHROME = 12, + } acamera_metadata_enum_android_request_available_capabilities_t;