From 7f7c1c5de62c7bbc9932488ef7b87786975a282a Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Thu, 24 Mar 2016 10:35:37 -0700 Subject: [PATCH] graphics.h: Add android_hdr_t Adds android_hdr_t, which specifies different types of high dynamic range encodings to be used throughout the system. Bug: 25684127 Change-Id: Ic92bb5dc64494e643b828a8e24af8760e74e2360 --- include/system/graphics.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/system/graphics.h b/include/system/graphics.h index eabe18e8d..a9e451f5f 100644 --- a/include/system/graphics.h +++ b/include/system/graphics.h @@ -1066,6 +1066,20 @@ typedef enum android_color_transform { HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA = 6 } android_color_transform_t; +/* + * Supported HDR formats. Must be kept in sync with equivalents in Display.java. + */ +typedef enum android_hdr { + /* Device supports Dolby Vision HDR */ + HAL_HDR_DOLBY_VISION = 1, + + /* Device supports HDR10 */ + HAL_HDR_HDR10 = 2, + + /* Device supports hybrid log-gamma HDR */ + HAL_HDR_HLG = 3 +} android_hdr_t; + #ifdef __cplusplus } #endif