From e1128319c4b19209a0f420d3ac5eefc366c7c373 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Wed, 3 Jan 2018 12:03:58 -0700 Subject: Add Dataspace and PixelFormats to support HDR Bug: 63710530 Test: make Change-Id: I40c668978972598d057e4302f27ebc65f59cf895 --- libsystem/include/system/graphics-base-v1.1.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsystem/include/system/graphics-base-v1.1.h b/libsystem/include/system/graphics-base-v1.1.h index 3d5c3c0cf..12d01c17f 100644 --- a/libsystem/include/system/graphics-base-v1.1.h +++ b/libsystem/include/system/graphics-base-v1.1.h @@ -16,8 +16,16 @@ typedef enum { HAL_PIXEL_FORMAT_DEPTH_32F = 51, HAL_PIXEL_FORMAT_DEPTH_32F_STENCIL_8 = 52, HAL_PIXEL_FORMAT_STENCIL_8 = 53, + HAL_PIXEL_FORMAT_YCBCR_P010 = 54, } android_pixel_format_v1_1_t; +typedef enum { + HAL_DATASPACE_BT2020_ITU = + 281411584, // ((STANDARD_BT2020 | TRANSFER_SMPTE_170M) | RANGE_LIMITED) + HAL_DATASPACE_BT2020_ITU_PQ = + 298188800, // ((STANDARD_BT2020 | TRANSFER_ST2084) | RANGE_LIMITED) +} android_dataspace_v1_1_t; + #ifdef __cplusplus } #endif -- cgit v1.2.3