Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7e2c6b4 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by Automerger Merge Worker
Browse files

Merge "Camera: add default secure camera size key" into sc-dev am: f3fe1d60

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/13556772

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I837de9e3abd8e1b120ce4a4d95a90e75651c274d
parents bda6523d f3fe1d60
Loading
Loading
Loading
Loading
+28 −0
Original line number Original line Diff line number Diff line
@@ -40,6 +40,7 @@


__BEGIN_DECLS
__BEGIN_DECLS



typedef enum acamera_metadata_section {
typedef enum acamera_metadata_section {
    ACAMERA_COLOR_CORRECTION,
    ACAMERA_COLOR_CORRECTION,
    ACAMERA_CONTROL,
    ACAMERA_CONTROL,
@@ -3841,6 +3842,32 @@ typedef enum acamera_metadata_tag {
     */
     */
    ACAMERA_SCALER_ROTATE_AND_CROP =                            // byte (acamera_metadata_enum_android_scaler_rotate_and_crop_t)
    ACAMERA_SCALER_ROTATE_AND_CROP =                            // byte (acamera_metadata_enum_android_scaler_rotate_and_crop_t)
            ACAMERA_SCALER_START + 17,
            ACAMERA_SCALER_START + 17,
    /**
     * <p>Default YUV/PRIVATE size to use for requesting secure image buffers.</p>
     *
     * <p>Type: int32[2]</p>
     *
     * <p>This tag may appear in:
     * <ul>
     *   <li>ACameraMetadata from ACameraManager_getCameraCharacteristics</li>
     * </ul></p>
     *
     * <p>This entry lists the default size supported in the secure camera mode. This entry is
     * optional on devices support the SECURE_IMAGE_DATA capability. This entry will be null
     * if the camera device does not list SECURE_IMAGE_DATA capability.</p>
     * <p>When the key is present, only a PRIVATE/YUV output of the specified size is guaranteed
     * to be supported by the camera HAL in the secure camera mode. Any other format or
     * resolutions might not be supported. Use
     * {@link ACameraDevice_isSessionConfigurationSupported }
     * API to query if a secure session configuration is supported if the device supports this
     * API.</p>
     * <p>If this key returns null on a device with SECURE_IMAGE_DATA capability, the application
     * can assume all output sizes listed in the
     * {@link ACAMERA_SCALER_AVAILABLE_MIN_FRAME_DURATIONS }
     * are supported.</p>
     */
    ACAMERA_SCALER_DEFAULT_SECURE_IMAGE_SIZE =                  // int32[2]
            ACAMERA_SCALER_START + 18,
    ACAMERA_SCALER_END,
    ACAMERA_SCALER_END,


    /**
    /**
@@ -9143,6 +9170,7 @@ typedef enum acamera_metadata_enum_acamera_heic_available_heic_stream_configurat







__END_DECLS
__END_DECLS


#endif /* _NDK_CAMERA_METADATA_TAGS_H */
#endif /* _NDK_CAMERA_METADATA_TAGS_H */