diff options
author | Jeong-Seok Yang <jseok.yang@samsung.com> | 2011-01-29 08:02:31 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-29 08:02:31 -0800 |
commit | 008372584725809375eb9c406165ffd52fa6f56f (patch) | |
tree | 95997fe5b48576cb257ce3c757db62c88f4627c8 /libcamera | |
parent | 141384deab44bab1f3fc8dbb245e20ccac0170ea (diff) | |
parent | 2f969b94c12bac9cee7c001c041c1532f1a25cf2 (diff) | |
download | device_samsung_crespo-008372584725809375eb9c406165ffd52fa6f56f.zip device_samsung_crespo-008372584725809375eb9c406165ffd52fa6f56f.tar.gz device_samsung_crespo-008372584725809375eb9c406165ffd52fa6f56f.tar.bz2 |
am 2f969b94: am 2083387f: libcamera: for setting fixed frame rate on only camcording mode
* commit '2f969b94c12bac9cee7c001c041c1532f1a25cf2':
libcamera: for setting fixed frame rate on only camcording mode
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; } |