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

Commit f2898299 authored by Cherian Deepak's avatar Cherian Deepak Committed by Linux Build Service Account
Browse files

camera: Fix Camcoder quality levels based on video profiles

Fixed the enum map between the framework and native layer
for extended camcorder profiles

Change-Id: I38ce375841bf83ac01c4ac8f42c22a72e8ed2c19
parent 778f0c9e
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -95,29 +95,34 @@ public class CamcorderProfile
     */
    public static final int QUALITY_2160P = 8;

    /** @hide
     * Quality level corresponding to the FWVGA resolution.
     */
    public static final int QUALITY_FWVGA = 9;
    /** @hide
     * Quality level corresponding to the WVGA resolution.
     */
    public static final int QUALITY_WVGA = 10;
    public static final int QUALITY_WVGA = 9;

    /** @hide
     * Quality level corresponding to the VGA resolution.
     */
    public static final int QUALITY_VGA = 11;
    public static final int QUALITY_VGA = 10;

    /** @hide
     * Quality level corresponding to the WQVGA resolution.
     */
    public static final int QUALITY_WQVGA = 12;
    public static final int QUALITY_WQVGA = 11;

    /** @hide
     * Quality level corresponding to the FWVGA resolution.
     */
    public static final int QUALITY_FWVGA = 12;

    /** @hide
     * Quality level corresponding to 4K DCI resolution
     */
    public static final int QUALITY_4kDCI = 13;

    // Start and end of quality list
    private static final int QUALITY_LIST_START = QUALITY_LOW;
    private static final int QUALITY_LIST_END = QUALITY_WQVGA;
    private static final int QUALITY_LIST_END = QUALITY_4kDCI;

    /**
     * Time lapse quality level corresponding to the lowest available resolution.