summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGopikrishnaiah Anandan <agopik@codeaurora.org>2017-09-01 16:14:20 -0700
committerGopikrishnaiah Anandan <agopik@codeaurora.org>2017-11-21 11:18:42 -0800
commit11eefc92c47c2f268efd35f80726af124abcc61f (patch)
tree9d8bcd650f52a3a282aeb47136a5b4071aaf0b75 /include
parent28f871dabaab85700f02e432f4080237cad91103 (diff)
sdm: Add support for dynamic color metadata
Change updates the dynamic color metadata interface for HDR10. Move the creation of colormanager before registering the display to allow passing the hdr library interface to color manager. CRs-Fixed: 2102517 Change-Id: I51723e896168648fac74515d2f72b6c743673e8e
Diffstat (limited to 'include')
-rw-r--r--include/color_metadata.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/color_metadata.h b/include/color_metadata.h
index aff6fc93..3ddf7577 100644
--- a/include/color_metadata.h
+++ b/include/color_metadata.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
@@ -30,6 +30,7 @@ extern "C" {
#else
#include <stdbool.h>
#endif
+#include <stdint.h>
typedef enum ColorRange {
Range_Limited = 0,
@@ -136,6 +137,7 @@ typedef struct ColorRemappingInfo {
uint32_t crPostLutTargetValue[3*33];
} ColorRemappingInfo;
+#define HDR_DYNAMIC_META_DATA_SZ 1024
typedef struct ColorMetaData {
// Default values based on sRGB, needs to be overridden in gralloc
// based on the format and size.
@@ -147,6 +149,11 @@ typedef struct ColorMetaData {
MasteringDisplay masteringDisplayInfo;
ContentLightLevel contentLightLevel;
ColorRemappingInfo cRI;
+
+ // Dynamic meta data elements
+ bool dynamicMetaDataValid;
+ uint32_t dynamicMetaDataLen;
+ uint8_t dynamicMetaDataPayload[HDR_DYNAMIC_META_DATA_SZ];
} ColorMetaData;
typedef struct Color10Bit {