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

Commit b8b77bf5 authored by Zhijun He's avatar Zhijun He
Browse files

Correct request template value for record and still

they should match the request template values defined in camera3.h.

Bug 9213377

Change-Id: Ib24aa33a0ed59aff14b115c5d213ac287ea0d948
parent a182f129
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10686,8 +10686,8 @@ package android.hardware.photography {
    method public abstract void waitUntilIdle() throws android.hardware.photography.CameraAccessException;
    field public static final int TEMPLATE_MANUAL = 5; // 0x5
    field public static final int TEMPLATE_PREVIEW = 1; // 0x1
    field public static final int TEMPLATE_RECORD = 2; // 0x2
    field public static final int TEMPLATE_STILL_CAPTURE = 3; // 0x3
    field public static final int TEMPLATE_RECORD = 3; // 0x3
    field public static final int TEMPLATE_STILL_CAPTURE = 2; // 0x2
    field public static final int TEMPLATE_VIDEO_SNAPSHOT = 4; // 0x4
  }
+9 −9
Original line number Diff line number Diff line
@@ -57,23 +57,23 @@ public interface CameraDevice extends AutoCloseable {
    public static final int TEMPLATE_PREVIEW = 1;

    /**
     * Create a request suitable for video recording. Specifically, this means
     * that a stable frame rate is used, and post-processing is set for
     * recording quality. These requests would commonly be used with the
     * {@link #setRepeatingRequest} method.
     * Create a request suitable for still image capture. Specifically, this
     * means prioritizing image quality over frame rate. These requests would
     * commonly be used with the {@link #capture} method.
     *
     * @see #createCaptureRequest
     */
    public static final int TEMPLATE_RECORD  = 2;
    public static final int TEMPLATE_STILL_CAPTURE = 2;

    /**
     * Create a request suitable for still image capture. Specifically, this
     * means prioritizing image quality over frame rate. These requests would
     * commonly be used with the {@link #capture} method.
     * Create a request suitable for video recording. Specifically, this means
     * that a stable frame rate is used, and post-processing is set for
     * recording quality. These requests would commonly be used with the
     * {@link #setRepeatingRequest} method.
     *
     * @see #createCaptureRequest
     */
    public static final int TEMPLATE_STILL_CAPTURE = 3;
    public static final int TEMPLATE_RECORD  = 3;

    /**
     * Create a request suitable for still image capture while recording