From 80f2af2699a299e857e7acc8f33337e45dfc3a1b Mon Sep 17 00:00:00 2001 From: Zhijun He Date: Fri, 25 Sep 2015 23:11:15 -0700 Subject: 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 --- mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3