Skip to content

Commit 17a5fb3

Browse files
James DongAndroid (Google) Code Review
authored andcommitted
Merge "Unhide QVGA related resolution profiles and allow to use QVGA resolution for timelapse video recording." into ics-mr1
2 parents 44c9909 + 33fe290 commit 17a5fb3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/current.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10537,13 +10537,15 @@ package android.media {
1053710537
field public static final int QUALITY_HIGH = 1; // 0x1
1053810538
field public static final int QUALITY_LOW = 0; // 0x0
1053910539
field public static final int QUALITY_QCIF = 2; // 0x2
10540+
field public static final int QUALITY_QVGA = 7; // 0x7
1054010541
field public static final int QUALITY_TIME_LAPSE_1080P = 1006; // 0x3ee
1054110542
field public static final int QUALITY_TIME_LAPSE_480P = 1004; // 0x3ec
1054210543
field public static final int QUALITY_TIME_LAPSE_720P = 1005; // 0x3ed
1054310544
field public static final int QUALITY_TIME_LAPSE_CIF = 1003; // 0x3eb
1054410545
field public static final int QUALITY_TIME_LAPSE_HIGH = 1001; // 0x3e9
1054510546
field public static final int QUALITY_TIME_LAPSE_LOW = 1000; // 0x3e8
1054610547
field public static final int QUALITY_TIME_LAPSE_QCIF = 1002; // 0x3ea
10548+
field public static final int QUALITY_TIME_LAPSE_QVGA = 1007; // 0x3ef
1054710549
field public int audioBitRate;
1054810550
field public int audioChannels;
1054910551
field public int audioCodec;

media/java/android/media/CamcorderProfile.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public class CamcorderProfile
8282

8383
/**
8484
* Quality level corresponding to the QVGA (320x240) resolution.
85-
* {@hide}
8685
*/
8786
public static final int QUALITY_QVGA = 7;
8887

@@ -127,7 +126,6 @@ public class CamcorderProfile
127126

128127
/**
129128
* Time lapse quality level corresponding to the QVGA (320 x 240) resolution.
130-
* {@hide}
131129
*/
132130
public static final int QUALITY_TIME_LAPSE_QVGA = 1007;
133131

media/java/android/media/MediaRecorder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public void setProfile(CamcorderProfile profile) {
299299
setVideoEncodingBitRate(profile.videoBitRate);
300300
setVideoEncoder(profile.videoCodec);
301301
if (profile.quality >= CamcorderProfile.QUALITY_TIME_LAPSE_LOW &&
302-
profile.quality <= CamcorderProfile.QUALITY_TIME_LAPSE_1080P) {
302+
profile.quality <= CamcorderProfile.QUALITY_TIME_LAPSE_QVGA) {
303303
// Enable time lapse. Also don't set audio for time lapse.
304304
setParameter(String.format("time-lapse-enable=1"));
305305
} else {

0 commit comments

Comments
 (0)