Camera2: Add metadata keys and enum values
- Insert metadata enum ints into CameraMetadata
- Insert metadata Keys into relevant files
- Remove some dead code in CameraMetadata
Generated from /system/media/camera/docs.
Change-Id: I3d864ad8c7add5f35ca740860cb2883d54a0791e
diff --git a/core/java/android/hardware/camera2/CaptureResult.java b/core/java/android/hardware/camera2/CaptureResult.java
index 11c991a..d5bb8b3 100644
--- a/core/java/android/hardware/camera2/CaptureResult.java
+++ b/core/java/android/hardware/camera2/CaptureResult.java
@@ -34,73 +34,6 @@
*
*/
public final class CaptureResult extends CameraMetadata {
-
- /**
- * The timestamp representing the start of image capture, in nanoseconds.
- * This corresponds to the timestamp available through
- * {@link android.graphics.SurfaceTexture#getTimestamp SurfaceTexture.getTimestamp()}
- * or {@link android.media.Image#getTimestamp Image.getTimestamp()} for this
- * capture's image data.
- */
- public static final Key<Long> SENSOR_TIMESTAMP =
- new Key<Long>("android.sensor.timestamp", Long.TYPE);
-
- /**
- * The state of the camera device's auto-exposure algorithm. One of the
- * CONTROL_AE_STATE_* enumerations.
- */
- public static final Key<Integer> CONTROL_AE_STATE =
- new Key<Integer>("android.control.aeState", Integer.TYPE);
-
- /**
- * The auto-exposure algorithm is inactive.
- * @see CONTROL_AE_STATE
- */
- public static final int CONTROL_AE_STATE_INACTIVE = 0;
-
- /**
- * The auto-exposure algorithm is currently searching for proper exposure.
- * @see CONTROL_AE_STATE
- */
- public static final int CONTROL_AE_STATE_SEARCHING = 1;
-
- /**
- * The auto-exposure algorithm has reached proper exposure values for the
- * current scene.
- * @see CONTROL_AE_STATE
- */
- public static final int CONTROL_AE_STATE_CONVERGED = 2;
-
- /**
- * The auto-exposure algorithm has been locked to its current values.
- * @see CONTROL_AE_STATE
- */
- public static final int CONTROL_AE_STATE_LOCKED = 3;
-
- /**
- * The auto-exposure algorithm has reached proper exposure values as with
- * CONTROL_AE_STATE_CONVERGED, but the scene is too dark to take a good
- * quality image without firing the camera flash.
- * @see CONTROL_AE_STATE
- */
- public static final int CONTROL_AE_STATE_FLASH_REQUIRED = 4;
-
- /**
- * The precapture sequence of the auto-exposure algorithm has been triggered,
- * and is underway.
- * @see CONTROL_AE_STATE
- */
- public static final int CONTROL_AE_STATE_PRECAPTURE =5;
-
- /**
- * The list of faces detected in this capture. Available if face detection
- * was enabled for this capture
- */
- public static final Key<Face[]> STATISTICS_DETECTED_FACES =
- new Key<Face[]>("android.statistics.faces", Face[].class);
-
- // TODO: Many many more
-
/**
* @hide
*/
@@ -114,7 +47,7 @@
/**
* <p>Bounds of the face. A rectangle relative to the sensor's
- * {@link CameraProperties#SENSOR_ACTIVE_ARRAY_SIZE}, with (0,0)
+ * {@link CameraProperties#SENSOR_INFO_ACTIVE_ARRAY_SIZE}, with (0,0)
* representing the top-left corner of the active array rectangle.</p>
*/
public Rect getBounds() {
@@ -189,4 +122,807 @@
private Point mRightEye;
private Point mMouth;
}
+
+ /*@O~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
+ * The key entries below this point are generated from metadata
+ * definitions in /system/media/camera/docs. Do not modify by hand or
+ * modify the comment blocks at the start or end.
+ *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/
+
+ /**
+ * <p>
+ * A color transform matrix to use to transform
+ * from sensor RGB color space to output linear sRGB color space
+ * </p>
+ * <p>
+ * This matrix is either set by HAL when the request
+ * android.colorCorrection.mode is not TRANSFORM_MATRIX, or
+ * directly by the application in the request when the
+ * androird.colorCorrection.mode is TRANSFORM_MATRIX.
+ * In the latter case, the HAL may round the matrix to account
+ * for precision issues; the final rounded matrix should be
+ * reported back in this matrix result metadata.
+ * </p>
+ */
+ public static final Key<Rational[]> COLOR_CORRECTION_TRANSFORM =
+ new Key<Rational[]>("android.colorCorrection.transform", Rational[].class);
+
+ /**
+ * <p>
+ * Gains applying to Bayer color channels for
+ * white-balance
+ * </p>
+ * <p>
+ * The 4-channel white-balance gains are defined in
+ * the order of [R G_even G_odd B], where G_even is the gain
+ * for green pixels on even rows of the output, and G_odd
+ * is the gain for greenpixels on the odd rows. if a HAL
+ * does not support a separate gain for even/odd green channels,
+ * it should use the G_even value,and write G_odd equal to
+ * G_even in the output result metadata.
+ * </p><p>
+ * The ouput should be the gains actually applied by the HAL to
+ * the current frame.
+ * </p>
+ */
+ public static final Key<float[]> COLOR_CORRECTION_GAINS =
+ new Key<float[]>("android.colorCorrection.gains", float[].class);
+
+ /**
+ * <p>
+ * The ID sent with the latest
+ * CAMERA2_TRIGGER_PRECAPTURE_METERING call
+ * </p>
+ * <p>
+ * Must be 0 if no
+ * CAMERA2_TRIGGER_PRECAPTURE_METERING trigger received yet
+ * by HAL. Always updated even if AE algorithm ignores the
+ * trigger
+ * </p>
+ *
+ * @hide
+ */
+ public static final Key<Integer> CONTROL_AE_PRECAPTURE_ID =
+ new Key<Integer>("android.control.aePrecaptureId", int.class);
+
+ /**
+ * <p>
+ * List of areas to use for
+ * metering
+ * </p>
+ * <p>
+ * Each area is a rectangle plus weight: xmin, ymin,
+ * xmax, ymax, weight.
+ * </p><p>
+ * The coordinate system is based on the active pixel array,
+ * with (0,0) being the top-left of the active pixel array, and
+ * (android.sensor.info.activeArraySize.width,
+ * android.sensor.info.activeArraySize.height) being the
+ * bottom-right point of the active pixel array. The weight
+ * should be nonnegative.
+ * </p><p>
+ * If all regions have 0 weight, then no specific metering area
+ * needs to be used by the HAL. If the metering region is
+ * outside the current android.scaler.cropRegion, the HAL
+ * should ignore the sections outside the region and output the
+ * used sections in the frame metadata
+ * </p>
+ */
+ public static final Key<int[]> CONTROL_AE_REGIONS =
+ new Key<int[]>("android.control.aeRegions", int[].class);
+
+ /**
+ * <p>
+ * Current state of AE algorithm
+ * </p>
+ * <p>
+ * Whenever the AE algorithm state changes, a
+ * MSG_AUTOEXPOSURE notification must be send if a
+ * notification callback is registered.
+ * </p>
+ * @see #CONTROL_AE_STATE_INACTIVE
+ * @see #CONTROL_AE_STATE_SEARCHING
+ * @see #CONTROL_AE_STATE_CONVERGED
+ * @see #CONTROL_AE_STATE_LOCKED
+ * @see #CONTROL_AE_STATE_FLASH_REQUIRED
+ * @see #CONTROL_AE_STATE_PRECAPTURE
+ */
+ public static final Key<Integer> CONTROL_AE_STATE =
+ new Key<Integer>("android.control.aeState", int.class);
+
+ /**
+ * <p>
+ * Whether AF is currently enabled, and what
+ * mode it is set to
+ * </p>
+ * @see #CONTROL_AF_MODE_OFF
+ * @see #CONTROL_AF_MODE_AUTO
+ * @see #CONTROL_AF_MODE_MACRO
+ * @see #CONTROL_AF_MODE_CONTINUOUS_VIDEO
+ * @see #CONTROL_AF_MODE_CONTINUOUS_PICTURE
+ * @see #CONTROL_AF_MODE_EDOF
+ */
+ public static final Key<Integer> CONTROL_AF_MODE =
+ new Key<Integer>("android.control.afMode", int.class);
+
+ /**
+ * <p>
+ * List of areas to use for focus
+ * estimation
+ * </p>
+ * <p>
+ * Each area is a rectangle plus weight: xmin, ymin,
+ * xmax, ymax, weight.
+ * </p><p>
+ * The coordinate system is based on the active pixel array,
+ * with (0,0) being the top-left of the active pixel array, and
+ * (android.sensor.info.activeArraySize.width,
+ * android.sensor.info.activeArraySize.height) being the
+ * bottom-right point of the active pixel array. The weight
+ * should be nonnegative.
+ * </p><p>
+ * If all regions have 0 weight, then no specific focus area
+ * needs to be used by the HAL. If the focusing region is
+ * outside the current android.scaler.cropRegion, the HAL
+ * should ignore the sections outside the region and output the
+ * used sections in the frame metadata
+ * </p>
+ */
+ public static final Key<int[]> CONTROL_AF_REGIONS =
+ new Key<int[]>("android.control.afRegions", int[].class);
+
+ /**
+ * <p>
+ * Current state of AF algorithm
+ * </p>
+ * <p>
+ * Whenever the AF algorithm state changes, a
+ * MSG_AUTOFOCUS notification must be send if a notification
+ * callback is registered.
+ * </p>
+ * @see #CONTROL_AF_STATE_INACTIVE
+ * @see #CONTROL_AF_STATE_PASSIVE_SCAN
+ * @see #CONTROL_AF_STATE_PASSIVE_FOCUSED
+ * @see #CONTROL_AF_STATE_ACTIVE_SCAN
+ * @see #CONTROL_AF_STATE_FOCUSED_LOCKED
+ * @see #CONTROL_AF_STATE_NOT_FOCUSED_LOCKED
+ */
+ public static final Key<Integer> CONTROL_AF_STATE =
+ new Key<Integer>("android.control.afState", int.class);
+
+ /**
+ * <p>
+ * The ID sent with the latest
+ * CAMERA2_TRIGGER_AUTOFOCUS call
+ * </p>
+ * <p>
+ * Must be 0 if no CAMERA2_TRIGGER_AUTOFOCUS trigger
+ * received yet by HAL. Always updated even if AF algorithm
+ * ignores the trigger
+ * </p>
+ *
+ * @hide
+ */
+ public static final Key<Integer> CONTROL_AF_TRIGGER_ID =
+ new Key<Integer>("android.control.afTriggerId", int.class);
+
+ /**
+ * <p>
+ * Whether AWB is currently setting the color
+ * transform fields, and what its illumination target
+ * is
+ * </p>
+ * <p>
+ * [BC - AWB lock,AWB modes]
+ * </p>
+ * @see #CONTROL_AWB_MODE_OFF
+ * @see #CONTROL_AWB_MODE_AUTO
+ * @see #CONTROL_AWB_MODE_INCANDESCENT
+ * @see #CONTROL_AWB_MODE_FLUORESCENT
+ * @see #CONTROL_AWB_MODE_WARM_FLUORESCENT
+ * @see #CONTROL_AWB_MODE_DAYLIGHT
+ * @see #CONTROL_AWB_MODE_CLOUDY_DAYLIGHT
+ * @see #CONTROL_AWB_MODE_TWILIGHT
+ * @see #CONTROL_AWB_MODE_SHADE
+ */
+ public static final Key<Integer> CONTROL_AWB_MODE =
+ new Key<Integer>("android.control.awbMode", int.class);
+
+ /**
+ * <p>
+ * List of areas to use for illuminant
+ * estimation
+ * </p>
+ * <p>
+ * Only used in AUTO mode.
+ * </p><p>
+ * Each area is a rectangle plus weight: xmin, ymin, xmax,
+ * ymax, weight. The coordinate system is based on the active
+ * pixel array, with (0,0) being the top-left of the active
+ * pixel array, and (android.sensor.info.activeArraySize.width,
+ * android.sensor.info.activeArraySize.height) being the
+ * bottom-right point of the active pixel array. The weight
+ * should be nonnegative.
+ * </p><p>
+ * If all regions have 0 weight, then no specific metering area
+ * needs to be used by the HAL. If the metering region is
+ * outside the current android.scaler.cropRegion, the HAL
+ * should ignore the sections outside the region and output the
+ * used sections in the frame metadata
+ * </p>
+ */
+ public static final Key<int[]> CONTROL_AWB_REGIONS =
+ new Key<int[]>("android.control.awbRegions", int[].class);
+
+ /**
+ * <p>
+ * Current state of AWB algorithm
+ * </p>
+ * <p>
+ * Whenever the AWB algorithm state changes, a
+ * MSG_AUTOWHITEBALANCE notification must be send if a
+ * notification callback is registered.
+ * </p>
+ * @see #CONTROL_AWB_STATE_INACTIVE
+ * @see #CONTROL_AWB_STATE_SEARCHING
+ * @see #CONTROL_AWB_STATE_CONVERGED
+ * @see #CONTROL_AWB_STATE_LOCKED
+ */
+ public static final Key<Integer> CONTROL_AWB_STATE =
+ new Key<Integer>("android.control.awbState", int.class);
+
+ /**
+ * <p>
+ * Overall mode of 3A control
+ * routines
+ * </p>
+ * @see #CONTROL_MODE_OFF
+ * @see #CONTROL_MODE_AUTO
+ * @see #CONTROL_MODE_USE_SCENE_MODE
+ */
+ public static final Key<Integer> CONTROL_MODE =
+ new Key<Integer>("android.control.mode", int.class);
+
+ /**
+ * <p>
+ * Operation mode for edge
+ * enhancement
+ * </p>
+ * @see #EDGE_MODE_OFF
+ * @see #EDGE_MODE_FAST
+ * @see #EDGE_MODE_HIGH_QUALITY
+ */
+ public static final Key<Integer> EDGE_MODE =
+ new Key<Integer>("android.edge.mode", int.class);
+
+ /**
+ * <p>
+ * Select flash operation mode
+ * </p>
+ * @see #FLASH_MODE_OFF
+ * @see #FLASH_MODE_SINGLE
+ * @see #FLASH_MODE_TORCH
+ */
+ public static final Key<Integer> FLASH_MODE =
+ new Key<Integer>("android.flash.mode", int.class);
+
+ /**
+ * <p>
+ * Current state of the flash
+ * unit
+ * </p>
+ * @see #FLASH_STATE_UNAVAILABLE
+ * @see #FLASH_STATE_CHARGING
+ * @see #FLASH_STATE_READY
+ * @see #FLASH_STATE_FIRED
+ */
+ public static final Key<Integer> FLASH_STATE =
+ new Key<Integer>("android.flash.state", int.class);
+
+ /**
+ * <p>
+ * GPS coordinates to include in output JPEG
+ * EXIF
+ * </p>
+ */
+ public static final Key<double[]> JPEG_GPS_COORDINATES =
+ new Key<double[]>("android.jpeg.gpsCoordinates", double[].class);
+
+ /**
+ * <p>
+ * 32 characters describing GPS algorithm to
+ * include in EXIF
+ * </p>
+ */
+ public static final Key<String> JPEG_GPS_PROCESSING_METHOD =
+ new Key<String>("android.jpeg.gpsProcessingMethod", String.class);
+
+ /**
+ * <p>
+ * Time GPS fix was made to include in
+ * EXIF
+ * </p>
+ */
+ public static final Key<Long> JPEG_GPS_TIMESTAMP =
+ new Key<Long>("android.jpeg.gpsTimestamp", long.class);
+
+ /**
+ * <p>
+ * Orientation of JPEG image to
+ * write
+ * </p>
+ */
+ public static final Key<Integer> JPEG_ORIENTATION =
+ new Key<Integer>("android.jpeg.orientation", int.class);
+
+ /**
+ * <p>
+ * Compression quality of the final JPEG
+ * image
+ * </p>
+ * <p>
+ * 85-95 is typical usage range
+ * </p>
+ */
+ public static final Key<Byte> JPEG_QUALITY =
+ new Key<Byte>("android.jpeg.quality", byte.class);
+
+ /**
+ * <p>
+ * Compression quality of JPEG
+ * thumbnail
+ * </p>
+ */
+ public static final Key<Byte> JPEG_THUMBNAIL_QUALITY =
+ new Key<Byte>("android.jpeg.thumbnailQuality", byte.class);
+
+ /**
+ * <p>
+ * Resolution of embedded JPEG
+ * thumbnail
+ * </p>
+ */
+ public static final Key<android.hardware.camera2.Size> JPEG_THUMBNAIL_SIZE =
+ new Key<android.hardware.camera2.Size>("android.jpeg.thumbnailSize", android.hardware.camera2.Size.class);
+
+ /**
+ * <p>
+ * Size of the lens aperture
+ * </p>
+ * <p>
+ * Will not be supported on most devices. Can only
+ * pick from supported list
+ * </p>
+ */
+ public static final Key<Float> LENS_APERTURE =
+ new Key<Float>("android.lens.aperture", float.class);
+
+ /**
+ * <p>
+ * State of lens neutral density
+ * filter(s)
+ * </p>
+ * <p>
+ * Will not be supported on most devices. Can only
+ * pick from supported list
+ * </p>
+ */
+ public static final Key<Float> LENS_FILTER_DENSITY =
+ new Key<Float>("android.lens.filterDensity", float.class);
+
+ /**
+ * <p>
+ * Lens optical zoom setting
+ * </p>
+ * <p>
+ * Will not be supported on most devices.
+ * </p>
+ */
+ public static final Key<Float> LENS_FOCAL_LENGTH =
+ new Key<Float>("android.lens.focalLength", float.class);
+
+ /**
+ * <p>
+ * Distance to plane of sharpest focus,
+ * measured from frontmost surface of the lens
+ * </p>
+ * <p>
+ * Should be zero for fixed-focus cameras
+ * </p>
+ */
+ public static final Key<Float> LENS_FOCUS_DISTANCE =
+ new Key<Float>("android.lens.focusDistance", float.class);
+
+ /**
+ * <p>
+ * The range of scene distances that are in
+ * sharp focus (depth of field)
+ * </p>
+ * <p>
+ * If variable focus not supported, can still report
+ * fixed depth of field range
+ * </p>
+ */
+ public static final Key<Float> LENS_FOCUS_RANGE =
+ new Key<Float>("android.lens.focusRange", float.class);
+
+ /**
+ * <p>
+ * Whether optical image stabilization is
+ * enabled.
+ * </p>
+ * <p>
+ * Will not be supported on most devices.
+ * </p>
+ * @see #LENS_OPTICAL_STABILIZATION_MODE_OFF
+ * @see #LENS_OPTICAL_STABILIZATION_MODE_ON
+ */
+ public static final Key<Integer> LENS_OPTICAL_STABILIZATION_MODE =
+ new Key<Integer>("android.lens.opticalStabilizationMode", int.class);
+
+ /**
+ * <p>
+ * Current lens status
+ * </p>
+ * @see #LENS_STATE_STATIONARY
+ */
+ public static final Key<Integer> LENS_STATE =
+ new Key<Integer>("android.lens.state", int.class);
+
+ /**
+ * <p>
+ * Mode of operation for the noise reduction
+ * algorithm
+ * </p>
+ * @see #NOISE_REDUCTION_MODE_OFF
+ * @see #NOISE_REDUCTION_MODE_FAST
+ * @see #NOISE_REDUCTION_MODE_HIGH_QUALITY
+ */
+ public static final Key<Integer> NOISE_REDUCTION_MODE =
+ new Key<Integer>("android.noiseReduction.mode", int.class);
+
+ /**
+ * <p>
+ * Number of frames captured since
+ * open()
+ * </p>
+ * <p>
+ * Reset on release()
+ * </p>
+ */
+ public static final Key<Integer> REQUEST_FRAME_COUNT =
+ new Key<Integer>("android.request.frameCount", int.class);
+
+ /**
+ * <p>
+ * An application-specified ID for the current
+ * request. Must be maintained unchanged in output
+ * frame
+ * </p>
+ *
+ * @hide
+ */
+ public static final Key<Integer> REQUEST_ID =
+ new Key<Integer>("android.request.id", int.class);
+
+ /**
+ * <p>
+ * (x, y, width, height).
+ * </p><p>
+ * A rectangle with the top-level corner of (x,y) and size
+ * (width, height). The region of the sensor that is used for
+ * output. Each stream must use this rectangle to produce its
+ * output, cropping to a smaller region if necessary to
+ * maintain the stream's aspect ratio.
+ * </p><p>
+ * HAL2.x uses only (x, y, width)
+ * </p>
+ * <p>
+ * Any additional per-stream cropping must be done to
+ * maximize the final pixel area of the stream.
+ * </p><p>
+ * For example, if the crop region is set to a 4:3 aspect
+ * ratio, then 4:3 streams should use the exact crop
+ * region. 16:9 streams should further crop vertically
+ * (letterbox).
+ * </p><p>
+ * Conversely, if the crop region is set to a 16:9, then 4:3
+ * outputs should crop horizontally (pillarbox), and 16:9
+ * streams should match exactly. These additional crops must
+ * be centered within the crop region.
+ * </p><p>
+ * The output streams must maintain square pixels at all
+ * times, no matter what the relative aspect ratios of the
+ * crop region and the stream are. Negative values for
+ * corner are allowed for raw output if full pixel array is
+ * larger than active pixel array. Width and height may be
+ * rounded to nearest larger supportable width, especially
+ * for raw output, where only a few fixed scales may be
+ * possible. The width and height of the crop region cannot
+ * be set to be smaller than floor( activeArraySize.width /
+ * android.scaler.maxDigitalZoom ) and floor(
+ * activeArraySize.height / android.scaler.maxDigitalZoom),
+ * respectively.
+ * </p>
+ */
+ public static final Key<android.graphics.Rect> SCALER_CROP_REGION =
+ new Key<android.graphics.Rect>("android.scaler.cropRegion", android.graphics.Rect.class);
+
+ /**
+ * <p>
+ * Duration each pixel is exposed to
+ * light
+ * </p>
+ * <p>
+ * 1/10000 - 30 sec range. No bulb mode
+ * </p>
+ */
+ public static final Key<Long> SENSOR_EXPOSURE_TIME =
+ new Key<Long>("android.sensor.exposureTime", long.class);
+
+ /**
+ * <p>
+ * Duration from start of frame exposure to
+ * start of next frame exposure
+ * </p>
+ * <p>
+ * Exposure time has priority, so duration is set to
+ * max(duration, exposure time + overhead)
+ * </p>
+ */
+ public static final Key<Long> SENSOR_FRAME_DURATION =
+ new Key<Long>("android.sensor.frameDuration", long.class);
+
+ /**
+ * <p>
+ * Gain applied to image data. Must be
+ * implemented through analog gain only if set to values
+ * below 'maximum analog sensitivity'.
+ * </p>
+ * <p>
+ * ISO 12232:2006 REI method
+ * </p>
+ */
+ public static final Key<Integer> SENSOR_SENSITIVITY =
+ new Key<Integer>("android.sensor.sensitivity", int.class);
+
+ /**
+ * <p>
+ * Time at start of exposure of first
+ * row
+ * </p>
+ * <p>
+ * Monotonic, should be synced to other timestamps in
+ * system
+ * </p>
+ */
+ public static final Key<Long> SENSOR_TIMESTAMP =
+ new Key<Long>("android.sensor.timestamp", long.class);
+
+ /**
+ * <p>
+ * State of the face detector
+ * unit
+ * </p>
+ * <p>
+ * Whether face detection is enabled, and whether it
+ * should output just the basic fields or the full set of
+ * fields. Value must be one of the
+ * android.statistics.info.availableFaceDetectModes.
+ * </p>
+ * @see #STATISTICS_FACE_DETECT_MODE_OFF
+ * @see #STATISTICS_FACE_DETECT_MODE_SIMPLE
+ * @see #STATISTICS_FACE_DETECT_MODE_FULL
+ */
+ public static final Key<Integer> STATISTICS_FACE_DETECT_MODE =
+ new Key<Integer>("android.statistics.faceDetectMode", int.class);
+
+ /**
+ * <p>
+ * List of unique IDs for detected
+ * faces
+ * </p>
+ * <p>
+ * Only available if faceDetectMode == FULL
+ * </p>
+ */
+ public static final Key<int[]> STATISTICS_FACE_IDS =
+ new Key<int[]>("android.statistics.faceIds", int[].class);
+
+ /**
+ * <p>
+ * List of landmarks for detected
+ * faces
+ * </p>
+ * <p>
+ * Only available if faceDetectMode == FULL
+ * </p>
+ */
+ public static final Key<int[]> STATISTICS_FACE_LANDMARKS =
+ new Key<int[]>("android.statistics.faceLandmarks", int[].class);
+
+ /**
+ * <p>
+ * List of the bounding rectangles for detected
+ * faces
+ * </p>
+ * <p>
+ * Only available if faceDetectMode != OFF
+ * </p>
+ */
+ public static final Key<android.graphics.Rect[]> STATISTICS_FACE_RECTANGLES =
+ new Key<android.graphics.Rect[]>("android.statistics.faceRectangles", android.graphics.Rect[].class);
+
+ /**
+ * <p>
+ * List of the face confidence scores for
+ * detected faces
+ * </p>
+ * <p>
+ * Only available if faceDetectMode != OFF
+ * </p>
+ */
+ public static final Key<byte[]> STATISTICS_FACE_SCORES =
+ new Key<byte[]>("android.statistics.faceScores", byte[].class);
+
+ /**
+ * <p>
+ * A low-resolution map of lens shading, per
+ * color channel
+ * </p>
+ * <p>
+ * Assume bilinear interpolation of map. The least
+ * shaded section of the image should have a gain factor
+ * of 1; all other sections should have gains above 1.
+ * the map should be on the order of 30-40 rows, and
+ * must be smaller than 64x64.
+ * </p>
+ */
+ public static final Key<float[]> STATISTICS_LENS_SHADING_MAP =
+ new Key<float[]>("android.statistics.lensShadingMap", float[].class);
+
+ /**
+ * <p>
+ * The best-fit color channel gains calculated
+ * by the HAL's statistics units for the current output frame
+ * </p>
+ * <p>
+ * This may be different than the gains used for this frame,
+ * since statistics processing on data from a new frame
+ * typically completes after the transform has already been
+ * applied to that frame.
+ * </p><p>
+ * The 4 channel gains are defined in Bayer domain,
+ * see android.colorCorrection.gains for details.
+ * </p>
+ */
+ public static final Key<float[]> STATISTICS_PREDICTED_COLOR_GAINS =
+ new Key<float[]>("android.statistics.predictedColorGains", float[].class);
+
+ /**
+ * <p>
+ * The best-fit color transform matrix estimate
+ * calculated by the HAL's statistics units for the current
+ * output frame
+ * </p>
+ * <p>
+ * The HAL must provide the estimate from its
+ * statistics unit on the white balance transforms to use
+ * for the next frame. These are the values the HAL believes
+ * are the best fit for the current output frame. This may
+ * be different than the transform used for this frame, since
+ * statistics processing on data from a new frame typically
+ * completes after the transform has already been applied to
+ * that frame.
+ * </p><p>
+ * These estimates must be provided for all frames, even if
+ * capture settings and color transforms are set by the application.
+ * </p>
+ */
+ public static final Key<Rational[]> STATISTICS_PREDICTED_COLOR_TRANSFORM =
+ new Key<Rational[]>("android.statistics.predictedColorTransform", Rational[].class);
+
+ /**
+ * <p>
+ * The HAL estimated scene illumination lighting
+ * frequency
+ * </p>
+ * <p>
+ * Report NONE if there doesn't appear to be flickering
+ * illumination
+ * </p>
+ * @see #STATISTICS_SCENE_FLICKER_NONE
+ * @see #STATISTICS_SCENE_FLICKER_50HZ
+ * @see #STATISTICS_SCENE_FLICKER_60HZ
+ */
+ public static final Key<Integer> STATISTICS_SCENE_FLICKER =
+ new Key<Integer>("android.statistics.sceneFlicker", int.class);
+
+ /**
+ * <p>
+ * Table mapping blue input values to output
+ * values
+ * </p>
+ */
+ public static final Key<Float> TONEMAP_CURVE_BLUE =
+ new Key<Float>("android.tonemap.curveBlue", float.class);
+
+ /**
+ * <p>
+ * Table mapping green input values to output
+ * values
+ * </p>
+ */
+ public static final Key<Float> TONEMAP_CURVE_GREEN =
+ new Key<Float>("android.tonemap.curveGreen", float.class);
+
+ /**
+ * <p>
+ * Table mapping red input values to output
+ * values
+ * </p>
+ * <p>
+ * .The input range must be monotonically increasing
+ * with N, and values between entries should be linearly
+ * interpolated. For example, if the array is: [0.0, 0.0,
+ * 0.3, 0.5, 1.0, 1.0], then the input->output mapping
+ * for a few sample points would be: 0 -> 0, 0.15 ->
+ * 0.25, 0.3 -> 0.5, 0.5 -> 0.64
+ * </p>
+ */
+ public static final Key<float[]> TONEMAP_CURVE_RED =
+ new Key<float[]>("android.tonemap.curveRed", float[].class);
+
+ /**
+ * @see #TONEMAP_MODE_CONTRAST_CURVE
+ * @see #TONEMAP_MODE_FAST
+ * @see #TONEMAP_MODE_HIGH_QUALITY
+ */
+ public static final Key<Integer> TONEMAP_MODE =
+ new Key<Integer>("android.tonemap.mode", int.class);
+
+ /**
+ * <p>
+ * This LED is nominally used to indicate to the user
+ * that the camera is powered on and may be streaming images back to the
+ * Application Processor. In certain rare circumstances, the OS may
+ * disable this when video is processed locally and not transmitted to
+ * any untrusted applications.
+ * </p><p>
+ * In particular, the LED *must* always be on when the data could be
+ * transmitted off the device. The LED *should* always be on whenever
+ * data is stored locally on the device.
+ * </p><p>
+ * The LED *may* be off if a trusted application is using the data that
+ * doesn't violate the above rules.
+ * </p>
+ *
+ * @hide
+ */
+ public static final Key<Boolean> LED_TRANSMIT =
+ new Key<Boolean>("android.led.transmit", boolean.class);
+
+ /**
+ * <p>
+ * Whether black-level compensation is locked
+ * to its current values, or is free to vary
+ * </p>
+ * <p>
+ * When set to ON, the values used for black-level
+ * compensation must not change until the lock is set to
+ * OFF
+ * </p><p>
+ * Since changes to certain capture parameters (such as
+ * exposure time) may require resetting of black level
+ * compensation, the HAL must report whether setting the
+ * black level lock was successful in the output result
+ * metadata.
+ * </p>
+ */
+ public static final Key<Boolean> BLACK_LEVEL_LOCK =
+ new Key<Boolean>("android.blackLevel.lock", boolean.class);
+
+ /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
+ * End generated code
+ *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/
}