diff options
author | Zhijun He <zhijunhe@google.com> | 2015-09-25 23:11:15 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2015-09-26 19:50:42 +0000 |
commit | 80f2af2699a299e857e7acc8f33337e45dfc3a1b (patch) | |
tree | 055387289e7fb73b195c500aed0884227c7a4f15 | |
parent | 25adac3dbdf265811b56384cc133f7e6c4b12023 (diff) | |
download | android_hardware_qcom_media-80f2af2699a299e857e7acc8f33337e45dfc3a1b.tar.gz android_hardware_qcom_media-80f2af2699a299e857e7acc8f33337e45dfc3a1b.tar.bz2 android_hardware_qcom_media-80f2af2699a299e857e7acc8f33337e45dfc3a1b.zip |
encoder: increase the input buffer count from 9 to 12
This is to reduce the chance of frame drops during high speed recording
or with high system load.
Bug: 24227252
Change-Id: I353a9ea5427eb7dc3f7a153abc75bc7f1514e455
-rw-r--r-- | mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp b/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp index 7ad8ca2a..8266ee0b 100644 --- a/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp +++ b/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp @@ -1202,6 +1202,8 @@ bool venc_dev::venc_get_buf_req(OMX_U32 *min_buff_count, if (m_sVenc_cfg.input_height * m_sVenc_cfg.input_width >= 3840*2160) { DEBUG_PRINT_LOW("Increasing buffer count = %d to 11", bufreq.count); bufreq.count = 11; + } else { + bufreq.count = 12; } bufreq.type=V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; |