diff options
author | Zhijun He <zhijunhe@google.com> | 2015-09-25 23:11:15 -0700 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2015-09-26 14:53:57 -0700 |
commit | dd826103a6c76f67897eaa2afafd8db9548195dc (patch) | |
tree | 055387289e7fb73b195c500aed0884227c7a4f15 | |
parent | de79ca9a5dd4d8b53906a3085b07985328a0d930 (diff) | |
download | android_hardware_qcom_media-dd826103a6c76f67897eaa2afafd8db9548195dc.tar.gz android_hardware_qcom_media-dd826103a6c76f67897eaa2afafd8db9548195dc.tar.bz2 android_hardware_qcom_media-dd826103a6c76f67897eaa2afafd8db9548195dc.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; |