From 5f2a47f3dedfc7859457067d8cdcdbfc28ee08ac Mon Sep 17 00:00:00 2001 From: Zhijun He Date: Thu, 16 Jan 2014 15:44:41 -0800 Subject: [PATCH] Camera2: update metadata specs Change-Id: I0f2db931f923af6de281f1404142301d9cfe18ea --- .../hardware/camera2/CameraCharacteristics.java | 16 ++++----- .../android/hardware/camera2/CameraMetadata.java | 8 ++--- .../android/hardware/camera2/CaptureRequest.java | 42 +++++++++++----------- .../android/hardware/camera2/CaptureResult.java | 38 ++++++++++---------- 4 files changed, 52 insertions(+), 52 deletions(-) diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java index b5fd302f32e1..c546fce6b86d 100644 --- a/core/java/android/hardware/camera2/CameraCharacteristics.java +++ b/core/java/android/hardware/camera2/CameraCharacteristics.java @@ -227,9 +227,9 @@ public final class CameraCharacteristics extends CameraMetadata { * which enables application control of white balance, by using * {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform} and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}({@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode} must be set to TRANSFORM_MATRIX).

* - * @see CaptureRequest#CONTROL_AWB_MODE - * @see CaptureRequest#COLOR_CORRECTION_MODE * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM + * @see CaptureRequest#COLOR_CORRECTION_MODE + * @see CaptureRequest#CONTROL_AWB_MODE * @see CaptureRequest#COLOR_CORRECTION_GAINS */ public static final Key CONTROL_AWB_AVAILABLE_MODES = @@ -253,18 +253,18 @@ public final class CameraCharacteristics extends CameraMetadata { /** *

Supported resolutions for the JPEG thumbnail

- *

Below condiditions must be satisfied for this size list:

+ *

Below condiditions will be satisfied for this size list:

* * * @see CameraCharacteristics#SCALER_AVAILABLE_JPEG_SIZES diff --git a/core/java/android/hardware/camera2/CameraMetadata.java b/core/java/android/hardware/camera2/CameraMetadata.java index 02c8fee6526a..ef3e600f8368 100644 --- a/core/java/android/hardware/camera2/CameraMetadata.java +++ b/core/java/android/hardware/camera2/CameraMetadata.java @@ -318,8 +318,8 @@ public abstract class CameraMetadata { * device, along with android.flash.* fields, if there's * a flash unit for this camera device.

* - * @see CaptureRequest#SENSOR_EXPOSURE_TIME * @see CaptureRequest#SENSOR_FRAME_DURATION + * @see CaptureRequest#SENSOR_EXPOSURE_TIME * @see CaptureRequest#SENSOR_SENSITIVITY * @see CaptureRequest#CONTROL_AE_MODE */ @@ -334,8 +334,8 @@ public abstract class CameraMetadata { * application has control over the various * android.flash.* fields.

* - * @see CaptureRequest#SENSOR_EXPOSURE_TIME * @see CaptureRequest#SENSOR_FRAME_DURATION + * @see CaptureRequest#SENSOR_EXPOSURE_TIME * @see CaptureRequest#SENSOR_SENSITIVITY * @see CaptureRequest#CONTROL_AE_MODE */ @@ -351,8 +351,8 @@ public abstract class CameraMetadata { * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} field is set to * STILL_CAPTURE

* - * @see CaptureRequest#CONTROL_CAPTURE_INTENT * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER + * @see CaptureRequest#CONTROL_CAPTURE_INTENT * @see CaptureRequest#CONTROL_AE_MODE */ public static final int CONTROL_AE_MODE_ON_AUTO_FLASH = 2; @@ -367,8 +367,8 @@ public abstract class CameraMetadata { * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} field is set to * STILL_CAPTURE

* - * @see CaptureRequest#CONTROL_CAPTURE_INTENT * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER + * @see CaptureRequest#CONTROL_CAPTURE_INTENT * @see CaptureRequest#CONTROL_AE_MODE */ public static final int CONTROL_AE_MODE_ON_ALWAYS_FLASH = 3; diff --git a/core/java/android/hardware/camera2/CaptureRequest.java b/core/java/android/hardware/camera2/CaptureRequest.java index e759e04111ab..295ec232ebf2 100644 --- a/core/java/android/hardware/camera2/CaptureRequest.java +++ b/core/java/android/hardware/camera2/CaptureRequest.java @@ -399,9 +399,9 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { * issues. The {@link CaptureResult#STATISTICS_SCENE_FLICKER android.statistics.sceneFlicker} key can assist * the application in this.

* - * @see CameraCharacteristics#CONTROL_AE_AVAILABLE_ANTIBANDING_MODES - * @see CaptureResult#STATISTICS_SCENE_FLICKER * @see CaptureRequest#CONTROL_MODE + * @see CaptureResult#STATISTICS_SCENE_FLICKER + * @see CameraCharacteristics#CONTROL_AE_AVAILABLE_ANTIBANDING_MODES * @see CaptureRequest#CONTROL_AE_MODE * @see #CONTROL_AE_ANTIBANDING_MODE_OFF * @see #CONTROL_AE_ANTIBANDING_MODE_50HZ @@ -453,12 +453,12 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { * fields for a given capture will be available in its * CaptureResult.

* + * @see CaptureRequest#CONTROL_MODE * @see CaptureRequest#SENSOR_EXPOSURE_TIME * @see CaptureRequest#SENSOR_FRAME_DURATION * @see CaptureRequest#SENSOR_SENSITIVITY * @see CaptureRequest#FLASH_MODE * @see CameraCharacteristics#FLASH_INFO_AVAILABLE - * @see CaptureRequest#CONTROL_MODE * @see #CONTROL_AE_MODE_OFF * @see #CONTROL_AE_MODE_ON * @see #CONTROL_AE_MODE_ON_AUTO_FLASH @@ -605,9 +605,9 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { * routine is disabled. The camera device uses each particular illumination * target for white balance adjustment.

* - * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM - * @see CaptureRequest#COLOR_CORRECTION_MODE * @see CaptureRequest#CONTROL_MODE + * @see CaptureRequest#COLOR_CORRECTION_MODE + * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM * @see CaptureRequest#COLOR_CORRECTION_GAINS * @see #CONTROL_AWB_MODE_OFF * @see #CONTROL_AWB_MODE_AUTO @@ -686,14 +686,14 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { *

Overall mode of 3A control * routines

*

High-level 3A control. When set to OFF, all 3A control - * by the HAL is disabled. The application must set the fields for + * by the camera device is disabled. The application must set the fields for * capture parameters itself.

*

When set to AUTO, the individual algorithm controls in * android.control.* are in effect, such as {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}.

*

When set to USE_SCENE_MODE, the individual controls in - * android.control.* are mostly disabled, and the HAL implements + * android.control.* are mostly disabled, and the camera device implements * one of the scene mode settings (such as ACTION, SUNSET, or PARTY) - * as it wishes. The HAL scene mode 3A settings are provided by + * as it wishes. The camera device scene mode 3A settings are provided by * android.control.sceneModeOverrides.

* * @see CaptureRequest#CONTROL_AF_MODE @@ -747,10 +747,10 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { * enhancement

*

Edge/sharpness/detail enhancement. OFF means no * enhancement will be applied by the HAL.

- *

FAST/HIGH_QUALITY both mean HAL-determined enhancement + *

FAST/HIGH_QUALITY both mean camera device determined enhancement * will be applied. HIGH_QUALITY mode indicates that the - * HAL should use the highest-quality enhancement algorithms, - * even if it slows down capture rate. FAST means the HAL should + * camera device will use the highest-quality enhancement algorithms, + * even if it slows down capture rate. FAST means the camera device will * not slow down capture rate when applying edge enhancement.

* @see #EDGE_MODE_OFF * @see #EDGE_MODE_FAST @@ -813,8 +813,8 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { /** *

Resolution of embedded JPEG thumbnail

- *

When set to (0, 0) value, the JPEG EXIF must not contain thumbnail, - * but the captured JPEG must still be a valid image.

+ *

When set to (0, 0) value, the JPEG EXIF will not contain thumbnail, + * but the captured JPEG will still be a valid image.

*

When a jpeg image capture is issued, the thumbnail size selected should have * the same aspect ratio as the jpeg image.

*/ @@ -839,9 +839,9 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { * auto-exposure algorithm, the overridden values are then provided * back to the user in the corresponding result.

* - * @see CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES - * @see CaptureRequest#SENSOR_EXPOSURE_TIME * @see CaptureRequest#SENSOR_SENSITIVITY + * @see CaptureRequest#SENSOR_EXPOSURE_TIME + * @see CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES * @see CaptureRequest#CONTROL_AE_MODE */ public static final Key LENS_APERTURE = @@ -887,10 +887,10 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { * algorithm

*

Noise filtering control. OFF means no noise reduction * will be applied by the HAL.

- *

FAST/HIGH_QUALITY both mean HAL-determined noise filtering - * will be applied. HIGH_QUALITY mode indicates that the HAL - * should use the highest-quality noise filtering algorithms, - * even if it slows down capture rate. FAST means the HAL should not + *

FAST/HIGH_QUALITY both mean camera device determined noise filtering + * will be applied. HIGH_QUALITY mode indicates that the camera device + * will use the highest-quality noise filtering algorithms, + * even if it slows down capture rate. FAST means the camera device should not * slow down capture rate when applying noise filtering.

* @see #NOISE_REDUCTION_MODE_OFF * @see #NOISE_REDUCTION_MODE_FAST @@ -1009,8 +1009,8 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { * channel, to use when {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} is CONTRAST_CURVE.

*

See {@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} for more details.

* - * @see CaptureRequest#TONEMAP_MODE * @see CaptureRequest#TONEMAP_CURVE_RED + * @see CaptureRequest#TONEMAP_MODE */ public static final Key TONEMAP_CURVE_BLUE = new Key("android.tonemap.curveBlue", float[].class); @@ -1022,8 +1022,8 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { * channel, to use when {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} is CONTRAST_CURVE.

*

See {@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} for more details.

* - * @see CaptureRequest#TONEMAP_MODE * @see CaptureRequest#TONEMAP_CURVE_RED + * @see CaptureRequest#TONEMAP_MODE */ public static final Key TONEMAP_CURVE_GREEN = new Key("android.tonemap.curveGreen", float[].class); diff --git a/core/java/android/hardware/camera2/CaptureResult.java b/core/java/android/hardware/camera2/CaptureResult.java index d23eafa9eeaa..55b04ae0fdb0 100644 --- a/core/java/android/hardware/camera2/CaptureResult.java +++ b/core/java/android/hardware/camera2/CaptureResult.java @@ -195,12 +195,12 @@ public final class CaptureResult extends CameraMetadata { * fields for a given capture will be available in its * CaptureResult.

* + * @see CaptureRequest#CONTROL_MODE * @see CaptureRequest#SENSOR_EXPOSURE_TIME * @see CaptureRequest#SENSOR_FRAME_DURATION * @see CaptureRequest#SENSOR_SENSITIVITY * @see CaptureRequest#FLASH_MODE * @see CameraCharacteristics#FLASH_INFO_AVAILABLE - * @see CaptureRequest#CONTROL_MODE * @see #CONTROL_AE_MODE_OFF * @see #CONTROL_AE_MODE_ON * @see #CONTROL_AE_MODE_ON_AUTO_FLASH @@ -336,9 +336,9 @@ public final class CaptureResult extends CameraMetadata { * routine is disabled. The camera device uses each particular illumination * target for white balance adjustment.

* - * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM - * @see CaptureRequest#COLOR_CORRECTION_MODE * @see CaptureRequest#CONTROL_MODE + * @see CaptureRequest#COLOR_CORRECTION_MODE + * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM * @see CaptureRequest#COLOR_CORRECTION_GAINS * @see #CONTROL_AWB_MODE_OFF * @see #CONTROL_AWB_MODE_AUTO @@ -395,14 +395,14 @@ public final class CaptureResult extends CameraMetadata { *

Overall mode of 3A control * routines

*

High-level 3A control. When set to OFF, all 3A control - * by the HAL is disabled. The application must set the fields for + * by the camera device is disabled. The application must set the fields for * capture parameters itself.

*

When set to AUTO, the individual algorithm controls in * android.control.* are in effect, such as {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}.

*

When set to USE_SCENE_MODE, the individual controls in - * android.control.* are mostly disabled, and the HAL implements + * android.control.* are mostly disabled, and the camera device implements * one of the scene mode settings (such as ACTION, SUNSET, or PARTY) - * as it wishes. The HAL scene mode 3A settings are provided by + * as it wishes. The camera device scene mode 3A settings are provided by * android.control.sceneModeOverrides.

* * @see CaptureRequest#CONTROL_AF_MODE @@ -418,10 +418,10 @@ public final class CaptureResult extends CameraMetadata { * enhancement

*

Edge/sharpness/detail enhancement. OFF means no * enhancement will be applied by the HAL.

- *

FAST/HIGH_QUALITY both mean HAL-determined enhancement + *

FAST/HIGH_QUALITY both mean camera device determined enhancement * will be applied. HIGH_QUALITY mode indicates that the - * HAL should use the highest-quality enhancement algorithms, - * even if it slows down capture rate. FAST means the HAL should + * camera device will use the highest-quality enhancement algorithms, + * even if it slows down capture rate. FAST means the camera device will * not slow down capture rate when applying edge enhancement.

* @see #EDGE_MODE_OFF * @see #EDGE_MODE_FAST @@ -495,8 +495,8 @@ public final class CaptureResult extends CameraMetadata { /** *

Resolution of embedded JPEG thumbnail

- *

When set to (0, 0) value, the JPEG EXIF must not contain thumbnail, - * but the captured JPEG must still be a valid image.

+ *

When set to (0, 0) value, the JPEG EXIF will not contain thumbnail, + * but the captured JPEG will still be a valid image.

*

When a jpeg image capture is issued, the thumbnail size selected should have * the same aspect ratio as the jpeg image.

*/ @@ -521,9 +521,9 @@ public final class CaptureResult extends CameraMetadata { * auto-exposure algorithm, the overridden values are then provided * back to the user in the corresponding result.

* - * @see CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES * @see CaptureRequest#SENSOR_SENSITIVITY * @see CaptureRequest#SENSOR_EXPOSURE_TIME + * @see CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES * @see CaptureRequest#CONTROL_AE_MODE */ public static final Key LENS_APERTURE = @@ -585,10 +585,10 @@ public final class CaptureResult extends CameraMetadata { * algorithm

*

Noise filtering control. OFF means no noise reduction * will be applied by the HAL.

- *

FAST/HIGH_QUALITY both mean HAL-determined noise filtering - * will be applied. HIGH_QUALITY mode indicates that the HAL - * should use the highest-quality noise filtering algorithms, - * even if it slows down capture rate. FAST means the HAL should not + *

FAST/HIGH_QUALITY both mean camera device determined noise filtering + * will be applied. HIGH_QUALITY mode indicates that the camera device + * will use the highest-quality noise filtering algorithms, + * even if it slows down capture rate. FAST means the camera device should not * slow down capture rate when applying noise filtering.

* @see #NOISE_REDUCTION_MODE_OFF * @see #NOISE_REDUCTION_MODE_FAST @@ -818,8 +818,8 @@ public final class CaptureResult extends CameraMetadata { * image of a gray wall (using bicubic interpolation for visual quality) as captured by the sensor gives:

*

Image of a uniform white wall (inverse shading map)

* - * @see CaptureRequest#COLOR_CORRECTION_MODE * @see CaptureResult#STATISTICS_LENS_SHADING_MAP + * @see CaptureRequest#COLOR_CORRECTION_MODE * @see CameraCharacteristics#LENS_INFO_SHADING_MAP_SIZE */ public static final Key STATISTICS_LENS_SHADING_MAP = @@ -885,8 +885,8 @@ public final class CaptureResult extends CameraMetadata { * channel, to use when {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} is CONTRAST_CURVE.

*

See {@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} for more details.

* - * @see CaptureRequest#TONEMAP_MODE * @see CaptureRequest#TONEMAP_CURVE_RED + * @see CaptureRequest#TONEMAP_MODE */ public static final Key TONEMAP_CURVE_BLUE = new Key("android.tonemap.curveBlue", float[].class); @@ -898,8 +898,8 @@ public final class CaptureResult extends CameraMetadata { * channel, to use when {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} is CONTRAST_CURVE.

*

See {@link CaptureRequest#TONEMAP_CURVE_RED android.tonemap.curveRed} for more details.

* - * @see CaptureRequest#TONEMAP_MODE * @see CaptureRequest#TONEMAP_CURVE_RED + * @see CaptureRequest#TONEMAP_MODE */ public static final Key TONEMAP_CURVE_GREEN = new Key("android.tonemap.curveGreen", float[].class); -- 2.11.0