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

Commit b8243123 authored by Manikanta Kanamarlapudi's avatar Manikanta Kanamarlapudi
Browse files

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
parent 3a1b6141
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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 {