diff options
author | Rachad <rachad@google.com> | 2014-07-29 17:53:53 -0700 |
---|---|---|
committer | Rachad Alao <rachad@google.com> | 2014-08-04 21:57:22 +0000 |
commit | 7cb0d39016ff8061fe9fc2967870c145a6ffa2ac (patch) | |
tree | 6407f61644a68ed8e7df89d975621f79f748de5c /include/media | |
parent | 812e039aeb42c1a3c8bb8246c114f54115a335da (diff) | |
download | frameworks_native-7cb0d39016ff8061fe9fc2967870c145a6ffa2ac.zip frameworks_native-7cb0d39016ff8061fe9fc2967870c145a6ffa2ac.tar.gz frameworks_native-7cb0d39016ff8061fe9fc2967870c145a6ffa2ac.tar.bz2 |
Tunneled Video Playback support
Added native_window_set_sideband_stream() method to Surface.[h|cpp]
Added ConfigureVideoTunnelModeParams OMX configuration structure to
HardwareAPI.h
Bug: 16132368
Change-Id: I28fa1b9dbe858d93e353e0991098cad45c626bd9
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/hardware/HardwareAPI.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/media/hardware/HardwareAPI.h b/include/media/hardware/HardwareAPI.h index 88e7ad3..90150c6 100644 --- a/include/media/hardware/HardwareAPI.h +++ b/include/media/hardware/HardwareAPI.h @@ -214,6 +214,27 @@ struct DescribeColorFormatParams { MediaImage sMediaImage; }; +// A pointer to this struct is passed to OMX_SetParameter or OMX_GetParameter +// when the extension index for the +// 'OMX.google.android.index.configureVideoTunnelMode' extension is given. +// If the extension is supported then tunneled playback mode should be supported +// by the codec. If bTunneled is set to OMX_TRUE then the video decoder should +// operate in "tunneled" mode and output its decoded frames directly to the +// sink. In this case nAudioHwSync is the HW SYNC ID of the audio HAL Output +// stream to sync the video with. If bTunneled is set to OMX_FALSE, "tunneled" +// mode should be disabled and nAudioHwSync should be ignored. +// OMX_GetParameter is used to query tunneling configuration. bTunneled should +// return whether decoder is operating in tunneled mode, and if it is, +// pSidebandWindow should contain the codec allocated sideband window handle. +struct ConfigureVideoTunnelModeParams { + OMX_U32 nSize; // IN + OMX_VERSIONTYPE nVersion; // IN + OMX_U32 nPortIndex; // IN + OMX_BOOL bTunneled; // IN/OUT + OMX_U32 nAudioHwSync; // IN + OMX_PTR pSidebandWindow; // OUT +}; + } // namespace android extern android::OMXPluginBase *createOMXPlugin(); |