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

Commit d96748b0 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2: Add a missing key for controlling shading map mode

Bug: 10726421
Change-Id: If41e00c921ab493c7427575258fed63cbbc22dc1
parent e4fdc847
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -873,6 +873,20 @@ public abstract class CameraMetadata {
     */
     */
    public static final int STATISTICS_FACE_DETECT_MODE_FULL = 2;
    public static final int STATISTICS_FACE_DETECT_MODE_FULL = 2;


    //
    // Enumeration values for CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
    //

    /**
     * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
     */
    public static final int STATISTICS_LENS_SHADING_MAP_MODE_OFF = 0;

    /**
     * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
     */
    public static final int STATISTICS_LENS_SHADING_MAP_MODE_ON = 1;

    //
    //
    // Enumeration values for CaptureRequest#TONEMAP_MODE
    // Enumeration values for CaptureRequest#TONEMAP_MODE
    //
    //
+16 −0
Original line number Original line Diff line number Diff line
@@ -955,6 +955,22 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
    public static final Key<Integer> STATISTICS_FACE_DETECT_MODE =
    public static final Key<Integer> STATISTICS_FACE_DETECT_MODE =
            new Key<Integer>("android.statistics.faceDetectMode", int.class);
            new Key<Integer>("android.statistics.faceDetectMode", int.class);


    /**
     * <p>
     * Whether the HAL needs to output the lens
     * shading map in output result metadata
     * </p>
     * <p>
     * When set to ON,
     * android.statistics.lensShadingMap must be provided in
     * the output result metdata.
     * </p>
     * @see #STATISTICS_LENS_SHADING_MAP_MODE_OFF
     * @see #STATISTICS_LENS_SHADING_MAP_MODE_ON
     */
    public static final Key<Integer> STATISTICS_LENS_SHADING_MAP_MODE =
            new Key<Integer>("android.statistics.lensShadingMapMode", int.class);

    /**
    /**
     * <p>
     * <p>
     * Table mapping blue input values to output
     * Table mapping blue input values to output