diff options
| author | Chang Ying <ying.chang@intel.com> | 2013-03-21 17:50:17 +0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:51 -0700 |
| commit | cdc52a0c7741ed048da15d9ef44d8fcb0d168cef (patch) | |
| tree | dfa3994b91df3077f93efb2c3c3430d8915a5f7b /videocodec/OMXVideoEncoderMPEG4.cpp | |
| parent | 5096d08f3afc029d82f2e2a34aa1fb8a427ce050 (diff) | |
| download | android_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/OMXVideoEncoderMPEG4.cpp')
| -rw-r--r-- | videocodec/OMXVideoEncoderMPEG4.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/videocodec/OMXVideoEncoderMPEG4.cpp b/videocodec/OMXVideoEncoderMPEG4.cpp index e8f6b14..46ab444 100644 --- a/videocodec/OMXVideoEncoderMPEG4.cpp +++ b/videocodec/OMXVideoEncoderMPEG4.cpp @@ -108,11 +108,13 @@ OMX_ERRORTYPE OMXVideoEncoderMPEG4::ProcessorProcess( inBuf.flag = 0; inBuf.timeStamp = buffers[INPORT_INDEX]->nTimeStamp; +#ifdef IMG_GFX if (bAndroidOpaqueFormat) { mCurHandle = rgba2nv12conversion(buffers[INPORT_INDEX]); if (mCurHandle < 0) return OMX_ErrorUndefined; } +#endif LOGV("inBuf.data=%x, size=%d", (unsigned)inBuf.data, inBuf.size); @@ -237,6 +239,7 @@ out: if (retains[OUTPORT_INDEX] == BUFFER_RETAIN_NOT_RETAIN) mFrameOutputCount ++; +#ifdef IMG_GFX if (bAndroidOpaqueFormat && buffers[INPORT_INDEX]->nFilledLen != 0) { // Restore input buffer's content buffers[INPORT_INDEX]->nFilledLen = 4 + sizeof(buffer_handle_t); @@ -244,6 +247,7 @@ out: buffers[INPORT_INDEX]->nFilledLen); } +#endif return oret; |
