diff options
author | Lajos Molnar <lajos@google.com> | 2014-10-14 22:29:56 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-14 22:29:56 +0000 |
commit | a1c1a99e7deadd05b34ef0a758e5277de66f3f7d (patch) | |
tree | 3979a162a0517657a932eb6570d4d113ecb52a8d | |
parent | 86636a988f6a3bd52d4c8a29ae4ed71ec4e7eae3 (diff) | |
parent | f0ca2ade534275f624daea5ae3ba907a5c63afa6 (diff) | |
download | frameworks_native-a1c1a99e7deadd05b34ef0a758e5277de66f3f7d.zip frameworks_native-a1c1a99e7deadd05b34ef0a758e5277de66f3f7d.tar.gz frameworks_native-a1c1a99e7deadd05b34ef0a758e5277de66f3f7d.tar.bz2 |
am f0ca2ade: am 53aad5e7: am 3454f123: media: add kMetadataBufferTypeGraphicBuffer
* commit 'f0ca2ade534275f624daea5ae3ba907a5c63afa6':
media: add kMetadataBufferTypeGraphicBuffer
-rw-r--r-- | include/media/hardware/MetadataBufferType.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/media/hardware/MetadataBufferType.h b/include/media/hardware/MetadataBufferType.h index 4eaf8ac..5876c40 100644 --- a/include/media/hardware/MetadataBufferType.h +++ b/include/media/hardware/MetadataBufferType.h @@ -82,6 +82,24 @@ typedef enum { */ kMetadataBufferTypeGrallocSource = 1, + /* + * kMetadataBufferTypeGraphicBuffer is used to indicate that + * the payload of the metadata buffers can be interpreted as + * a GraphicBuffer. It is only to be used by software encoders. + * In this case, the metadata that the encoder receives + * will have a byte stream that consists of two parts: + * 1. First, there is an integer indicating that the metadata + * contains a GraphicBuffer (kMetadataBufferTypeGraphicBuffer) + * 2. This is followed by the pointer to the GraphicBuffer that + * is to be encoded. Encoder must not create a sp<> from this + * graphic buffer, or free it, as it does not actually own this + * buffer. + * -------------------------------------------------------------- + * | kMetadataBufferTypeGraphicBuffer | sizeof(GraphicBuffer *) | + * -------------------------------------------------------------- + */ + kMetadataBufferTypeGraphicBuffer = 2, + // Add more here... } MetadataBufferType; |