diff options
author | Jeong-Seok Yang <jseok.yang@samsung.com> | 2010-12-30 18:21:37 +0900 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-01-27 14:37:18 -0800 |
commit | 2083387f76afd743b1a4a905532e2a981a686219 (patch) | |
tree | 7b21661cf3397a5bf9778b7615a84935fb0b0bca /libcamera | |
parent | 68733d5982bc905c9668547659d84e75a908a996 (diff) | |
download | device_samsung_crespo-2083387f76afd743b1a4a905532e2a981a686219.zip device_samsung_crespo-2083387f76afd743b1a4a905532e2a981a686219.tar.gz device_samsung_crespo-2083387f76afd743b1a4a905532e2a981a686219.tar.bz2 |
libcamera: for setting fixed frame rate on only camcording mode
Camera sensor change its frame rate by brightness.
It makes video that have too low fps in the dark.
So it use fixed frame rate on camcording mode.
Change-Id: I293c480ffdc4daed138ad9a11231f16c6c2b2f8b
Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
Diffstat (limited to 'libcamera')
-rwxr-xr-x | libcamera/SecCamera.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcamera/SecCamera.cpp b/libcamera/SecCamera.cpp index 6998a5d..68e29fa 100755 --- a/libcamera/SecCamera.cpp +++ b/libcamera/SecCamera.cpp @@ -929,6 +929,10 @@ int SecCamera::startRecord(void) m_recording_height, V4L2_PIX_FMT_NV12T, 0); CHECK(ret); + ret = fimc_v4l2_s_ctrl(m_cam_fd, V4L2_CID_CAMERA_FRAME_RATE, + m_params->capture.timeperframe.denominator); + CHECK(ret); + ret = fimc_v4l2_reqbufs(m_cam_fd2, V4L2_BUF_TYPE_VIDEO_CAPTURE, MAX_BUFFERS); CHECK(ret); @@ -974,6 +978,10 @@ int SecCamera::stopRecord(void) ret = fimc_v4l2_streamoff(m_cam_fd2); CHECK(ret); + ret = fimc_v4l2_s_ctrl(m_cam_fd, V4L2_CID_CAMERA_FRAME_RATE, + FRAME_RATE_AUTO); + CHECK(ret); + return 0; } |