commit | dd826103a6c76f67897eaa2afafd8db9548195dc | [log] [tgz] |
---|---|---|
author | Zhijun He <zhijunhe@google.com> | Fri Sep 25 23:11:15 2015 -0700 |
committer | The Android Automerger <android-build@google.com> | Sat Sep 26 14:53:57 2015 -0700 |
tree | 055387289e7fb73b195c500aed0884227c7a4f15 | |
parent | de79ca9a5dd4d8b53906a3085b07985328a0d930 [diff] |
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
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 7ad8ca2..8266ee0 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 @@ 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;