From e62ad1d5b64db2ac0eb06b68f640652b60af6901 Mon Sep 17 00:00:00 2001 From: Chien-Yu Chen Date: Thu, 15 Feb 2018 14:00:16 -0800 Subject: [PATCH] camera: Add OisSamples synthetic key Add a synthetic OisSamples key containing timestamps and shifts. Test: CTS Bug: 64847201 Change-Id: I73cc525140fb933aab5fdb03196184b9cef3014d --- 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 a81fe8c501..d88a7a50b0 100644 --- a/camera/ndk/include/camera/NdkCameraMetadataTags.h +++ b/camera/ndk/include/camera/NdkCameraMetadataTags.h @@ -4573,11 +4573,6 @@ typedef enum acamera_metadata_tag { *
  • ACaptureRequest
  • *

    * - *

    When set to ON, - * ACAMERA_STATISTICS_OIS_TIMESTAMPS, android.statistics.oisShiftPixelX, - * and android.statistics.oisShiftPixelY provide OIS data in the output result metadata.

    - * - * @see ACAMERA_STATISTICS_OIS_TIMESTAMPS */ ACAMERA_STATISTICS_OIS_DATA_MODE = // byte (acamera_metadata_enum_android_statistics_ois_data_mode_t) ACAMERA_STATISTICS_START + 17, @@ -4610,7 +4605,7 @@ typedef enum acamera_metadata_tag { * *

    The array contains the amount of shifts in x direction, in pixels, based on OIS samples. * A positive value is a shift from left to right in active array coordinate system. For - * example, if the optical center is (1000, 500) in active array coordinates, an shift of + * example, if the optical center is (1000, 500) in active array coordinates, a shift of * (3, 0) puts the new optical center at (1003, 500).

    *

    The number of shifts must match the number of timestamps in * ACAMERA_STATISTICS_OIS_TIMESTAMPS.

    @@ -4631,7 +4626,7 @@ typedef enum acamera_metadata_tag { * *

    The array contains the amount of shifts in y direction, in pixels, based on OIS samples. * A positive value is a shift from top to bottom in active array coordinate system. For - * example, if the optical center is (1000, 500) in active array coordinates, an shift of + * example, if the optical center is (1000, 500) in active array coordinates, a shift of * (0, 5) puts the new optical center at (1000, 505).

    *

    The number of shifts must match the number of timestamps in * ACAMERA_STATISTICS_OIS_TIMESTAMPS.

    @@ -7370,6 +7365,12 @@ typedef enum acamera_metadata_enum_acamera_statistics_ois_data_mode { /** *

    Include OIS data in the capture result.

    + *

    ACAMERA_STATISTICS_OIS_TIMESTAMPS, ACAMERA_STATISTICS_OIS_X_SHIFTS, + * and ACAMERA_STATISTICS_OIS_Y_SHIFTS provide OIS data in the output result metadata.

    + * + * @see ACAMERA_STATISTICS_OIS_TIMESTAMPS + * @see ACAMERA_STATISTICS_OIS_X_SHIFTS + * @see ACAMERA_STATISTICS_OIS_Y_SHIFTS */ ACAMERA_STATISTICS_OIS_DATA_MODE_ON = 1,