diff options
| author | Jason Hu <jason.hu@intel.com> | 2013-03-28 20:19:29 -0400 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:51 -0700 |
| commit | 6c0caf31352222cdfe6f7a86d206ec5645789b4a (patch) | |
| tree | 8b36df8a1a9e433ce0dc5f013a20e1966aa9755a /videocodec/OMXVideoDecoderBase.cpp | |
| parent | cdc52a0c7741ed048da15d9ef44d8fcb0d168cef (diff) | |
| download | android_hardware_intel_common_omx-components-6c0caf31352222cdfe6f7a86d206ec5645789b4a.tar.gz android_hardware_intel_common_omx-components-6c0caf31352222cdfe6f7a86d206ec5645789b4a.tar.bz2 android_hardware_intel_common_omx-components-6c0caf31352222cdfe6f7a86d206ec5645789b4a.zip | |
Pass top/bottom field info back to OMX client.
BZ: 95641
This info is used by VPP module in OMXCodec.
Change-Id: I87ac2c5c84409c0ad7c93091598d97276f675b84
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/98952
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'videocodec/OMXVideoDecoderBase.cpp')
| -rwxr-xr-x | videocodec/OMXVideoDecoderBase.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderBase.cpp b/videocodec/OMXVideoDecoderBase.cpp index b150a3e..15bade2 100755 --- a/videocodec/OMXVideoDecoderBase.cpp +++ b/videocodec/OMXVideoDecoderBase.cpp @@ -516,6 +516,10 @@ OMX_ERRORTYPE OMXVideoDecoderBase::FillRenderBuffer(OMX_BUFFERHEADERTYPE **pBuff } buffer->nFlags = OMX_BUFFERFLAG_ENDOFFRAME; +#ifdef BUFFERFLAG_EXT + if (renderBuffer->scanFormat & (VA_TOP_FIELD | VA_BOTTOM_FIELD)) + buffer->nFlags |= OMX_BUFFERFLAG_FIELD; +#endif buffer->nTimeStamp = renderBuffer->timeStamp; if (mWorkingMode == GRAPHICBUFFER_MODE) { |
