summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Stoza2016-03-24 12:38:46 -0500
committerDan Stoza2016-03-24 12:38:46 -0500
commitbb1deda59b74392d0d771ea4e54ef6e61d5e598a (patch)
tree854f9881107a147ba838056530fcdafca8fe481a /include/system
parent6eb4eab106bd5161373adb61bb81e926a8575134 (diff)
downloadplatform-system-core-bb1deda59b74392d0d771ea4e54ef6e61d5e598a.tar.gz
platform-system-core-bb1deda59b74392d0d771ea4e54ef6e61d5e598a.tar.xz
platform-system-core-bb1deda59b74392d0d771ea4e54ef6e61d5e598a.zip
graphics.h: Add android_color_transform_t
Adds android_color_transform_t, which specifies a range of color transforms which may be applied to the whole display. Bug: 22767098 Change-Id: Iaf03915c09ac0bdd18512b5f78c39da1705bda08
Diffstat (limited to 'include/system')
-rw-r--r--include/system/graphics.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/system/graphics.h b/include/system/graphics.h
index 880cb9fb0..eabe18e8d 100644
--- a/include/system/graphics.h
+++ b/include/system/graphics.h
@@ -1038,6 +1038,34 @@ typedef enum android_dataspace {
1038 1038
1039} android_dataspace_t; 1039} android_dataspace_t;
1040 1040
1041/*
1042 * Color transforms that may be applied by hardware composer to the whole
1043 * display.
1044 */
1045typedef enum android_color_transform {
1046 /* Applies no transform to the output color */
1047 HAL_COLOR_TRANSFORM_IDENTITY = 0,
1048
1049 /* Applies an arbitrary transform defined by a 4x4 affine matrix */
1050 HAL_COLOR_TRANSFORM_ARBITRARY_MATRIX = 1,
1051
1052 /* Applies a transform that inverts the value or luminance of the color, but
1053 * does not modify hue or saturation */
1054 HAL_COLOR_TRANSFORM_VALUE_INVERSE = 2,
1055
1056 /* Applies a transform that maps all colors to shades of gray */
1057 HAL_COLOR_TRANSFORM_GRAYSCALE = 3,
1058
1059 /* Applies a transform which corrects for protanopic color blindness */
1060 HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA = 4,
1061
1062 /* Applies a transform which corrects for deuteranopic color blindness */
1063 HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA = 5,
1064
1065 /* Applies a transform which corrects for tritanopic color blindness */
1066 HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA = 6
1067} android_color_transform_t;
1068
1041#ifdef __cplusplus 1069#ifdef __cplusplus
1042} 1070}
1043#endif 1071#endif