media/hardware/HardwareAPI.h: Added metadata struct used by video decoder

This is the metadata layout when used by the video decoder.

Change-Id: I3497305ad23b3fc4e1e8eaaea7b0890bc1ffd5ad
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 7093648
This commit is contained in:
Lajos Molnar 2013-05-03 13:20:53 -07:00
parent ae772278fe
commit 07d93d197a

View File

@ -19,6 +19,7 @@
#define HARDWARE_API_H_ #define HARDWARE_API_H_
#include <OMXPluginBase.h> #include <OMXPluginBase.h>
#include <MetadataBufferType.h>
#include <system/window.h> #include <system/window.h>
#include <utils/RefBase.h> #include <utils/RefBase.h>
@ -73,6 +74,13 @@ struct StoreMetaDataInBuffersParams {
OMX_BOOL bStoreMetaData; OMX_BOOL bStoreMetaData;
}; };
// Meta data buffer layout used to transport output frames to the decoder for
// dynamic buffer handling.
struct VideoDecoderOutputMetaData {
MetadataBufferType eType;
buffer_handle_t pHandle;
};
// A pointer to this struct is passed to OMX_SetParameter when the extension // A pointer to this struct is passed to OMX_SetParameter when the extension
// index for the 'OMX.google.android.index.useAndroidNativeBuffer' extension is // index for the 'OMX.google.android.index.useAndroidNativeBuffer' extension is
// given. This call will only be performed if a prior call was made with the // given. This call will only be performed if a prior call was made with the