aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgji2 <guoliang.ji@intel.com>2014-06-15 23:01:10 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:44 -0700
commita55635021d692b693ba02505ec23e8ae0298e6e2 (patch)
tree50cc0e430576a7c0de7e766940228cc5655abe53
parent0ceca291410b2b389066f7c40161c6abe2f19ce1 (diff)
downloadwrs_omxil_core-a55635021d692b693ba02505ec23e8ae0298e6e2.tar.gz
refine the resolution limit to 2kx2k
BZ: 203614 refine the resolution limit to 2kx2k Change-Id: I1d0816df26bb337859b57cb27fc32c6986e9ae6e Signed-off-by: gji2 <guoliang.ji@intel.com>
-rw-r--r--base/src/componentbase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp
index aab3995..902952d 100644
--- a/base/src/componentbase.cpp
+++ b/base/src/componentbase.cpp
@@ -577,9 +577,6 @@ OMX_ERRORTYPE ComponentBase::CBaseSetParameter(
return OMX_ErrorIncorrectStateOperation;
}
- if (p->format.video.nFrameWidth > 1920 || p->format.video.nFrameHeight > 1088)
- return OMX_ErrorUnsupportedSetting;
-
if (index == 1 && mEnableAdaptivePlayback == OMX_TRUE) {
if (p->format.video.nFrameWidth < mMaxFrameWidth)
p->format.video.nFrameWidth = mMaxFrameWidth;
@@ -588,6 +585,9 @@ OMX_ERRORTYPE ComponentBase::CBaseSetParameter(
}
if (working_role != NULL && !strncmp((char*)working_role, "video_encoder", 13)) {
+ if (p->format.video.nFrameWidth > 2048 || p->format.video.nFrameHeight > 2048)
+ return OMX_ErrorUnsupportedSetting;
+
if(p->format.video.eColorFormat == OMX_COLOR_FormatUnused)
p->nBufferSize = p->format.video.nFrameWidth * p->format.video.nFrameHeight *3/2;
}