aboutsummaryrefslogtreecommitdiffstats
path: root/videocodec/OMXVideoEncoderAVC.cpp
diff options
context:
space:
mode:
authorChang Ying <ying.chang@intel.com>2013-03-21 17:50:17 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:02:51 -0700
commitcdc52a0c7741ed048da15d9ef44d8fcb0d168cef (patch)
treedfa3994b91df3077f93efb2c3c3430d8915a5f7b /videocodec/OMXVideoEncoderAVC.cpp
parent5096d08f3afc029d82f2e2a34aa1fb8a427ce050 (diff)
downloadandroid_hardware_intel_common_omx-components-cdc52a0c7741ed048da15d9ef44d8fcb0d168cef.tar.gz
android_hardware_intel_common_omx-components-cdc52a0c7741ed048da15d9ef44d8fcb0d168cef.tar.bz2
android_hardware_intel_common_omx-components-cdc52a0c7741ed048da15d9ef44d8fcb0d168cef.zip
VE: resolve compile issue on baytrail
BZ: 94688 Remove dependance on IMG legacy data structure on baytrail. Change-Id: I267ecefdb8ceaaa0c5c55c58d019e2fb8851dab9 Signed-off-by: Chang Ying <ying.chang@intel.com> Reviewed-on: http://android.intel.com:8080/97700 Reviewed-by: cactus <cactus@intel.com> Reviewed-by: Feng, Wei <wei.feng@intel.com> Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com> Reviewed-by: Gummadi, Latha C <latha.c.gummadi@intel.com> Tested-by: Gummadi, Latha C <latha.c.gummadi@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'videocodec/OMXVideoEncoderAVC.cpp')
-rwxr-xr-xvideocodec/OMXVideoEncoderAVC.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/videocodec/OMXVideoEncoderAVC.cpp b/videocodec/OMXVideoEncoderAVC.cpp
index 4bfd7f3..7d6df97 100755
--- a/videocodec/OMXVideoEncoderAVC.cpp
+++ b/videocodec/OMXVideoEncoderAVC.cpp
@@ -553,11 +553,13 @@ OMX_ERRORTYPE OMXVideoEncoderAVC::ProcessorProcess(
eInfo.DataRetrieved, CacheOperationStr[eInfo.CacheOperation], eInfo.EndOfEncode );
//for live effect
+#ifdef IMG_GFX
if (bAndroidOpaqueFormat) {
mCurHandle = rgba2nv12conversion(buffers[INPORT_INDEX]);
if (mCurHandle < 0)
return OMX_ErrorUndefined;
}
+#endif
if (eInfo.CacheOperation == CACHE_PUSH) {
ProcessCacheOperation(buffers, retains, &eInfo);
@@ -615,12 +617,14 @@ OMX_ERRORTYPE OMXVideoEncoderAVC::ProcessorProcess(
exit:
+#ifdef IMG_GFX
if (bAndroidOpaqueFormat && buffers[INPORT_INDEX]->nFilledLen != 0) {
// Restore input buffer's content
buffers[INPORT_INDEX]->nFilledLen = 4 + sizeof(buffer_handle_t);
memcpy(buffers[INPORT_INDEX]->pBuffer, mBufferHandleMaps[mCurHandle].backBuffer,
buffers[INPORT_INDEX]->nFilledLen);
}
+#endif
/* restore all states into input OMX buffer
*/