diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java index f561278bb25a5..1ee2423e62fdd 100644 --- a/core/java/android/hardware/camera2/CameraCharacteristics.java +++ b/core/java/android/hardware/camera2/CameraCharacteristics.java @@ -3083,17 +3083,67 @@ public final class CameraCharacteristics extends CameraMetadata *

For applications targeting SDK version older than 31, the following table * describes the minimum required output stream configurations based on the - * hardware level ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel}): - * Format | Size | Hardware Level | Notes - * :-------------------------------------------------:|:--------------------------------------------:|:--------------:|:--------------: - * {@link android.graphics.ImageFormat#JPEG } | {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} (*1) | Any | - * {@link android.graphics.ImageFormat#JPEG } | 1920x1080 (1080p) | Any | if 1080p <= activeArraySize - * {@link android.graphics.ImageFormat#JPEG } | 1280x720 (720p) | Any | if 720p <= activeArraySize - * {@link android.graphics.ImageFormat#JPEG } | 640x480 (480p) | Any | if 480p <= activeArraySize - * {@link android.graphics.ImageFormat#JPEG } | 320x240 (240p) | Any | if 240p <= activeArraySize - * {@link android.graphics.ImageFormat#YUV_420_888 } | all output sizes available for JPEG | FULL | - * {@link android.graphics.ImageFormat#YUV_420_888 } | all output sizes available for JPEG, up to the maximum video size | LIMITED | - * {@link android.graphics.ImageFormat#PRIVATE } | same as YUV_420_888 | Any |

+ * hardware level ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel}):

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
FormatSizeHardware LevelNotes
{@link android.graphics.ImageFormat#JPEG }{@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} (*1)Any
{@link android.graphics.ImageFormat#JPEG }1920x1080 (1080p)Anyif 1080p <= activeArraySize
{@link android.graphics.ImageFormat#JPEG }1280x720 (720p)Anyif 720p <= activeArraySize
{@link android.graphics.ImageFormat#JPEG }640x480 (480p)Anyif 480p <= activeArraySize
{@link android.graphics.ImageFormat#JPEG }320x240 (240p)Anyif 240p <= activeArraySize
{@link android.graphics.ImageFormat#YUV_420_888 }all output sizes available for JPEGFULL
{@link android.graphics.ImageFormat#YUV_420_888 }all output sizes available for JPEG, up to the maximum video sizeLIMITED
{@link android.graphics.ImageFormat#PRIVATE }same as YUV_420_888Any
*

For applications targeting SDK version 31 or newer, if the mobile device declares to be * media performance class 12 or higher by setting * {@link android.os.Build.VERSION#MEDIA_PERFORMANCE_CLASS } to be 31 or larger,