Merge "Add SMPTE2086 structures"
diff --git a/include/system/graphics.h b/include/system/graphics.h
index 449b8c7..1a99187 100644
--- a/include/system/graphics.h
+++ b/include/system/graphics.h
@@ -237,6 +237,26 @@
#endif
};
+/**
+ * These structures are used to define the reference display's
+ * capabilities for HDR content. Display engine can use this
+ * to better tone map content to user's display.
+ * Color is defined in CIE XYZ coordinates
+ */
+struct android_xy_color {
+ float x;
+ float y;
+};
+
+struct android_smpte2086_metadata {
+ struct android_xy_color displayPrimaryRed;
+ struct android_xy_color displayPrimaryGreen;
+ struct android_xy_color displayPrimaryBlue;
+ struct android_xy_color whitePoint;
+ float maxLuminance;
+ float minLuminance;
+};
+
#ifdef __cplusplus
}
#endif