diff options
author | Sultanxda <sultanxda@gmail.com> | 2015-11-05 22:03:57 -0800 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2018-01-26 01:03:24 +0100 |
commit | ef28b30d1704e041f38fc8a1902b91c03755f145 (patch) | |
tree | bc70637ccb8cea17c661b49e14b768e678e4897b | |
parent | 61e22da3f3cddd5d99414354785d7f7ebeb4712a (diff) | |
download | android_packages_apps_Snap-ef28b30d1704e041f38fc8a1902b91c03755f145.tar.gz android_packages_apps_Snap-ef28b30d1704e041f38fc8a1902b91c03755f145.tar.bz2 android_packages_apps_Snap-ef28b30d1704e041f38fc8a1902b91c03755f145.zip |
SnapdragonCamera: Scale up bitrate for HSR recordings
Currently, bitrate is only scaled up for HFR (slow-mo) recordings, not
HSR (full high-speed) recordings.
Scale up the bitrate for HSR to prevent video-quality degradation.
Change-Id: Icc009ad4b22d990cc6df6773d965579a7d9cb091
Signed-off-by: Sultanxda <sultanxda@gmail.com>
-rw-r--r-- | src/com/android/camera/VideoModule.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index f765de428..e786cc261 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1627,7 +1627,8 @@ public class VideoModule implements CameraModule, } mMediaRecorder.setOutputFormat(mProfile.fileFormat); mMediaRecorder.setVideoFrameRate(mProfile.videoFrameRate); - mMediaRecorder.setVideoEncodingBitRate(mProfile.videoBitRate); + mMediaRecorder.setVideoEncodingBitRate(mProfile.videoBitRate * + ((isHSR ? captureRate : 30) / 30)); mMediaRecorder.setVideoEncoder(mProfile.videoCodec); if (isHSR) { Log.i(TAG, "Configuring audio for HSR"); |