diff options
author | Tyler Luu <tluu@ti.com> | 2011-10-28 14:50:45 -0500 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-10-28 14:30:42 -0700 |
commit | fbe42410f9ff718db8d0e4bdf7e6495449682799 (patch) | |
tree | d9ef12928f21e2d63d645359d1a1794a34830b63 /camera | |
parent | 8abd3784aac70f6b89b9334c9c562d71254fed7c (diff) | |
download | hardware_ti_omap4-fbe42410f9ff718db8d0e4bdf7e6495449682799.zip hardware_ti_omap4-fbe42410f9ff718db8d0e4bdf7e6495449682799.tar.gz hardware_ti_omap4-fbe42410f9ff718db8d0e4bdf7e6495449682799.tar.bz2 |
CameraHal: Limit 1080p framerate max
Change-Id: Ic02b60940f80d309f9a87b6e1307fbbdd0c592ff
Signed-off-by: Tyler Luu <tluu@ti.com>
related-to-bug: 5508276
Diffstat (limited to 'camera')
-rwxr-xr-x | camera/OMXCameraAdapter/OMXCameraAdapter.cpp | 6 | ||||
-rw-r--r-- | camera/OMXCameraAdapter/OMXCapabilities.cpp | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp index 6dab841..f7bd45f 100755 --- a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp +++ b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp @@ -490,6 +490,12 @@ status_t OMXCameraAdapter::setParameters(const CameraParameters ¶ms) } } + // TODO(XXX): Limiting 1080p to (24,24) or (15,15) for now. Need to remove later. + if ((w >= 1920) && (h >= 1080)) { + cap->mMaxFrameRate = cap->mMinFrameRate; + setVFramerate(cap->mMinFrameRate, cap->mMaxFrameRate); + } + if ( 0 < frameRate ) { cap->mColorFormat = pixFormat; diff --git a/camera/OMXCameraAdapter/OMXCapabilities.cpp b/camera/OMXCameraAdapter/OMXCapabilities.cpp index db7a46b..9a6db24 100644 --- a/camera/OMXCameraAdapter/OMXCapabilities.cpp +++ b/camera/OMXCameraAdapter/OMXCapabilities.cpp @@ -196,7 +196,10 @@ const CapU32Pair OMXCameraAdapter::mVarFramerates [] = { { 15, 15, "(15000,15000)"}, { 30, 15, "(15000,30000)" }, { 30, 24, "(24000,30000)" }, +// TODO(XXX): Removing 30,30 range to limit 1080p at 24fps. Will put back soon. +#if 0 { 30, 30, "(30000,30000)" }, +#endif }; /************************************ * static helper functions |