am f6121f38: Merge "camera2: add sensor.temperature optional key. clear up some metadata definitions" into klp-dev
* commit 'f6121f38c0b8640cafb7ff8cbaa8f3413f085b78': camera2: add sensor.temperature optional key. clear up some metadata definitions
This commit is contained in:
@@ -181,6 +181,10 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
|
|||||||
*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/
|
*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* <p>
|
||||||
|
* When android.sensor.awbMode is not OFF, TRANSFORM_MATRIX
|
||||||
|
* should be ignored.
|
||||||
|
* </p>
|
||||||
* @see #COLOR_CORRECTION_MODE_TRANSFORM_MATRIX
|
* @see #COLOR_CORRECTION_MODE_TRANSFORM_MATRIX
|
||||||
* @see #COLOR_CORRECTION_MODE_FAST
|
* @see #COLOR_CORRECTION_MODE_FAST
|
||||||
* @see #COLOR_CORRECTION_MODE_HIGH_QUALITY
|
* @see #COLOR_CORRECTION_MODE_HIGH_QUALITY
|
||||||
@@ -197,7 +201,8 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
|
|||||||
* This matrix is either set by HAL when the request
|
* This matrix is either set by HAL when the request
|
||||||
* android.colorCorrection.mode is not TRANSFORM_MATRIX, or
|
* android.colorCorrection.mode is not TRANSFORM_MATRIX, or
|
||||||
* directly by the application in the request when the
|
* directly by the application in the request when the
|
||||||
* androird.colorCorrection.mode is TRANSFORM_MATRIX.
|
* android.colorCorrection.mode is TRANSFORM_MATRIX.
|
||||||
|
* </p><p>
|
||||||
* In the latter case, the HAL may round the matrix to account
|
* In the latter case, the HAL may round the matrix to account
|
||||||
* for precision issues; the final rounded matrix should be
|
* for precision issues; the final rounded matrix should be
|
||||||
* reported back in this matrix result metadata.
|
* reported back in this matrix result metadata.
|
||||||
@@ -220,6 +225,11 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
|
|||||||
* it should use the G_even value,and write G_odd equal to
|
* it should use the G_even value,and write G_odd equal to
|
||||||
* G_even in the output result metadata.
|
* G_even in the output result metadata.
|
||||||
* </p><p>
|
* </p><p>
|
||||||
|
* This array 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
|
||||||
|
* android.colorCorrection.mode is TRANSFORM_MATRIX.
|
||||||
|
* </p><p>
|
||||||
* The ouput should be the gains actually applied by the HAL to
|
* The ouput should be the gains actually applied by the HAL to
|
||||||
* the current frame.
|
* the current frame.
|
||||||
* </p>
|
* </p>
|
||||||
@@ -781,7 +791,10 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
|
|||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* Duration each pixel is exposed to
|
* Duration each pixel is exposed to
|
||||||
* light
|
* light.
|
||||||
|
* </p><p>
|
||||||
|
* If the sensor can't expose this exact duration, it should shorten the
|
||||||
|
* duration exposed to the nearest possible value (rather than expose longer).
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* 1/10000 - 30 sec range. No bulb mode
|
* 1/10000 - 30 sec range. No bulb mode
|
||||||
@@ -808,6 +821,9 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
|
|||||||
* Gain applied to image data. Must be
|
* Gain applied to image data. Must be
|
||||||
* implemented through analog gain only if set to values
|
* implemented through analog gain only if set to values
|
||||||
* below 'maximum analog sensitivity'.
|
* below 'maximum analog sensitivity'.
|
||||||
|
* </p><p>
|
||||||
|
* If the sensor can't apply this exact gain, it should lessen the
|
||||||
|
* gain to the nearest possible value (rather than gain more).
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* ISO 12232:2006 REI method
|
* ISO 12232:2006 REI method
|
||||||
@@ -913,6 +929,13 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
|
|||||||
* compensation, the HAL must report whether setting the
|
* compensation, the HAL must report whether setting the
|
||||||
* black level lock was successful in the output result
|
* black level lock was successful in the output result
|
||||||
* metadata.
|
* metadata.
|
||||||
|
* </p><p>
|
||||||
|
* The black level locking must happen at the sensor, and not at the ISP.
|
||||||
|
* If for some reason black level locking is no longer legal (for example,
|
||||||
|
* the analog gain has changed, which forces black levels to be
|
||||||
|
* recalculated), then the HAL is free to override this request (and it
|
||||||
|
* must report 'OFF' when this does happen) until the next time locking
|
||||||
|
* is legal again.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public static final Key<Boolean> BLACK_LEVEL_LOCK =
|
public static final Key<Boolean> BLACK_LEVEL_LOCK =
|
||||||
|
|||||||
@@ -138,7 +138,8 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
* This matrix is either set by HAL when the request
|
* This matrix is either set by HAL when the request
|
||||||
* android.colorCorrection.mode is not TRANSFORM_MATRIX, or
|
* android.colorCorrection.mode is not TRANSFORM_MATRIX, or
|
||||||
* directly by the application in the request when the
|
* directly by the application in the request when the
|
||||||
* androird.colorCorrection.mode is TRANSFORM_MATRIX.
|
* android.colorCorrection.mode is TRANSFORM_MATRIX.
|
||||||
|
* </p><p>
|
||||||
* In the latter case, the HAL may round the matrix to account
|
* In the latter case, the HAL may round the matrix to account
|
||||||
* for precision issues; the final rounded matrix should be
|
* for precision issues; the final rounded matrix should be
|
||||||
* reported back in this matrix result metadata.
|
* reported back in this matrix result metadata.
|
||||||
@@ -161,6 +162,11 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
* it should use the G_even value,and write G_odd equal to
|
* it should use the G_even value,and write G_odd equal to
|
||||||
* G_even in the output result metadata.
|
* G_even in the output result metadata.
|
||||||
* </p><p>
|
* </p><p>
|
||||||
|
* This array 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
|
||||||
|
* android.colorCorrection.mode is TRANSFORM_MATRIX.
|
||||||
|
* </p><p>
|
||||||
* The ouput should be the gains actually applied by the HAL to
|
* The ouput should be the gains actually applied by the HAL to
|
||||||
* the current frame.
|
* the current frame.
|
||||||
* </p>
|
* </p>
|
||||||
@@ -651,7 +657,10 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* Duration each pixel is exposed to
|
* Duration each pixel is exposed to
|
||||||
* light
|
* light.
|
||||||
|
* </p><p>
|
||||||
|
* If the sensor can't expose this exact duration, it should shorten the
|
||||||
|
* duration exposed to the nearest possible value (rather than expose longer).
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* 1/10000 - 30 sec range. No bulb mode
|
* 1/10000 - 30 sec range. No bulb mode
|
||||||
@@ -678,6 +687,9 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
* Gain applied to image data. Must be
|
* Gain applied to image data. Must be
|
||||||
* implemented through analog gain only if set to values
|
* implemented through analog gain only if set to values
|
||||||
* below 'maximum analog sensitivity'.
|
* below 'maximum analog sensitivity'.
|
||||||
|
* </p><p>
|
||||||
|
* If the sensor can't apply this exact gain, it should lessen the
|
||||||
|
* gain to the nearest possible value (rather than gain more).
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* ISO 12232:2006 REI method
|
* ISO 12232:2006 REI method
|
||||||
@@ -699,6 +711,18 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
public static final Key<Long> SENSOR_TIMESTAMP =
|
public static final Key<Long> SENSOR_TIMESTAMP =
|
||||||
new Key<Long>("android.sensor.timestamp", long.class);
|
new Key<Long>("android.sensor.timestamp", long.class);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* The temperature of the sensor, sampled at the time
|
||||||
|
* exposure began for this frame.
|
||||||
|
* </p><p>
|
||||||
|
* The thermal diode being queried should be inside the sensor PCB, or
|
||||||
|
* somewhere close to it.
|
||||||
|
* </p>
|
||||||
|
*/
|
||||||
|
public static final Key<Float> SENSOR_TEMPERATURE =
|
||||||
|
new Key<Float>("android.sensor.temperature", float.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* State of the face detector
|
* State of the face detector
|
||||||
@@ -759,7 +783,8 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
* detected faces
|
* detected faces
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* Only available if faceDetectMode != OFF
|
* Only available if faceDetectMode != OFF. The value should be
|
||||||
|
* meaningful (for example, setting 100 at all times is illegal).
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public static final Key<byte[]> STATISTICS_FACE_SCORES =
|
public static final Key<byte[]> STATISTICS_FACE_SCORES =
|
||||||
@@ -776,6 +801,9 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
* of 1; all other sections should have gains above 1.
|
* of 1; all other sections should have gains above 1.
|
||||||
* the map should be on the order of 30-40 rows, and
|
* the map should be on the order of 30-40 rows, and
|
||||||
* must be smaller than 64x64.
|
* must be smaller than 64x64.
|
||||||
|
* </p><p>
|
||||||
|
* When android.colorCorrection.mode = TRANSFORM_MATRIX, the map
|
||||||
|
* must take into account the colorCorrection settings.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public static final Key<float[]> STATISTICS_LENS_SHADING_MAP =
|
public static final Key<float[]> STATISTICS_LENS_SHADING_MAP =
|
||||||
@@ -794,6 +822,9 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
* </p><p>
|
* </p><p>
|
||||||
* The 4 channel gains are defined in Bayer domain,
|
* The 4 channel gains are defined in Bayer domain,
|
||||||
* see android.colorCorrection.gains for details.
|
* see android.colorCorrection.gains for details.
|
||||||
|
* </p><p>
|
||||||
|
* This value should always be calculated by the AWB block,
|
||||||
|
* regardless of the android.control.* current values.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public static final Key<float[]> STATISTICS_PREDICTED_COLOR_GAINS =
|
public static final Key<float[]> STATISTICS_PREDICTED_COLOR_GAINS =
|
||||||
@@ -817,6 +848,9 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
* </p><p>
|
* </p><p>
|
||||||
* These estimates must be provided for all frames, even if
|
* These estimates must be provided for all frames, even if
|
||||||
* capture settings and color transforms are set by the application.
|
* capture settings and color transforms are set by the application.
|
||||||
|
* </p><p>
|
||||||
|
* This value should always be calculated by the AWB block,
|
||||||
|
* regardless of the android.control.* current values.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public static final Key<Rational[]> STATISTICS_PREDICTED_COLOR_TRANSFORM =
|
public static final Key<Rational[]> STATISTICS_PREDICTED_COLOR_TRANSFORM =
|
||||||
@@ -917,6 +951,13 @@ public final class CaptureResult extends CameraMetadata {
|
|||||||
* compensation, the HAL must report whether setting the
|
* compensation, the HAL must report whether setting the
|
||||||
* black level lock was successful in the output result
|
* black level lock was successful in the output result
|
||||||
* metadata.
|
* metadata.
|
||||||
|
* </p><p>
|
||||||
|
* The black level locking must happen at the sensor, and not at the ISP.
|
||||||
|
* If for some reason black level locking is no longer legal (for example,
|
||||||
|
* the analog gain has changed, which forces black levels to be
|
||||||
|
* recalculated), then the HAL is free to override this request (and it
|
||||||
|
* must report 'OFF' when this does happen) until the next time locking
|
||||||
|
* is legal again.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public static final Key<Boolean> BLACK_LEVEL_LOCK =
|
public static final Key<Boolean> BLACK_LEVEL_LOCK =
|
||||||
|
|||||||
Reference in New Issue
Block a user