From ac64098127785c34c866e704e46283a0cb3c7a37 Mon Sep 17 00:00:00 2001 From: Shuzhen Wang Date: Tue, 9 Apr 2019 23:06:32 -0700 Subject: [PATCH] Camera: Relax BURST_CAPTURE requirement Allow resolutions larger or equal to 24 megapixels to stream at 10fps to meet BURST_CAPTURE requirement. Test: Build Bug: 129693371 Change-Id: I8f53b6a6f725e11d9deb1505d9d63d142e971006 --- camera/ndk/include/camera/NdkCameraMetadataTags.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/camera/ndk/include/camera/NdkCameraMetadataTags.h b/camera/ndk/include/camera/NdkCameraMetadataTags.h index 4563b410fe..7cd832afbb 100644 --- a/camera/ndk/include/camera/NdkCameraMetadataTags.h +++ b/camera/ndk/include/camera/NdkCameraMetadataTags.h @@ -7511,18 +7511,19 @@ typedef enum acamera_metadata_enum_acamera_request_available_capabilities { /** *

The camera device supports capturing high-resolution images at >= 20 frames per - * second, in at least the uncompressed YUV format, when post-processing settings are set - * to FAST. Additionally, maximum-resolution images can be captured at >= 10 frames - * per second. Here, 'high resolution' means at least 8 megapixels, or the maximum - * resolution of the device, whichever is smaller.

+ * second, in at least the uncompressed YUV format, when post-processing settings are + * set to FAST. Additionally, all image resolutions less than 24 megapixels can be + * captured at >= 10 frames per second. Here, 'high resolution' means at least 8 + * megapixels, or the maximum resolution of the device, whichever is smaller.

*

More specifically, this means that at least one output {@link AIMAGE_FORMAT_YUV_420_888 } size listed in * {@link ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS } * is larger or equal to the 'high resolution' defined above, and can be captured at at * least 20 fps. For the largest {@link AIMAGE_FORMAT_YUV_420_888 } size listed in * {@link ACAMERA_SCALER_AVAILABLE_STREAM_CONFIGURATIONS }, - * camera device can capture this size for at least 10 frames per second. Also the - * ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES entry lists at least one FPS range where - * the minimum FPS is >= 1 / minimumFrameDuration for the largest YUV_420_888 size.

+ * camera device can capture this size for at least 10 frames per second if the size is + * less than 24 megapixels. Also the ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES entry + * lists at least one FPS range where the minimum FPS is >= 1 / minimumFrameDuration + * for the largest YUV_420_888 size.

*

If the device supports the {@link AIMAGE_FORMAT_RAW10 }, {@link AIMAGE_FORMAT_RAW12 }, {@link AIMAGE_FORMAT_Y8 }, then those can also be * captured at the same rate as the maximum-size YUV_420_888 resolution is.

*

In addition, the ACAMERA_SYNC_MAX_LATENCY field is guaranted to have a value between 0