diff options
author | Ed Tam <etam@google.com> | 2014-11-27 00:21:02 -0800 |
---|---|---|
committer | Ed Tam <etam@google.com> | 2014-11-27 00:21:02 -0800 |
commit | c214ebefec0a4f5ce329854bebcc50e1028283ab (patch) | |
tree | 391e4ea457559b06b203ee7835b1c043cda01a7b | |
parent | d6acef05e41af96ff00f2c579e3f9c96cb1a0530 (diff) | |
download | utils-c214ebefec0a4f5ce329854bebcc50e1028283ab.tar.gz |
Support YV12 input format addendum
Pick up missing changes from previous commit.
Change-Id: I40d918bc49602a85e71e461f49b42d49c1539cb3
BZ: 229540
Bug: 17383204
-rw-r--r-- | ISV/omx/isv_omxcomponent.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ISV/omx/isv_omxcomponent.cpp b/ISV/omx/isv_omxcomponent.cpp index cb96c54..5a23fb1 100644 --- a/ISV/omx/isv_omxcomponent.cpp +++ b/ISV/omx/isv_omxcomponent.cpp @@ -415,6 +415,18 @@ OMX_ERRORTYPE ISVComponent::ISV_SetConfig( { ALOGD_IF(ISV_COMPONENT_DEBUG, "%s: nIndex 0x%08x", __func__, nIndex); + if (nIndex == static_cast<OMX_INDEXTYPE>(OMX_IndexConfigAutoFramerateConversion)) { + OMX_CONFIG_BOOLEANTYPE *config = static_cast<OMX_CONFIG_BOOLEANTYPE*>(pComponentConfigStructure); + if (config->bEnabled) { + mVPPEnabled = true; + ALOGI("%s: mVPPEnabled=true", __func__); + } else { + mVPPEnabled = false; + ALOGI("%s: mVPPEnabled=false", __func__); + } + return OMX_ErrorNone; + } + return OMX_SetConfig(mComponent, nIndex, pComponentConfigStructure); } |