From 6b918be05a22ec6680560656b592bcea95a25dd4 Mon Sep 17 00:00:00 2001 From: Sultanxda Date: Sat, 15 Aug 2015 19:28:35 -0700 Subject: [PATCH] CamcorderProfile: Add 1440p camcorder profile Add encoding constants (regular and timelapse) for 2k 1440p resolution. Change-Id: I0ce1dd33458f0c837f4bb1d9e8d07c1649cf338d --- media/java/android/media/CamcorderProfile.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/media/java/android/media/CamcorderProfile.java b/media/java/android/media/CamcorderProfile.java index 5a1186ca2a48..c81dc2531294 100644 --- a/media/java/android/media/CamcorderProfile.java +++ b/media/java/android/media/CamcorderProfile.java @@ -125,9 +125,14 @@ public class CamcorderProfile */ public static final int QUALITY_HVGA = 19; + /** @hide + * Quality level corresponding to 1440p resolution + */ + public static final int QUALITY_1440P = 20; + // Start and end of quality list private static final int QUALITY_LIST_START = QUALITY_LOW; - private static final int QUALITY_LIST_END = QUALITY_HVGA; + private static final int QUALITY_LIST_END = QUALITY_1440P; /** * Time lapse quality level corresponding to the lowest available resolution. @@ -199,9 +204,14 @@ public class CamcorderProfile */ public static final int QUALITY_TIME_LAPSE_4kDCI = 1014; + /** @hide + * Time lapse quality level corresponding to the 1440p resolution. + */ + public static final int QUALITY_TIME_LAPSE_1440P = 1015; + // Start and end of timelapse quality list private static final int QUALITY_TIME_LAPSE_LIST_START = QUALITY_TIME_LAPSE_LOW; - private static final int QUALITY_TIME_LAPSE_LIST_END = QUALITY_TIME_LAPSE_4kDCI; + private static final int QUALITY_TIME_LAPSE_LIST_END = QUALITY_TIME_LAPSE_1440P; /** * High speed ( >= 100fps) quality level corresponding to the lowest available resolution.