Home | History | Annotate | Download | only in system
      1 /*
      2  * Copyright (C) 2012 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 /**
     18  * !! Do not include this file directly !!
     19  *
     20  * Include camera_metadata.h instead.
     21  */
     22 
     23 /**
     24  * ! Do not edit this file directly !
     25  *
     26  * Generated automatically from camera_metadata_tags.mako
     27  */
     28 
     29 /** TODO: Nearly every enum in this file needs a description */
     30 
     31 /**
     32  * Top level hierarchy definitions for camera metadata. *_INFO sections are for
     33  * the static metadata that can be retrived without opening the camera device.
     34  * New sections must be added right before ANDROID_SECTION_COUNT to maintain
     35  * existing enumerations.
     36  */
     37 typedef enum camera_metadata_section {
     38     ANDROID_COLOR_CORRECTION,
     39     ANDROID_CONTROL,
     40     ANDROID_DEMOSAIC,
     41     ANDROID_EDGE,
     42     ANDROID_FLASH,
     43     ANDROID_FLASH_INFO,
     44     ANDROID_HOT_PIXEL,
     45     ANDROID_JPEG,
     46     ANDROID_LENS,
     47     ANDROID_LENS_INFO,
     48     ANDROID_NOISE_REDUCTION,
     49     ANDROID_QUIRKS,
     50     ANDROID_REQUEST,
     51     ANDROID_SCALER,
     52     ANDROID_SENSOR,
     53     ANDROID_SENSOR_INFO,
     54     ANDROID_SHADING,
     55     ANDROID_STATISTICS,
     56     ANDROID_STATISTICS_INFO,
     57     ANDROID_TONEMAP,
     58     ANDROID_LED,
     59     ANDROID_INFO,
     60     ANDROID_BLACK_LEVEL,
     61     ANDROID_SYNC,
     62     ANDROID_REPROCESS,
     63     ANDROID_DEPTH,
     64     ANDROID_SECTION_COUNT,
     65 
     66     VENDOR_SECTION = 0x8000
     67 } camera_metadata_section_t;
     68 
     69 /**
     70  * Hierarchy positions in enum space. All vendor extension tags must be
     71  * defined with tag >= VENDOR_SECTION_START
     72  */
     73 typedef enum camera_metadata_section_start {
     74     ANDROID_COLOR_CORRECTION_START = ANDROID_COLOR_CORRECTION  << 16,
     75     ANDROID_CONTROL_START          = ANDROID_CONTROL           << 16,
     76     ANDROID_DEMOSAIC_START         = ANDROID_DEMOSAIC          << 16,
     77     ANDROID_EDGE_START             = ANDROID_EDGE              << 16,
     78     ANDROID_FLASH_START            = ANDROID_FLASH             << 16,
     79     ANDROID_FLASH_INFO_START       = ANDROID_FLASH_INFO        << 16,
     80     ANDROID_HOT_PIXEL_START        = ANDROID_HOT_PIXEL         << 16,
     81     ANDROID_JPEG_START             = ANDROID_JPEG              << 16,
     82     ANDROID_LENS_START             = ANDROID_LENS              << 16,
     83     ANDROID_LENS_INFO_START        = ANDROID_LENS_INFO         << 16,
     84     ANDROID_NOISE_REDUCTION_START  = ANDROID_NOISE_REDUCTION   << 16,
     85     ANDROID_QUIRKS_START           = ANDROID_QUIRKS            << 16,
     86     ANDROID_REQUEST_START          = ANDROID_REQUEST           << 16,
     87     ANDROID_SCALER_START           = ANDROID_SCALER            << 16,
     88     ANDROID_SENSOR_START           = ANDROID_SENSOR            << 16,
     89     ANDROID_SENSOR_INFO_START      = ANDROID_SENSOR_INFO       << 16,
     90     ANDROID_SHADING_START          = ANDROID_SHADING           << 16,
     91     ANDROID_STATISTICS_START       = ANDROID_STATISTICS        << 16,
     92     ANDROID_STATISTICS_INFO_START  = ANDROID_STATISTICS_INFO   << 16,
     93     ANDROID_TONEMAP_START          = ANDROID_TONEMAP           << 16,
     94     ANDROID_LED_START              = ANDROID_LED               << 16,
     95     ANDROID_INFO_START             = ANDROID_INFO              << 16,
     96     ANDROID_BLACK_LEVEL_START      = ANDROID_BLACK_LEVEL       << 16,
     97     ANDROID_SYNC_START             = ANDROID_SYNC              << 16,
     98     ANDROID_REPROCESS_START        = ANDROID_REPROCESS         << 16,
     99     ANDROID_DEPTH_START            = ANDROID_DEPTH             << 16,
    100     VENDOR_SECTION_START           = VENDOR_SECTION            << 16
    101 } camera_metadata_section_start_t;
    102 
    103 /**
    104  * Main enum for defining camera metadata tags.  New entries must always go
    105  * before the section _END tag to preserve existing enumeration values.  In
    106  * addition, the name and type of the tag needs to be added to
    107  * system/media/camera/src/camera_metadata_tag_info.c
    108  */
    109 typedef enum camera_metadata_tag {
    110     ANDROID_COLOR_CORRECTION_MODE =                   // enum         | public
    111             ANDROID_COLOR_CORRECTION_START,
    112     ANDROID_COLOR_CORRECTION_TRANSFORM,               // rational[]   | public
    113     ANDROID_COLOR_CORRECTION_GAINS,                   // float[]      | public
    114     ANDROID_COLOR_CORRECTION_ABERRATION_MODE,         // enum         | public
    115     ANDROID_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES,
    116                                                       // byte[]       | public
    117     ANDROID_COLOR_CORRECTION_END,
    118 
    119     ANDROID_CONTROL_AE_ANTIBANDING_MODE =             // enum         | public
    120             ANDROID_CONTROL_START,
    121     ANDROID_CONTROL_AE_EXPOSURE_COMPENSATION,         // int32        | public
    122     ANDROID_CONTROL_AE_LOCK,                          // enum         | public
    123     ANDROID_CONTROL_AE_MODE,                          // enum         | public
    124     ANDROID_CONTROL_AE_REGIONS,                       // int32[]      | public
    125     ANDROID_CONTROL_AE_TARGET_FPS_RANGE,              // int32[]      | public
    126     ANDROID_CONTROL_AE_PRECAPTURE_TRIGGER,            // enum         | public
    127     ANDROID_CONTROL_AF_MODE,                          // enum         | public
    128     ANDROID_CONTROL_AF_REGIONS,                       // int32[]      | public
    129     ANDROID_CONTROL_AF_TRIGGER,                       // enum         | public
    130     ANDROID_CONTROL_AWB_LOCK,                         // enum         | public
    131     ANDROID_CONTROL_AWB_MODE,                         // enum         | public
    132     ANDROID_CONTROL_AWB_REGIONS,                      // int32[]      | public
    133     ANDROID_CONTROL_CAPTURE_INTENT,                   // enum         | public
    134     ANDROID_CONTROL_EFFECT_MODE,                      // enum         | public
    135     ANDROID_CONTROL_MODE,                             // enum         | public
    136     ANDROID_CONTROL_SCENE_MODE,                       // enum         | public
    137     ANDROID_CONTROL_VIDEO_STABILIZATION_MODE,         // enum         | public
    138     ANDROID_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES,   // byte[]       | public
    139     ANDROID_CONTROL_AE_AVAILABLE_MODES,               // byte[]       | public
    140     ANDROID_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES,   // int32[]      | public
    141     ANDROID_CONTROL_AE_COMPENSATION_RANGE,            // int32[]      | public
    142     ANDROID_CONTROL_AE_COMPENSATION_STEP,             // rational     | public
    143     ANDROID_CONTROL_AF_AVAILABLE_MODES,               // byte[]       | public
    144     ANDROID_CONTROL_AVAILABLE_EFFECTS,                // byte[]       | public
    145     ANDROID_CONTROL_AVAILABLE_SCENE_MODES,            // byte[]       | public
    146     ANDROID_CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES,
    147                                                       // byte[]       | public
    148     ANDROID_CONTROL_AWB_AVAILABLE_MODES,              // byte[]       | public
    149     ANDROID_CONTROL_MAX_REGIONS,                      // int32[]      | ndk_public
    150     ANDROID_CONTROL_SCENE_MODE_OVERRIDES,             // byte[]       | system
    151     ANDROID_CONTROL_AE_PRECAPTURE_ID,                 // int32        | system
    152     ANDROID_CONTROL_AE_STATE,                         // enum         | public
    153     ANDROID_CONTROL_AF_STATE,                         // enum         | public
    154     ANDROID_CONTROL_AF_TRIGGER_ID,                    // int32        | system
    155     ANDROID_CONTROL_AWB_STATE,                        // enum         | public
    156     ANDROID_CONTROL_AVAILABLE_HIGH_SPEED_VIDEO_CONFIGURATIONS,
    157                                                       // int32[]      | hidden
    158     ANDROID_CONTROL_AE_LOCK_AVAILABLE,                // enum         | public
    159     ANDROID_CONTROL_AWB_LOCK_AVAILABLE,               // enum         | public
    160     ANDROID_CONTROL_AVAILABLE_MODES,                  // byte[]       | public
    161     ANDROID_CONTROL_POST_RAW_SENSITIVITY_BOOST_RANGE, // int32[]      | public
    162     ANDROID_CONTROL_POST_RAW_SENSITIVITY_BOOST,       // int32        | public
    163     ANDROID_CONTROL_END,
    164 
    165     ANDROID_DEMOSAIC_MODE =                           // enum         | system
    166             ANDROID_DEMOSAIC_START,
    167     ANDROID_DEMOSAIC_END,
    168 
    169     ANDROID_EDGE_MODE =                               // enum         | public
    170             ANDROID_EDGE_START,
    171     ANDROID_EDGE_STRENGTH,                            // byte         | system
    172     ANDROID_EDGE_AVAILABLE_EDGE_MODES,                // byte[]       | public
    173     ANDROID_EDGE_END,
    174 
    175     ANDROID_FLASH_FIRING_POWER =                      // byte         | system
    176             ANDROID_FLASH_START,
    177     ANDROID_FLASH_FIRING_TIME,                        // int64        | system
    178     ANDROID_FLASH_MODE,                               // enum         | public
    179     ANDROID_FLASH_COLOR_TEMPERATURE,                  // byte         | system
    180     ANDROID_FLASH_MAX_ENERGY,                         // byte         | system
    181     ANDROID_FLASH_STATE,                              // enum         | public
    182     ANDROID_FLASH_END,
    183 
    184     ANDROID_FLASH_INFO_AVAILABLE =                    // enum         | public
    185             ANDROID_FLASH_INFO_START,
    186     ANDROID_FLASH_INFO_CHARGE_DURATION,               // int64        | system
    187     ANDROID_FLASH_INFO_END,
    188 
    189     ANDROID_HOT_PIXEL_MODE =                          // enum         | public
    190             ANDROID_HOT_PIXEL_START,
    191     ANDROID_HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES,      // byte[]       | public
    192     ANDROID_HOT_PIXEL_END,
    193 
    194     ANDROID_JPEG_GPS_COORDINATES =                    // double[]     | ndk_public
    195             ANDROID_JPEG_START,
    196     ANDROID_JPEG_GPS_PROCESSING_METHOD,               // byte         | ndk_public
    197     ANDROID_JPEG_GPS_TIMESTAMP,                       // int64        | ndk_public
    198     ANDROID_JPEG_ORIENTATION,                         // int32        | public
    199     ANDROID_JPEG_QUALITY,                             // byte         | public
    200     ANDROID_JPEG_THUMBNAIL_QUALITY,                   // byte         | public
    201     ANDROID_JPEG_THUMBNAIL_SIZE,                      // int32[]      | public
    202     ANDROID_JPEG_AVAILABLE_THUMBNAIL_SIZES,           // int32[]      | public
    203     ANDROID_JPEG_MAX_SIZE,                            // int32        | system
    204     ANDROID_JPEG_SIZE,                                // int32        | system
    205     ANDROID_JPEG_END,
    206 
    207     ANDROID_LENS_APERTURE =                           // float        | public
    208             ANDROID_LENS_START,
    209     ANDROID_LENS_FILTER_DENSITY,                      // float        | public
    210     ANDROID_LENS_FOCAL_LENGTH,                        // float        | public
    211     ANDROID_LENS_FOCUS_DISTANCE,                      // float        | public
    212     ANDROID_LENS_OPTICAL_STABILIZATION_MODE,          // enum         | public
    213     ANDROID_LENS_FACING,                              // enum         | public
    214     ANDROID_LENS_POSE_ROTATION,                       // float[]      | public
    215     ANDROID_LENS_POSE_TRANSLATION,                    // float[]      | public
    216     ANDROID_LENS_FOCUS_RANGE,                         // float[]      | public
    217     ANDROID_LENS_STATE,                               // enum         | public
    218     ANDROID_LENS_INTRINSIC_CALIBRATION,               // float[]      | public
    219     ANDROID_LENS_RADIAL_DISTORTION,                   // float[]      | public
    220     ANDROID_LENS_END,
    221 
    222     ANDROID_LENS_INFO_AVAILABLE_APERTURES =           // float[]      | public
    223             ANDROID_LENS_INFO_START,
    224     ANDROID_LENS_INFO_AVAILABLE_FILTER_DENSITIES,     // float[]      | public
    225     ANDROID_LENS_INFO_AVAILABLE_FOCAL_LENGTHS,        // float[]      | public
    226     ANDROID_LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION,// byte[]       | public
    227     ANDROID_LENS_INFO_HYPERFOCAL_DISTANCE,            // float        | public
    228     ANDROID_LENS_INFO_MINIMUM_FOCUS_DISTANCE,         // float        | public
    229     ANDROID_LENS_INFO_SHADING_MAP_SIZE,               // int32[]      | ndk_public
    230     ANDROID_LENS_INFO_FOCUS_DISTANCE_CALIBRATION,     // enum         | public
    231     ANDROID_LENS_INFO_END,
    232 
    233     ANDROID_NOISE_REDUCTION_MODE =                    // enum         | public
    234             ANDROID_NOISE_REDUCTION_START,
    235     ANDROID_NOISE_REDUCTION_STRENGTH,                 // byte         | system
    236     ANDROID_NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES,
    237                                                       // byte[]       | public
    238     ANDROID_NOISE_REDUCTION_END,
    239 
    240     ANDROID_QUIRKS_METERING_CROP_REGION =             // byte         | system
    241             ANDROID_QUIRKS_START,
    242     ANDROID_QUIRKS_TRIGGER_AF_WITH_AUTO,              // byte         | system
    243     ANDROID_QUIRKS_USE_ZSL_FORMAT,                    // byte         | system
    244     ANDROID_QUIRKS_USE_PARTIAL_RESULT,                // byte         | hidden
    245     ANDROID_QUIRKS_PARTIAL_RESULT,                    // enum         | hidden
    246     ANDROID_QUIRKS_END,
    247 
    248     ANDROID_REQUEST_FRAME_COUNT =                     // int32        | hidden
    249             ANDROID_REQUEST_START,
    250     ANDROID_REQUEST_ID,                               // int32        | hidden
    251     ANDROID_REQUEST_INPUT_STREAMS,                    // int32[]      | system
    252     ANDROID_REQUEST_METADATA_MODE,                    // enum         | system
    253     ANDROID_REQUEST_OUTPUT_STREAMS,                   // int32[]      | system
    254     ANDROID_REQUEST_TYPE,                             // enum         | system
    255     ANDROID_REQUEST_MAX_NUM_OUTPUT_STREAMS,           // int32[]      | ndk_public
    256     ANDROID_REQUEST_MAX_NUM_REPROCESS_STREAMS,        // int32[]      | system
    257     ANDROID_REQUEST_MAX_NUM_INPUT_STREAMS,            // int32        | public
    258     ANDROID_REQUEST_PIPELINE_DEPTH,                   // byte         | public
    259     ANDROID_REQUEST_PIPELINE_MAX_DEPTH,               // byte         | public
    260     ANDROID_REQUEST_PARTIAL_RESULT_COUNT,             // int32        | public
    261     ANDROID_REQUEST_AVAILABLE_CAPABILITIES,           // enum[]       | public
    262     ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS,           // int32[]      | ndk_public
    263     ANDROID_REQUEST_AVAILABLE_RESULT_KEYS,            // int32[]      | ndk_public
    264     ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS,   // int32[]      | ndk_public
    265     ANDROID_REQUEST_END,
    266 
    267     ANDROID_SCALER_CROP_REGION =                      // int32[]      | public
    268             ANDROID_SCALER_START,
    269     ANDROID_SCALER_AVAILABLE_FORMATS,                 // enum[]       | hidden
    270     ANDROID_SCALER_AVAILABLE_JPEG_MIN_DURATIONS,      // int64[]      | hidden
    271     ANDROID_SCALER_AVAILABLE_JPEG_SIZES,              // int32[]      | hidden
    272     ANDROID_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM,        // float        | public
    273     ANDROID_SCALER_AVAILABLE_PROCESSED_MIN_DURATIONS, // int64[]      | hidden
    274     ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES,         // int32[]      | hidden
    275     ANDROID_SCALER_AVAILABLE_RAW_MIN_DURATIONS,       // int64[]      | system
    276     ANDROID_SCALER_AVAILABLE_RAW_SIZES,               // int32[]      | system
    277     ANDROID_SCALER_AVAILABLE_INPUT_OUTPUT_FORMATS_MAP,// int32        | hidden
    278     ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS,   // enum[]       | ndk_public
    279     ANDROID_SCALER_AVAILABLE_MIN_FRAME_DURATIONS,     // int64[]      | ndk_public
    280     ANDROID_SCALER_AVAILABLE_STALL_DURATIONS,         // int64[]      | ndk_public
    281     ANDROID_SCALER_CROPPING_TYPE,                     // enum         | public
    282     ANDROID_SCALER_END,
    283 
    284     ANDROID_SENSOR_EXPOSURE_TIME =                    // int64        | public
    285             ANDROID_SENSOR_START,
    286     ANDROID_SENSOR_FRAME_DURATION,                    // int64        | public
    287     ANDROID_SENSOR_SENSITIVITY,                       // int32        | public
    288     ANDROID_SENSOR_REFERENCE_ILLUMINANT1,             // enum         | public
    289     ANDROID_SENSOR_REFERENCE_ILLUMINANT2,             // byte         | public
    290     ANDROID_SENSOR_CALIBRATION_TRANSFORM1,            // rational[]   | public
    291     ANDROID_SENSOR_CALIBRATION_TRANSFORM2,            // rational[]   | public
    292     ANDROID_SENSOR_COLOR_TRANSFORM1,                  // rational[]   | public
    293     ANDROID_SENSOR_COLOR_TRANSFORM2,                  // rational[]   | public
    294     ANDROID_SENSOR_FORWARD_MATRIX1,                   // rational[]   | public
    295     ANDROID_SENSOR_FORWARD_MATRIX2,                   // rational[]   | public
    296     ANDROID_SENSOR_BASE_GAIN_FACTOR,                  // rational     | system
    297     ANDROID_SENSOR_BLACK_LEVEL_PATTERN,               // int32[]      | public
    298     ANDROID_SENSOR_MAX_ANALOG_SENSITIVITY,            // int32        | public
    299     ANDROID_SENSOR_ORIENTATION,                       // int32        | public
    300     ANDROID_SENSOR_PROFILE_HUE_SAT_MAP_DIMENSIONS,    // int32[]      | system
    301     ANDROID_SENSOR_TIMESTAMP,                         // int64        | public
    302     ANDROID_SENSOR_TEMPERATURE,                       // float        | system
    303     ANDROID_SENSOR_NEUTRAL_COLOR_POINT,               // rational[]   | public
    304     ANDROID_SENSOR_NOISE_PROFILE,                     // double[]     | public
    305     ANDROID_SENSOR_PROFILE_HUE_SAT_MAP,               // float[]      | system
    306     ANDROID_SENSOR_PROFILE_TONE_CURVE,                // float[]      | system
    307     ANDROID_SENSOR_GREEN_SPLIT,                       // float        | public
    308     ANDROID_SENSOR_TEST_PATTERN_DATA,                 // int32[]      | public
    309     ANDROID_SENSOR_TEST_PATTERN_MODE,                 // enum         | public
    310     ANDROID_SENSOR_AVAILABLE_TEST_PATTERN_MODES,      // int32[]      | public
    311     ANDROID_SENSOR_ROLLING_SHUTTER_SKEW,              // int64        | public
    312     ANDROID_SENSOR_OPTICAL_BLACK_REGIONS,             // int32[]      | public
    313     ANDROID_SENSOR_DYNAMIC_BLACK_LEVEL,               // float[]      | public
    314     ANDROID_SENSOR_DYNAMIC_WHITE_LEVEL,               // int32        | public
    315     ANDROID_SENSOR_OPAQUE_RAW_SIZE,                   // int32[]      | system
    316     ANDROID_SENSOR_END,
    317 
    318     ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE =           // int32[]      | public
    319             ANDROID_SENSOR_INFO_START,
    320     ANDROID_SENSOR_INFO_SENSITIVITY_RANGE,            // int32[]      | public
    321     ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT,     // enum         | public
    322     ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE,          // int64[]      | public
    323     ANDROID_SENSOR_INFO_MAX_FRAME_DURATION,           // int64        | public
    324     ANDROID_SENSOR_INFO_PHYSICAL_SIZE,                // float[]      | public
    325     ANDROID_SENSOR_INFO_PIXEL_ARRAY_SIZE,             // int32[]      | public
    326     ANDROID_SENSOR_INFO_WHITE_LEVEL,                  // int32        | public
    327     ANDROID_SENSOR_INFO_TIMESTAMP_SOURCE,             // enum         | public
    328     ANDROID_SENSOR_INFO_LENS_SHADING_APPLIED,         // enum         | public
    329     ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE,
    330                                                       // int32[]      | public
    331     ANDROID_SENSOR_INFO_END,
    332 
    333     ANDROID_SHADING_MODE =                            // enum         | public
    334             ANDROID_SHADING_START,
    335     ANDROID_SHADING_STRENGTH,                         // byte         | system
    336     ANDROID_SHADING_AVAILABLE_MODES,                  // byte[]       | public
    337     ANDROID_SHADING_END,
    338 
    339     ANDROID_STATISTICS_FACE_DETECT_MODE =             // enum         | public
    340             ANDROID_STATISTICS_START,
    341     ANDROID_STATISTICS_HISTOGRAM_MODE,                // enum         | system
    342     ANDROID_STATISTICS_SHARPNESS_MAP_MODE,            // enum         | system
    343     ANDROID_STATISTICS_HOT_PIXEL_MAP_MODE,            // enum         | public
    344     ANDROID_STATISTICS_FACE_IDS,                      // int32[]      | ndk_public
    345     ANDROID_STATISTICS_FACE_LANDMARKS,                // int32[]      | ndk_public
    346     ANDROID_STATISTICS_FACE_RECTANGLES,               // int32[]      | ndk_public
    347     ANDROID_STATISTICS_FACE_SCORES,                   // byte[]       | ndk_public
    348     ANDROID_STATISTICS_HISTOGRAM,                     // int32[]      | system
    349     ANDROID_STATISTICS_SHARPNESS_MAP,                 // int32[]      | system
    350     ANDROID_STATISTICS_LENS_SHADING_CORRECTION_MAP,   // byte         | java_public
    351     ANDROID_STATISTICS_LENS_SHADING_MAP,              // float[]      | ndk_public
    352     ANDROID_STATISTICS_PREDICTED_COLOR_GAINS,         // float[]      | hidden
    353     ANDROID_STATISTICS_PREDICTED_COLOR_TRANSFORM,     // rational[]   | hidden
    354     ANDROID_STATISTICS_SCENE_FLICKER,                 // enum         | public
    355     ANDROID_STATISTICS_HOT_PIXEL_MAP,                 // int32[]      | public
    356     ANDROID_STATISTICS_LENS_SHADING_MAP_MODE,         // enum         | public
    357     ANDROID_STATISTICS_END,
    358 
    359     ANDROID_STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES =
    360                                                       // byte[]       | public
    361             ANDROID_STATISTICS_INFO_START,
    362     ANDROID_STATISTICS_INFO_HISTOGRAM_BUCKET_COUNT,   // int32        | system
    363     ANDROID_STATISTICS_INFO_MAX_FACE_COUNT,           // int32        | public
    364     ANDROID_STATISTICS_INFO_MAX_HISTOGRAM_COUNT,      // int32        | system
    365     ANDROID_STATISTICS_INFO_MAX_SHARPNESS_MAP_VALUE,  // int32        | system
    366     ANDROID_STATISTICS_INFO_SHARPNESS_MAP_SIZE,       // int32[]      | system
    367     ANDROID_STATISTICS_INFO_AVAILABLE_HOT_PIXEL_MAP_MODES,
    368                                                       // byte[]       | public
    369     ANDROID_STATISTICS_INFO_AVAILABLE_LENS_SHADING_MAP_MODES,
    370                                                       // byte[]       | public
    371     ANDROID_STATISTICS_INFO_END,
    372 
    373     ANDROID_TONEMAP_CURVE_BLUE =                      // float[]      | ndk_public
    374             ANDROID_TONEMAP_START,
    375     ANDROID_TONEMAP_CURVE_GREEN,                      // float[]      | ndk_public
    376     ANDROID_TONEMAP_CURVE_RED,                        // float[]      | ndk_public
    377     ANDROID_TONEMAP_MODE,                             // enum         | public
    378     ANDROID_TONEMAP_MAX_CURVE_POINTS,                 // int32        | public
    379     ANDROID_TONEMAP_AVAILABLE_TONE_MAP_MODES,         // byte[]       | public
    380     ANDROID_TONEMAP_GAMMA,                            // float        | public
    381     ANDROID_TONEMAP_PRESET_CURVE,                     // enum         | public
    382     ANDROID_TONEMAP_END,
    383 
    384     ANDROID_LED_TRANSMIT =                            // enum         | hidden
    385             ANDROID_LED_START,
    386     ANDROID_LED_AVAILABLE_LEDS,                       // enum[]       | hidden
    387     ANDROID_LED_END,
    388 
    389     ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL =           // enum         | public
    390             ANDROID_INFO_START,
    391     ANDROID_INFO_END,
    392 
    393     ANDROID_BLACK_LEVEL_LOCK =                        // enum         | public
    394             ANDROID_BLACK_LEVEL_START,
    395     ANDROID_BLACK_LEVEL_END,
    396 
    397     ANDROID_SYNC_FRAME_NUMBER =                       // enum         | ndk_public
    398             ANDROID_SYNC_START,
    399     ANDROID_SYNC_MAX_LATENCY,                         // enum         | public
    400     ANDROID_SYNC_END,
    401 
    402     ANDROID_REPROCESS_EFFECTIVE_EXPOSURE_FACTOR =     // float        | java_public
    403             ANDROID_REPROCESS_START,
    404     ANDROID_REPROCESS_MAX_CAPTURE_STALL,              // int32        | java_public
    405     ANDROID_REPROCESS_END,
    406 
    407     ANDROID_DEPTH_MAX_DEPTH_SAMPLES =                 // int32        | system
    408             ANDROID_DEPTH_START,
    409     ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS,
    410                                                       // enum[]       | ndk_public
    411     ANDROID_DEPTH_AVAILABLE_DEPTH_MIN_FRAME_DURATIONS,// int64[]      | ndk_public
    412     ANDROID_DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS,    // int64[]      | ndk_public
    413     ANDROID_DEPTH_DEPTH_IS_EXCLUSIVE,                 // enum         | public
    414     ANDROID_DEPTH_END,
    415 
    416 } camera_metadata_tag_t;
    417 
    418 /**
    419  * Enumeration definitions for the various entries that need them
    420  */
    421 
    422 // ANDROID_COLOR_CORRECTION_MODE
    423 typedef enum camera_metadata_enum_android_color_correction_mode {
    424     ANDROID_COLOR_CORRECTION_MODE_TRANSFORM_MATRIX,
    425     ANDROID_COLOR_CORRECTION_MODE_FAST,
    426     ANDROID_COLOR_CORRECTION_MODE_HIGH_QUALITY,
    427 } camera_metadata_enum_android_color_correction_mode_t;
    428 
    429 // ANDROID_COLOR_CORRECTION_ABERRATION_MODE
    430 typedef enum camera_metadata_enum_android_color_correction_aberration_mode {
    431     ANDROID_COLOR_CORRECTION_ABERRATION_MODE_OFF,
    432     ANDROID_COLOR_CORRECTION_ABERRATION_MODE_FAST,
    433     ANDROID_COLOR_CORRECTION_ABERRATION_MODE_HIGH_QUALITY,
    434 } camera_metadata_enum_android_color_correction_aberration_mode_t;
    435 
    436 
    437 // ANDROID_CONTROL_AE_ANTIBANDING_MODE
    438 typedef enum camera_metadata_enum_android_control_ae_antibanding_mode {
    439     ANDROID_CONTROL_AE_ANTIBANDING_MODE_OFF,
    440     ANDROID_CONTROL_AE_ANTIBANDING_MODE_50HZ,
    441     ANDROID_CONTROL_AE_ANTIBANDING_MODE_60HZ,
    442     ANDROID_CONTROL_AE_ANTIBANDING_MODE_AUTO,
    443 } camera_metadata_enum_android_control_ae_antibanding_mode_t;
    444 
    445 // ANDROID_CONTROL_AE_LOCK
    446 typedef enum camera_metadata_enum_android_control_ae_lock {
    447     ANDROID_CONTROL_AE_LOCK_OFF,
    448     ANDROID_CONTROL_AE_LOCK_ON,
    449 } camera_metadata_enum_android_control_ae_lock_t;
    450 
    451 // ANDROID_CONTROL_AE_MODE
    452 typedef enum camera_metadata_enum_android_control_ae_mode {
    453     ANDROID_CONTROL_AE_MODE_OFF,
    454     ANDROID_CONTROL_AE_MODE_ON,
    455     ANDROID_CONTROL_AE_MODE_ON_AUTO_FLASH,
    456     ANDROID_CONTROL_AE_MODE_ON_ALWAYS_FLASH,
    457     ANDROID_CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE,
    458 } camera_metadata_enum_android_control_ae_mode_t;
    459 
    460 // ANDROID_CONTROL_AE_PRECAPTURE_TRIGGER
    461 typedef enum camera_metadata_enum_android_control_ae_precapture_trigger {
    462     ANDROID_CONTROL_AE_PRECAPTURE_TRIGGER_IDLE,
    463     ANDROID_CONTROL_AE_PRECAPTURE_TRIGGER_START,
    464     ANDROID_CONTROL_AE_PRECAPTURE_TRIGGER_CANCEL,
    465 } camera_metadata_enum_android_control_ae_precapture_trigger_t;
    466 
    467 // ANDROID_CONTROL_AF_MODE
    468 typedef enum camera_metadata_enum_android_control_af_mode {
    469     ANDROID_CONTROL_AF_MODE_OFF,
    470     ANDROID_CONTROL_AF_MODE_AUTO,
    471     ANDROID_CONTROL_AF_MODE_MACRO,
    472     ANDROID_CONTROL_AF_MODE_CONTINUOUS_VIDEO,
    473     ANDROID_CONTROL_AF_MODE_CONTINUOUS_PICTURE,
    474     ANDROID_CONTROL_AF_MODE_EDOF,
    475 } camera_metadata_enum_android_control_af_mode_t;
    476 
    477 // ANDROID_CONTROL_AF_TRIGGER
    478 typedef enum camera_metadata_enum_android_control_af_trigger {
    479     ANDROID_CONTROL_AF_TRIGGER_IDLE,
    480     ANDROID_CONTROL_AF_TRIGGER_START,
    481     ANDROID_CONTROL_AF_TRIGGER_CANCEL,
    482 } camera_metadata_enum_android_control_af_trigger_t;
    483 
    484 // ANDROID_CONTROL_AWB_LOCK
    485 typedef enum camera_metadata_enum_android_control_awb_lock {
    486     ANDROID_CONTROL_AWB_LOCK_OFF,
    487     ANDROID_CONTROL_AWB_LOCK_ON,
    488 } camera_metadata_enum_android_control_awb_lock_t;
    489 
    490 // ANDROID_CONTROL_AWB_MODE
    491 typedef enum camera_metadata_enum_android_control_awb_mode {
    492     ANDROID_CONTROL_AWB_MODE_OFF,
    493     ANDROID_CONTROL_AWB_MODE_AUTO,
    494     ANDROID_CONTROL_AWB_MODE_INCANDESCENT,
    495     ANDROID_CONTROL_AWB_MODE_FLUORESCENT,
    496     ANDROID_CONTROL_AWB_MODE_WARM_FLUORESCENT,
    497     ANDROID_CONTROL_AWB_MODE_DAYLIGHT,
    498     ANDROID_CONTROL_AWB_MODE_CLOUDY_DAYLIGHT,
    499     ANDROID_CONTROL_AWB_MODE_TWILIGHT,
    500     ANDROID_CONTROL_AWB_MODE_SHADE,
    501 } camera_metadata_enum_android_control_awb_mode_t;
    502 
    503 // ANDROID_CONTROL_CAPTURE_INTENT
    504 typedef enum camera_metadata_enum_android_control_capture_intent {
    505     ANDROID_CONTROL_CAPTURE_INTENT_CUSTOM,
    506     ANDROID_CONTROL_CAPTURE_INTENT_PREVIEW,
    507     ANDROID_CONTROL_CAPTURE_INTENT_STILL_CAPTURE,
    508     ANDROID_CONTROL_CAPTURE_INTENT_VIDEO_RECORD,
    509     ANDROID_CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT,
    510     ANDROID_CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG,
    511     ANDROID_CONTROL_CAPTURE_INTENT_MANUAL,
    512 } camera_metadata_enum_android_control_capture_intent_t;
    513 
    514 // ANDROID_CONTROL_EFFECT_MODE
    515 typedef enum camera_metadata_enum_android_control_effect_mode {
    516     ANDROID_CONTROL_EFFECT_MODE_OFF,
    517     ANDROID_CONTROL_EFFECT_MODE_MONO,
    518     ANDROID_CONTROL_EFFECT_MODE_NEGATIVE,
    519     ANDROID_CONTROL_EFFECT_MODE_SOLARIZE,
    520     ANDROID_CONTROL_EFFECT_MODE_SEPIA,
    521     ANDROID_CONTROL_EFFECT_MODE_POSTERIZE,
    522     ANDROID_CONTROL_EFFECT_MODE_WHITEBOARD,
    523     ANDROID_CONTROL_EFFECT_MODE_BLACKBOARD,
    524     ANDROID_CONTROL_EFFECT_MODE_AQUA,
    525 } camera_metadata_enum_android_control_effect_mode_t;
    526 
    527 // ANDROID_CONTROL_MODE
    528 typedef enum camera_metadata_enum_android_control_mode {
    529     ANDROID_CONTROL_MODE_OFF,
    530     ANDROID_CONTROL_MODE_AUTO,
    531     ANDROID_CONTROL_MODE_USE_SCENE_MODE,
    532     ANDROID_CONTROL_MODE_OFF_KEEP_STATE,
    533 } camera_metadata_enum_android_control_mode_t;
    534 
    535 // ANDROID_CONTROL_SCENE_MODE
    536 typedef enum camera_metadata_enum_android_control_scene_mode {
    537     ANDROID_CONTROL_SCENE_MODE_DISABLED                         = 0,
    538     ANDROID_CONTROL_SCENE_MODE_FACE_PRIORITY,
    539     ANDROID_CONTROL_SCENE_MODE_ACTION,
    540     ANDROID_CONTROL_SCENE_MODE_PORTRAIT,
    541     ANDROID_CONTROL_SCENE_MODE_LANDSCAPE,
    542     ANDROID_CONTROL_SCENE_MODE_NIGHT,
    543     ANDROID_CONTROL_SCENE_MODE_NIGHT_PORTRAIT,
    544     ANDROID_CONTROL_SCENE_MODE_THEATRE,
    545     ANDROID_CONTROL_SCENE_MODE_BEACH,
    546     ANDROID_CONTROL_SCENE_MODE_SNOW,
    547     ANDROID_CONTROL_SCENE_MODE_SUNSET,
    548     ANDROID_CONTROL_SCENE_MODE_STEADYPHOTO,
    549     ANDROID_CONTROL_SCENE_MODE_FIREWORKS,
    550     ANDROID_CONTROL_SCENE_MODE_SPORTS,
    551     ANDROID_CONTROL_SCENE_MODE_PARTY,
    552     ANDROID_CONTROL_SCENE_MODE_CANDLELIGHT,
    553     ANDROID_CONTROL_SCENE_MODE_BARCODE,
    554     ANDROID_CONTROL_SCENE_MODE_HIGH_SPEED_VIDEO,
    555     ANDROID_CONTROL_SCENE_MODE_HDR,
    556     ANDROID_CONTROL_SCENE_MODE_FACE_PRIORITY_LOW_LIGHT,
    557     ANDROID_CONTROL_SCENE_MODE_DEVICE_CUSTOM_START              = 100,
    558     ANDROID_CONTROL_SCENE_MODE_DEVICE_CUSTOM_END                = 127,
    559 } camera_metadata_enum_android_control_scene_mode_t;
    560 
    561 // ANDROID_CONTROL_VIDEO_STABILIZATION_MODE
    562 typedef enum camera_metadata_enum_android_control_video_stabilization_mode {
    563     ANDROID_CONTROL_VIDEO_STABILIZATION_MODE_OFF,
    564     ANDROID_CONTROL_VIDEO_STABILIZATION_MODE_ON,
    565 } camera_metadata_enum_android_control_video_stabilization_mode_t;
    566 
    567 // ANDROID_CONTROL_AE_STATE
    568 typedef enum camera_metadata_enum_android_control_ae_state {
    569     ANDROID_CONTROL_AE_STATE_INACTIVE,
    570     ANDROID_CONTROL_AE_STATE_SEARCHING,
    571     ANDROID_CONTROL_AE_STATE_CONVERGED,
    572     ANDROID_CONTROL_AE_STATE_LOCKED,
    573     ANDROID_CONTROL_AE_STATE_FLASH_REQUIRED,
    574     ANDROID_CONTROL_AE_STATE_PRECAPTURE,
    575 } camera_metadata_enum_android_control_ae_state_t;
    576 
    577 // ANDROID_CONTROL_AF_STATE
    578 typedef enum camera_metadata_enum_android_control_af_state {
    579     ANDROID_CONTROL_AF_STATE_INACTIVE,
    580     ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN,
    581     ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED,
    582     ANDROID_CONTROL_AF_STATE_ACTIVE_SCAN,
    583     ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED,
    584     ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED,
    585     ANDROID_CONTROL_AF_STATE_PASSIVE_UNFOCUSED,
    586 } camera_metadata_enum_android_control_af_state_t;
    587 
    588 // ANDROID_CONTROL_AWB_STATE
    589 typedef enum camera_metadata_enum_android_control_awb_state {
    590     ANDROID_CONTROL_AWB_STATE_INACTIVE,
    591     ANDROID_CONTROL_AWB_STATE_SEARCHING,
    592     ANDROID_CONTROL_AWB_STATE_CONVERGED,
    593     ANDROID_CONTROL_AWB_STATE_LOCKED,
    594 } camera_metadata_enum_android_control_awb_state_t;
    595 
    596 // ANDROID_CONTROL_AE_LOCK_AVAILABLE
    597 typedef enum camera_metadata_enum_android_control_ae_lock_available {
    598     ANDROID_CONTROL_AE_LOCK_AVAILABLE_FALSE,
    599     ANDROID_CONTROL_AE_LOCK_AVAILABLE_TRUE,
    600 } camera_metadata_enum_android_control_ae_lock_available_t;
    601 
    602 // ANDROID_CONTROL_AWB_LOCK_AVAILABLE
    603 typedef enum camera_metadata_enum_android_control_awb_lock_available {
    604     ANDROID_CONTROL_AWB_LOCK_AVAILABLE_FALSE,
    605     ANDROID_CONTROL_AWB_LOCK_AVAILABLE_TRUE,
    606 } camera_metadata_enum_android_control_awb_lock_available_t;
    607 
    608 
    609 // ANDROID_DEMOSAIC_MODE
    610 typedef enum camera_metadata_enum_android_demosaic_mode {
    611     ANDROID_DEMOSAIC_MODE_FAST,
    612     ANDROID_DEMOSAIC_MODE_HIGH_QUALITY,
    613 } camera_metadata_enum_android_demosaic_mode_t;
    614 
    615 
    616 // ANDROID_EDGE_MODE
    617 typedef enum camera_metadata_enum_android_edge_mode {
    618     ANDROID_EDGE_MODE_OFF,
    619     ANDROID_EDGE_MODE_FAST,
    620     ANDROID_EDGE_MODE_HIGH_QUALITY,
    621     ANDROID_EDGE_MODE_ZERO_SHUTTER_LAG,
    622 } camera_metadata_enum_android_edge_mode_t;
    623 
    624 
    625 // ANDROID_FLASH_MODE
    626 typedef enum camera_metadata_enum_android_flash_mode {
    627     ANDROID_FLASH_MODE_OFF,
    628     ANDROID_FLASH_MODE_SINGLE,
    629     ANDROID_FLASH_MODE_TORCH,
    630 } camera_metadata_enum_android_flash_mode_t;
    631 
    632 // ANDROID_FLASH_STATE
    633 typedef enum camera_metadata_enum_android_flash_state {
    634     ANDROID_FLASH_STATE_UNAVAILABLE,
    635     ANDROID_FLASH_STATE_CHARGING,
    636     ANDROID_FLASH_STATE_READY,
    637     ANDROID_FLASH_STATE_FIRED,
    638     ANDROID_FLASH_STATE_PARTIAL,
    639 } camera_metadata_enum_android_flash_state_t;
    640 
    641 
    642 // ANDROID_FLASH_INFO_AVAILABLE
    643 typedef enum camera_metadata_enum_android_flash_info_available {
    644     ANDROID_FLASH_INFO_AVAILABLE_FALSE,
    645     ANDROID_FLASH_INFO_AVAILABLE_TRUE,
    646 } camera_metadata_enum_android_flash_info_available_t;
    647 
    648 
    649 // ANDROID_HOT_PIXEL_MODE
    650 typedef enum camera_metadata_enum_android_hot_pixel_mode {
    651     ANDROID_HOT_PIXEL_MODE_OFF,
    652     ANDROID_HOT_PIXEL_MODE_FAST,
    653     ANDROID_HOT_PIXEL_MODE_HIGH_QUALITY,
    654 } camera_metadata_enum_android_hot_pixel_mode_t;
    655 
    656 
    657 
    658 // ANDROID_LENS_OPTICAL_STABILIZATION_MODE
    659 typedef enum camera_metadata_enum_android_lens_optical_stabilization_mode {
    660     ANDROID_LENS_OPTICAL_STABILIZATION_MODE_OFF,
    661     ANDROID_LENS_OPTICAL_STABILIZATION_MODE_ON,
    662 } camera_metadata_enum_android_lens_optical_stabilization_mode_t;
    663 
    664 // ANDROID_LENS_FACING
    665 typedef enum camera_metadata_enum_android_lens_facing {
    666     ANDROID_LENS_FACING_FRONT,
    667     ANDROID_LENS_FACING_BACK,
    668     ANDROID_LENS_FACING_EXTERNAL,
    669 } camera_metadata_enum_android_lens_facing_t;
    670 
    671 // ANDROID_LENS_STATE
    672 typedef enum camera_metadata_enum_android_lens_state {
    673     ANDROID_LENS_STATE_STATIONARY,
    674     ANDROID_LENS_STATE_MOVING,
    675 } camera_metadata_enum_android_lens_state_t;
    676 
    677 
    678 // ANDROID_LENS_INFO_FOCUS_DISTANCE_CALIBRATION
    679 typedef enum camera_metadata_enum_android_lens_info_focus_distance_calibration {
    680     ANDROID_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED,
    681     ANDROID_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE,
    682     ANDROID_LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED,
    683 } camera_metadata_enum_android_lens_info_focus_distance_calibration_t;
    684 
    685 
    686 // ANDROID_NOISE_REDUCTION_MODE
    687 typedef enum camera_metadata_enum_android_noise_reduction_mode {
    688     ANDROID_NOISE_REDUCTION_MODE_OFF,
    689     ANDROID_NOISE_REDUCTION_MODE_FAST,
    690     ANDROID_NOISE_REDUCTION_MODE_HIGH_QUALITY,
    691     ANDROID_NOISE_REDUCTION_MODE_MINIMAL,
    692     ANDROID_NOISE_REDUCTION_MODE_ZERO_SHUTTER_LAG,
    693 } camera_metadata_enum_android_noise_reduction_mode_t;
    694 
    695 
    696 // ANDROID_QUIRKS_PARTIAL_RESULT
    697 typedef enum camera_metadata_enum_android_quirks_partial_result {
    698     ANDROID_QUIRKS_PARTIAL_RESULT_FINAL,
    699     ANDROID_QUIRKS_PARTIAL_RESULT_PARTIAL,
    700 } camera_metadata_enum_android_quirks_partial_result_t;
    701 
    702 
    703 // ANDROID_REQUEST_METADATA_MODE
    704 typedef enum camera_metadata_enum_android_request_metadata_mode {
    705     ANDROID_REQUEST_METADATA_MODE_NONE,
    706     ANDROID_REQUEST_METADATA_MODE_FULL,
    707 } camera_metadata_enum_android_request_metadata_mode_t;
    708 
    709 // ANDROID_REQUEST_TYPE
    710 typedef enum camera_metadata_enum_android_request_type {
    711     ANDROID_REQUEST_TYPE_CAPTURE,
    712     ANDROID_REQUEST_TYPE_REPROCESS,
    713 } camera_metadata_enum_android_request_type_t;
    714 
    715 // ANDROID_REQUEST_AVAILABLE_CAPABILITIES
    716 typedef enum camera_metadata_enum_android_request_available_capabilities {
    717     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE,
    718     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR,
    719     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING,
    720     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_RAW,
    721     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING,
    722     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS,
    723     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE,
    724     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING,
    725     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT,
    726     ANDROID_REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO,
    727 } camera_metadata_enum_android_request_available_capabilities_t;
    728 
    729 
    730 // ANDROID_SCALER_AVAILABLE_FORMATS
    731 typedef enum camera_metadata_enum_android_scaler_available_formats {
    732     ANDROID_SCALER_AVAILABLE_FORMATS_RAW16                      = 0x20,
    733     ANDROID_SCALER_AVAILABLE_FORMATS_RAW_OPAQUE                 = 0x24,
    734     ANDROID_SCALER_AVAILABLE_FORMATS_YV12                       = 0x32315659,
    735     ANDROID_SCALER_AVAILABLE_FORMATS_YCrCb_420_SP               = 0x11,
    736     ANDROID_SCALER_AVAILABLE_FORMATS_IMPLEMENTATION_DEFINED     = 0x22,
    737     ANDROID_SCALER_AVAILABLE_FORMATS_YCbCr_420_888              = 0x23,
    738     ANDROID_SCALER_AVAILABLE_FORMATS_BLOB                       = 0x21,
    739 } camera_metadata_enum_android_scaler_available_formats_t;
    740 
    741 // ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS
    742 typedef enum camera_metadata_enum_android_scaler_available_stream_configurations {
    743     ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_OUTPUT,
    744     ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_INPUT,
    745 } camera_metadata_enum_android_scaler_available_stream_configurations_t;
    746 
    747 // ANDROID_SCALER_CROPPING_TYPE
    748 typedef enum camera_metadata_enum_android_scaler_cropping_type {
    749     ANDROID_SCALER_CROPPING_TYPE_CENTER_ONLY,
    750     ANDROID_SCALER_CROPPING_TYPE_FREEFORM,
    751 } camera_metadata_enum_android_scaler_cropping_type_t;
    752 
    753 
    754 // ANDROID_SENSOR_REFERENCE_ILLUMINANT1
    755 typedef enum camera_metadata_enum_android_sensor_reference_illuminant1 {
    756     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT               = 1,
    757     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT            = 2,
    758     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN               = 3,
    759     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_FLASH                  = 4,
    760     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER           = 9,
    761     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER         = 10,
    762     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_SHADE                  = 11,
    763     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT   = 12,
    764     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT  = 13,
    765     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT = 14,
    766     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT      = 15,
    767     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A             = 17,
    768     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B             = 18,
    769     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C             = 19,
    770     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_D55                    = 20,
    771     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_D65                    = 21,
    772     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_D75                    = 22,
    773     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_D50                    = 23,
    774     ANDROID_SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN    = 24,
    775 } camera_metadata_enum_android_sensor_reference_illuminant1_t;
    776 
    777 // ANDROID_SENSOR_TEST_PATTERN_MODE
    778 typedef enum camera_metadata_enum_android_sensor_test_pattern_mode {
    779     ANDROID_SENSOR_TEST_PATTERN_MODE_OFF,
    780     ANDROID_SENSOR_TEST_PATTERN_MODE_SOLID_COLOR,
    781     ANDROID_SENSOR_TEST_PATTERN_MODE_COLOR_BARS,
    782     ANDROID_SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY,
    783     ANDROID_SENSOR_TEST_PATTERN_MODE_PN9,
    784     ANDROID_SENSOR_TEST_PATTERN_MODE_CUSTOM1                    = 256,
    785 } camera_metadata_enum_android_sensor_test_pattern_mode_t;
    786 
    787 
    788 // ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
    789 typedef enum camera_metadata_enum_android_sensor_info_color_filter_arrangement {
    790     ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB,
    791     ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG,
    792     ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG,
    793     ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR,
    794     ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB,
    795 } camera_metadata_enum_android_sensor_info_color_filter_arrangement_t;
    796 
    797 // ANDROID_SENSOR_INFO_TIMESTAMP_SOURCE
    798 typedef enum camera_metadata_enum_android_sensor_info_timestamp_source {
    799     ANDROID_SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN,
    800     ANDROID_SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME,
    801 } camera_metadata_enum_android_sensor_info_timestamp_source_t;
    802 
    803 // ANDROID_SENSOR_INFO_LENS_SHADING_APPLIED
    804 typedef enum camera_metadata_enum_android_sensor_info_lens_shading_applied {
    805     ANDROID_SENSOR_INFO_LENS_SHADING_APPLIED_FALSE,
    806     ANDROID_SENSOR_INFO_LENS_SHADING_APPLIED_TRUE,
    807 } camera_metadata_enum_android_sensor_info_lens_shading_applied_t;
    808 
    809 
    810 // ANDROID_SHADING_MODE
    811 typedef enum camera_metadata_enum_android_shading_mode {
    812     ANDROID_SHADING_MODE_OFF,
    813     ANDROID_SHADING_MODE_FAST,
    814     ANDROID_SHADING_MODE_HIGH_QUALITY,
    815 } camera_metadata_enum_android_shading_mode_t;
    816 
    817 
    818 // ANDROID_STATISTICS_FACE_DETECT_MODE
    819 typedef enum camera_metadata_enum_android_statistics_face_detect_mode {
    820     ANDROID_STATISTICS_FACE_DETECT_MODE_OFF,
    821     ANDROID_STATISTICS_FACE_DETECT_MODE_SIMPLE,
    822     ANDROID_STATISTICS_FACE_DETECT_MODE_FULL,
    823 } camera_metadata_enum_android_statistics_face_detect_mode_t;
    824 
    825 // ANDROID_STATISTICS_HISTOGRAM_MODE
    826 typedef enum camera_metadata_enum_android_statistics_histogram_mode {
    827     ANDROID_STATISTICS_HISTOGRAM_MODE_OFF,
    828     ANDROID_STATISTICS_HISTOGRAM_MODE_ON,
    829 } camera_metadata_enum_android_statistics_histogram_mode_t;
    830 
    831 // ANDROID_STATISTICS_SHARPNESS_MAP_MODE
    832 typedef enum camera_metadata_enum_android_statistics_sharpness_map_mode {
    833     ANDROID_STATISTICS_SHARPNESS_MAP_MODE_OFF,
    834     ANDROID_STATISTICS_SHARPNESS_MAP_MODE_ON,
    835 } camera_metadata_enum_android_statistics_sharpness_map_mode_t;
    836 
    837 // ANDROID_STATISTICS_HOT_PIXEL_MAP_MODE
    838 typedef enum camera_metadata_enum_android_statistics_hot_pixel_map_mode {
    839     ANDROID_STATISTICS_HOT_PIXEL_MAP_MODE_OFF,
    840     ANDROID_STATISTICS_HOT_PIXEL_MAP_MODE_ON,
    841 } camera_metadata_enum_android_statistics_hot_pixel_map_mode_t;
    842 
    843 // ANDROID_STATISTICS_SCENE_FLICKER
    844 typedef enum camera_metadata_enum_android_statistics_scene_flicker {
    845     ANDROID_STATISTICS_SCENE_FLICKER_NONE,
    846     ANDROID_STATISTICS_SCENE_FLICKER_50HZ,
    847     ANDROID_STATISTICS_SCENE_FLICKER_60HZ,
    848 } camera_metadata_enum_android_statistics_scene_flicker_t;
    849 
    850 // ANDROID_STATISTICS_LENS_SHADING_MAP_MODE
    851 typedef enum camera_metadata_enum_android_statistics_lens_shading_map_mode {
    852     ANDROID_STATISTICS_LENS_SHADING_MAP_MODE_OFF,
    853     ANDROID_STATISTICS_LENS_SHADING_MAP_MODE_ON,
    854 } camera_metadata_enum_android_statistics_lens_shading_map_mode_t;
    855 
    856 
    857 
    858 // ANDROID_TONEMAP_MODE
    859 typedef enum camera_metadata_enum_android_tonemap_mode {
    860     ANDROID_TONEMAP_MODE_CONTRAST_CURVE,
    861     ANDROID_TONEMAP_MODE_FAST,
    862     ANDROID_TONEMAP_MODE_HIGH_QUALITY,
    863     ANDROID_TONEMAP_MODE_GAMMA_VALUE,
    864     ANDROID_TONEMAP_MODE_PRESET_CURVE,
    865 } camera_metadata_enum_android_tonemap_mode_t;
    866 
    867 // ANDROID_TONEMAP_PRESET_CURVE
    868 typedef enum camera_metadata_enum_android_tonemap_preset_curve {
    869     ANDROID_TONEMAP_PRESET_CURVE_SRGB,
    870     ANDROID_TONEMAP_PRESET_CURVE_REC709,
    871 } camera_metadata_enum_android_tonemap_preset_curve_t;
    872 
    873 
    874 // ANDROID_LED_TRANSMIT
    875 typedef enum camera_metadata_enum_android_led_transmit {
    876     ANDROID_LED_TRANSMIT_OFF,
    877     ANDROID_LED_TRANSMIT_ON,
    878 } camera_metadata_enum_android_led_transmit_t;
    879 
    880 // ANDROID_LED_AVAILABLE_LEDS
    881 typedef enum camera_metadata_enum_android_led_available_leds {
    882     ANDROID_LED_AVAILABLE_LEDS_TRANSMIT,
    883 } camera_metadata_enum_android_led_available_leds_t;
    884 
    885 
    886 // ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL
    887 typedef enum camera_metadata_enum_android_info_supported_hardware_level {
    888     ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED,
    889     ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_FULL,
    890     ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY,
    891     ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_3,
    892 } camera_metadata_enum_android_info_supported_hardware_level_t;
    893 
    894 
    895 // ANDROID_BLACK_LEVEL_LOCK
    896 typedef enum camera_metadata_enum_android_black_level_lock {
    897     ANDROID_BLACK_LEVEL_LOCK_OFF,
    898     ANDROID_BLACK_LEVEL_LOCK_ON,
    899 } camera_metadata_enum_android_black_level_lock_t;
    900 
    901 
    902 // ANDROID_SYNC_FRAME_NUMBER
    903 typedef enum camera_metadata_enum_android_sync_frame_number {
    904     ANDROID_SYNC_FRAME_NUMBER_CONVERGING                        = -1,
    905     ANDROID_SYNC_FRAME_NUMBER_UNKNOWN                           = -2,
    906 } camera_metadata_enum_android_sync_frame_number_t;
    907 
    908 // ANDROID_SYNC_MAX_LATENCY
    909 typedef enum camera_metadata_enum_android_sync_max_latency {
    910     ANDROID_SYNC_MAX_LATENCY_PER_FRAME_CONTROL                  = 0,
    911     ANDROID_SYNC_MAX_LATENCY_UNKNOWN                            = -1,
    912 } camera_metadata_enum_android_sync_max_latency_t;
    913 
    914 
    915 
    916 // ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS
    917 typedef enum camera_metadata_enum_android_depth_available_depth_stream_configurations {
    918     ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT,
    919     ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_INPUT,
    920 } camera_metadata_enum_android_depth_available_depth_stream_configurations_t;
    921 
    922 // ANDROID_DEPTH_DEPTH_IS_EXCLUSIVE
    923 typedef enum camera_metadata_enum_android_depth_depth_is_exclusive {
    924     ANDROID_DEPTH_DEPTH_IS_EXCLUSIVE_FALSE,
    925     ANDROID_DEPTH_DEPTH_IS_EXCLUSIVE_TRUE,
    926 } camera_metadata_enum_android_depth_depth_is_exclusive_t;
    927 
    928 
    929