gralloc: Introduce custom content metadata structure
Introduce a structure definition for custom content metadata.
This structure is intended to be used with the new dynamic memory
region intended to store custom content metadata that exceeds the
base 1KB region allocated.
Change-Id: I66880102b4c441422bcd4a60923010098f641d8c
diff --git a/gralloc/color_extensions.h b/gralloc/color_extensions.h
new file mode 100644
index 0000000..f670162
--- /dev/null
+++ b/gralloc/color_extensions.h
@@ -0,0 +1,18 @@
+/*
+* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+* SPDX-License-Identifier: BSD-3-Clause-Clear
+*/
+#include <cstdint>
+
+#ifndef __COLOREXTENSIONS_H__
+#define __COLOREXTENSIONS_H__
+
+#define CUSTOM_METADATA_SIZE_BYTES 1024*42
+typedef struct CustomContentMetadata {
+ uint64_t size;
+ uint8_t metadataPayload[CUSTOM_METADATA_SIZE_BYTES];
+} CustomContentMetadata;
+
+
+#endif // __COLOREXTENSIONS_H__
+