diff options
author | Manikanta Kanamarlapudi <kmanikan@codeaurora.org> | 2015-10-01 15:45:26 +0530 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-30 19:31:23 -0800 |
commit | c8614072b7b9cb3d6ccfcf78b2905fcf9e9c55a0 (patch) | |
tree | 040e512a342de955370162abc818993943b58e15 /media | |
parent | 570d204c4765330e872806022bd25b7b89b936f8 (diff) | |
download | frameworks_base-c8614072b7b9cb3d6ccfcf78b2905fcf9e9c55a0.zip frameworks_base-c8614072b7b9cb3d6ccfcf78b2905fcf9e9c55a0.tar.gz frameworks_base-c8614072b7b9cb3d6ccfcf78b2905fcf9e9c55a0.tar.bz2 |
frameworks/base: Add checks for 4KUHD and VGA timelapse
Add 4KUHD and VGA timelapse checks to allow recording
in timelapse mode for these resolutions.
Change-Id: I47f75d44ad87359c63eeb020d2e56da452305afb
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/MediaRecorder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/java/android/media/MediaRecorder.java b/media/java/android/media/MediaRecorder.java index 65134c5..4e405e3 100644 --- a/media/java/android/media/MediaRecorder.java +++ b/media/java/android/media/MediaRecorder.java @@ -451,8 +451,9 @@ public class MediaRecorder setVideoSize(profile.videoFrameWidth, profile.videoFrameHeight); setVideoEncodingBitRate(profile.videoBitRate); setVideoEncoder(profile.videoCodec); - if (profile.quality >= CamcorderProfile.QUALITY_TIME_LAPSE_LOW && - profile.quality <= CamcorderProfile.QUALITY_TIME_LAPSE_QVGA) { + if ((profile.quality >= CamcorderProfile.QUALITY_TIME_LAPSE_LOW && + profile.quality <= CamcorderProfile.QUALITY_TIME_LAPSE_2160P) || + profile.quality == CamcorderProfile.QUALITY_TIME_LAPSE_VGA) { // Nothing needs to be done. Call to setCaptureRate() enables // time lapse video recording. } else { |