diff options
author | Lajos Molnar <lajos@google.com> | 2013-07-17 14:55:55 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2013-07-17 15:12:27 -0700 |
commit | 5f39f6043da49ca7ab1f682374e055deb73b0c89 (patch) | |
tree | 904403ed24d57d91ad44b808cff5dfe76a412a93 /include/media/hardware | |
parent | 59a99aaad08e9d8163257ae67e562c69369d52a1 (diff) | |
download | frameworks_native-5f39f6043da49ca7ab1f682374e055deb73b0c89.zip frameworks_native-5f39f6043da49ca7ab1f682374e055deb73b0c89.tar.gz frameworks_native-5f39f6043da49ca7ab1f682374e055deb73b0c89.tar.bz2 |
Clarify some android-specific OMX extensions for native buffers.
Clarify the use of enableAndroidNativeBuffers and
storeMetaDataInBuffers extensions.
Change-Id: Ia1ca4a262525de74f133619f92ef6ba8271a6f72
Signed-off-by: Lajos Molnar <lajos@google.com>
Diffstat (limited to 'include/media/hardware')
-rw-r--r-- | include/media/hardware/HardwareAPI.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/media/hardware/HardwareAPI.h b/include/media/hardware/HardwareAPI.h index a6a849d..ac67f94 100644 --- a/include/media/hardware/HardwareAPI.h +++ b/include/media/hardware/HardwareAPI.h @@ -38,9 +38,13 @@ namespace android { // // When Android native buffer use has been enabled for a given port, the video // color format for the port is to be interpreted as an Android pixel format -// rather than an OMX color format. The node should then expect to receive -// UseAndroidNativeBuffer calls (via OMX_SetParameter) rather than UseBuffer -// calls for that port. +// rather than an OMX color format. Enabling Android native buffers may also +// change how the component receives the native buffers. If store-metadata-mode +// is enabled on the port, the component will receive the buffers as specified +// in the section below. Otherwise, unless the node supports the +// 'OMX.google.android.index.useAndroidNativeBuffer2' extension, it should +// expect to receive UseAndroidNativeBuffer calls (via OMX_SetParameter) rather +// than UseBuffer calls for that port. struct EnableAndroidNativeBuffersParams { OMX_U32 nSize; OMX_VERSIONTYPE nVersion; @@ -62,11 +66,15 @@ struct EnableAndroidNativeBuffersParams { // // Currently, this is specifically used to pass meta data from video source // (camera component, for instance) to video encoder to avoid memcpying of -// input video frame data. To do this, bStoreMetaDta is set to OMX_TRUE. +// input video frame data. To do this, bStoreMetaData is set to OMX_TRUE. // If bStoreMetaData is set to false, real YUV frame data will be stored // in the buffers. In addition, if no OMX_SetParameter() call is made // with the corresponding extension index, real YUV data is stored // in the buffers. +// +// For video decoder output port, the metadata buffer layout is defined below. +// +// Metadata buffers are registered with the component using UseBuffer calls. struct StoreMetaDataInBuffersParams { OMX_U32 nSize; OMX_VERSIONTYPE nVersion; |