diff options
author | Lajos Molnar <lajos@google.com> | 2014-10-13 22:56:09 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-10-13 22:58:03 -0700 |
commit | 3454f123d0a10bd0ce0760828996aa26c80a8fd4 (patch) | |
tree | 1546346dd271ef16534d243e8633581a8c7b8134 /include | |
parent | ffb497743831ae4857b674629b58ea3c46d01431 (diff) | |
download | frameworks_native-3454f123d0a10bd0ce0760828996aa26c80a8fd4.zip frameworks_native-3454f123d0a10bd0ce0760828996aa26c80a8fd4.tar.gz frameworks_native-3454f123d0a10bd0ce0760828996aa26c80a8fd4.tar.bz2 |
media: add kMetadataBufferTypeGraphicBuffer
Bug: 17935149
Change-Id: I1c26d1e83d8fa0a9ccdb25f6f3b19a86b1dc6f37
Diffstat (limited to 'include')
-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; |