commit | 80f2af2699a299e857e7acc8f33337e45dfc3a1b | [log] [tgz] |
---|---|---|
author | Zhijun He <zhijunhe@google.com> | Fri Sep 25 23:11:15 2015 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Sat Sep 26 19:50:42 2015 +0000 |
tree | 055387289e7fb73b195c500aed0884227c7a4f15 | |
parent | 25adac3dbdf265811b56384cc133f7e6c4b12023 [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;