diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2014-02-07 18:23:50 -0800 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2014-02-07 18:38:46 -0800 |
commit | eba1b3a843278a92611edf153faa41a01d793b25 (patch) | |
tree | 85307d1b532da0aea547506c59227432b4c377f5 /core | |
parent | b7b2de7843f47d31c9c38d01ecee873fe56b2b31 (diff) | |
download | frameworks_base-eba1b3a843278a92611edf153faa41a01d793b25.zip frameworks_base-eba1b3a843278a92611edf153faa41a01d793b25.tar.gz frameworks_base-eba1b3a843278a92611edf153faa41a01d793b25.tar.bz2 |
camera2: Update hotpixel tags.
Change-Id: I6e2931d54a92f3852e8abe8c480f1762c92655ad
Diffstat (limited to 'core')
4 files changed, 75 insertions, 0 deletions
diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java index fb098b0..3577ade 100644 --- a/core/java/android/hardware/camera2/CameraCharacteristics.java +++ b/core/java/android/hardware/camera2/CameraCharacteristics.java @@ -622,6 +622,16 @@ public final class CameraCharacteristics extends CameraMetadata { new Key<float[]>("android.sensor.info.physicalSize", float[].class); /** + * <p>Dimensions of full pixel array, possibly + * including black calibration pixels.</p> + * <p>Maximum output resolution for raw format must + * match this in + * android.scaler.info.availableSizesPerFormat.</p> + */ + public static final Key<android.hardware.camera2.Size> SENSOR_INFO_PIXEL_ARRAY_SIZE = + new Key<android.hardware.camera2.Size>("android.sensor.info.pixelArraySize", android.hardware.camera2.Size.class); + + /** * <p>Gain factor from electrons to raw units when * ISO=100</p> * <p><b>Optional</b> - This value may be {@code null} on some devices.</p> diff --git a/core/java/android/hardware/camera2/CameraMetadata.java b/core/java/android/hardware/camera2/CameraMetadata.java index 03ee508..e0807e9 100644 --- a/core/java/android/hardware/camera2/CameraMetadata.java +++ b/core/java/android/hardware/camera2/CameraMetadata.java @@ -1025,6 +1025,34 @@ public abstract class CameraMetadata { public static final int FLASH_MODE_TORCH = 2; // + // Enumeration values for CaptureRequest#HOT_PIXEL_MODE + // + + /** + * <p>The frame rate must not be reduced relative to sensor raw output + * for this option.</p> + * <p>No hot pixel correction is applied.</p> + * @see CaptureRequest#HOT_PIXEL_MODE + */ + public static final int HOT_PIXEL_MODE_OFF = 0; + + /** + * <p>The frame rate must not be reduced relative to sensor raw output + * for this option.</p> + * <p>Hot pixel correction is applied.</p> + * @see CaptureRequest#HOT_PIXEL_MODE + */ + public static final int HOT_PIXEL_MODE_FAST = 1; + + /** + * <p>The frame rate may be reduced relative to sensor raw output + * for this option.</p> + * <p>A high-quality hot pixel correction is applied.</p> + * @see CaptureRequest#HOT_PIXEL_MODE + */ + public static final int HOT_PIXEL_MODE_HIGH_QUALITY = 2; + + // // Enumeration values for CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE // diff --git a/core/java/android/hardware/camera2/CaptureRequest.java b/core/java/android/hardware/camera2/CaptureRequest.java index 8f91e07..9904db7 100644 --- a/core/java/android/hardware/camera2/CaptureRequest.java +++ b/core/java/android/hardware/camera2/CaptureRequest.java @@ -872,6 +872,18 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable { new Key<Integer>("android.flash.mode", int.class); /** + * <p>Set operational mode for hot pixel correction.</p> + * <p>Hotpixel correction interpolates out, or otherwise removes, pixels + * that do not accurately encode the incoming light (i.e. pixels that + * are stuck at an arbitrary value).</p> + * @see #HOT_PIXEL_MODE_OFF + * @see #HOT_PIXEL_MODE_FAST + * @see #HOT_PIXEL_MODE_HIGH_QUALITY + */ + public static final Key<Integer> HOT_PIXEL_MODE = + new Key<Integer>("android.hotPixel.mode", int.class); + + /** * <p>GPS coordinates to include in output JPEG * EXIF</p> */ diff --git a/core/java/android/hardware/camera2/CaptureResult.java b/core/java/android/hardware/camera2/CaptureResult.java index 48a1870..7b2f628 100644 --- a/core/java/android/hardware/camera2/CaptureResult.java +++ b/core/java/android/hardware/camera2/CaptureResult.java @@ -1014,6 +1014,31 @@ public final class CaptureResult extends CameraMetadata { new Key<Integer>("android.flash.state", int.class); /** + * <p>List of <code>(x, y)</code> coordinates of hot/defective pixels on the + * sensor, where <code>(x, y)</code> lies between <code>(0, 0)</code>, which is the top-left + * of the pixel array, and the width,height of the pixel array given in + * {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize}. This may include hot pixels + * that lie outside of the active array bounds given by + * android.sensor.activeArraySize.</p> + * + * @see CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE + */ + public static final Key<int[]> HOT_PIXEL_MAP = + new Key<int[]>("android.hotPixel.map", int[].class); + + /** + * <p>Set operational mode for hot pixel correction.</p> + * <p>Hotpixel correction interpolates out, or otherwise removes, pixels + * that do not accurately encode the incoming light (i.e. pixels that + * are stuck at an arbitrary value).</p> + * @see #HOT_PIXEL_MODE_OFF + * @see #HOT_PIXEL_MODE_FAST + * @see #HOT_PIXEL_MODE_HIGH_QUALITY + */ + public static final Key<Integer> HOT_PIXEL_MODE = + new Key<Integer>("android.hotPixel.mode", int.class); + + /** * <p>GPS coordinates to include in output JPEG * EXIF</p> */ |