summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-10-14 22:24:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-14 22:24:22 +0000
commitf0ca2ade534275f624daea5ae3ba907a5c63afa6 (patch)
treeda800dc84a5b610be77b053092fead1882403faf
parent88e5118f07f38c96d5b438a44c42b0951c65ba0d (diff)
parent53aad5e7de7619cbc9b0d9a0a0830fc29c331f8d (diff)
downloadframeworks_native-f0ca2ade534275f624daea5ae3ba907a5c63afa6.tar.gz
frameworks_native-f0ca2ade534275f624daea5ae3ba907a5c63afa6.tar.bz2
frameworks_native-f0ca2ade534275f624daea5ae3ba907a5c63afa6.zip
am 53aad5e7: am 3454f123: media: add kMetadataBufferTypeGraphicBuffer
* commit '53aad5e7de7619cbc9b0d9a0a0830fc29c331f8d': media: add kMetadataBufferTypeGraphicBuffer
-rw-r--r--include/media/hardware/MetadataBufferType.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/media/hardware/MetadataBufferType.h b/include/media/hardware/MetadataBufferType.h
index 4eaf8ac29..5876c40f6 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;