Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5fdd1c1 authored by Ruben Brunk's avatar Ruben Brunk
Browse files

camera3: Update raw color calibration transform tags.

Change-Id: Ic7a8c68e83b3eb257bd15380baad6370c5eb0dbc
parent b7b2de78
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -11613,7 +11613,10 @@ package android.hardware.camera2 {
    field public static final android.hardware.camera2.CameraMetadata.Key REQUEST_FRAME_COUNT;
    field public static final android.hardware.camera2.CameraMetadata.Key REQUEST_PIPELINE_DEPTH;
    field public static final android.hardware.camera2.CameraMetadata.Key SCALER_CROP_REGION;
    field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_CALIBRATION_TRANSFORM;
    field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_COLOR_TRANSFORM;
    field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_EXPOSURE_TIME;
    field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_FORWARD_MATRIX;
    field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_FRAME_DURATION;
    field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_NEUTRAL_COLOR_POINT;
    field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_PROFILE_HUE_SAT_MAP;
+37 −0
Original line number Diff line number Diff line
@@ -1445,6 +1445,43 @@ public final class CaptureResult extends CameraMetadata {
    public static final Key<Float> SENSOR_TEMPERATURE =
            new Key<Float>("android.sensor.temperature", float.class);

    /**
     * <p>A per-device calibration transform matrix to be applied after the
     * color space transform when rendering the raw image buffer.</p>
     * <p>This matrix is expressed as a 3x3 matrix in row-major-order, and
     * contains a per-device calibration transform that maps colors
     * from reference camera color space (i.e. the "golden module"
     * colorspace) into this camera device's linear native sensor color
     * space for the current scene illumination and white balance choice.</p>
     * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
     */
    public static final Key<Rational[]> SENSOR_CALIBRATION_TRANSFORM =
            new Key<Rational[]>("android.sensor.calibrationTransform", Rational[].class);

    /**
     * <p>A matrix that transforms color values from CIE XYZ color space to
     * reference camera color space when rendering the raw image buffer.</p>
     * <p>This matrix is expressed as a 3x3 matrix in row-major-order, and
     * contains a color transform matrix that maps colors from the CIE
     * XYZ color space to the reference camera raw color space (i.e. the
     * "golden module" colorspace) for the current scene illumination and
     * white balance choice.</p>
     * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
     */
    public static final Key<Rational[]> SENSOR_COLOR_TRANSFORM =
            new Key<Rational[]>("android.sensor.colorTransform", Rational[].class);

    /**
     * <p>A matrix that transforms white balanced camera colors to the CIE XYZ
     * colorspace with a D50 whitepoint.</p>
     * <p>This matrix is expressed as a 3x3 matrix in row-major-order, and contains
     * a color transform matrix that maps a unit vector in the linear native
     * sensor color space to the D50 whitepoint in CIE XYZ color space.</p>
     * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
     */
    public static final Key<Rational[]> SENSOR_FORWARD_MATRIX =
            new Key<Rational[]>("android.sensor.forwardMatrix", Rational[].class);

    /**
     * <p>The estimated white balance at the time of capture.</p>
     * <p>The estimated white balance encoded as the RGB values of the