1 // This file is autogenerated by hidl-gen. Do not edit manually. 2 // Source: android.hardware.graphics.common@1.0 3 // Location: hardware/interfaces/graphics/common/1.0/ 4 5 #ifndef HIDL_GENERATED_ANDROID_HARDWARE_GRAPHICS_COMMON_V1_0_EXPORTED_CONSTANTS_H_ 6 #define HIDL_GENERATED_ANDROID_HARDWARE_GRAPHICS_COMMON_V1_0_EXPORTED_CONSTANTS_H_ 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 typedef enum { 13 HAL_PIXEL_FORMAT_RGBA_8888 = 1, 14 HAL_PIXEL_FORMAT_RGBX_8888 = 2, 15 HAL_PIXEL_FORMAT_RGB_888 = 3, 16 HAL_PIXEL_FORMAT_RGB_565 = 4, 17 HAL_PIXEL_FORMAT_BGRA_8888 = 5, 18 HAL_PIXEL_FORMAT_YCBCR_422_SP = 16, 19 HAL_PIXEL_FORMAT_YCRCB_420_SP = 17, 20 HAL_PIXEL_FORMAT_YCBCR_422_I = 20, 21 HAL_PIXEL_FORMAT_RGBA_FP16 = 22, 22 HAL_PIXEL_FORMAT_RAW16 = 32, 23 HAL_PIXEL_FORMAT_BLOB = 33, 24 HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED = 34, 25 HAL_PIXEL_FORMAT_YCBCR_420_888 = 35, 26 HAL_PIXEL_FORMAT_RAW_OPAQUE = 36, 27 HAL_PIXEL_FORMAT_RAW10 = 37, 28 HAL_PIXEL_FORMAT_RAW12 = 38, 29 HAL_PIXEL_FORMAT_RGBA_1010102 = 43, 30 HAL_PIXEL_FORMAT_Y8 = 538982489, 31 HAL_PIXEL_FORMAT_Y16 = 540422489, 32 HAL_PIXEL_FORMAT_YV12 = 842094169, 33 } android_pixel_format_t; 34 35 typedef enum { 36 HAL_TRANSFORM_FLIP_H = 1, // (1 << 0) 37 HAL_TRANSFORM_FLIP_V = 2, // (1 << 1) 38 HAL_TRANSFORM_ROT_90 = 4, // (1 << 2) 39 HAL_TRANSFORM_ROT_180 = 3, // (FLIP_H | FLIP_V) 40 HAL_TRANSFORM_ROT_270 = 7, // ((FLIP_H | FLIP_V) | ROT_90) 41 } android_transform_t; 42 43 typedef enum { 44 HAL_DATASPACE_UNKNOWN = 0, 45 HAL_DATASPACE_ARBITRARY = 1, 46 HAL_DATASPACE_STANDARD_SHIFT = 16, 47 HAL_DATASPACE_STANDARD_MASK = 4128768, // (63 << STANDARD_SHIFT) 48 HAL_DATASPACE_STANDARD_UNSPECIFIED = 0, // (0 << STANDARD_SHIFT) 49 HAL_DATASPACE_STANDARD_BT709 = 65536, // (1 << STANDARD_SHIFT) 50 HAL_DATASPACE_STANDARD_BT601_625 = 131072, // (2 << STANDARD_SHIFT) 51 HAL_DATASPACE_STANDARD_BT601_625_UNADJUSTED = 196608, // (3 << STANDARD_SHIFT) 52 HAL_DATASPACE_STANDARD_BT601_525 = 262144, // (4 << STANDARD_SHIFT) 53 HAL_DATASPACE_STANDARD_BT601_525_UNADJUSTED = 327680, // (5 << STANDARD_SHIFT) 54 HAL_DATASPACE_STANDARD_BT2020 = 393216, // (6 << STANDARD_SHIFT) 55 HAL_DATASPACE_STANDARD_BT2020_CONSTANT_LUMINANCE = 458752, // (7 << STANDARD_SHIFT) 56 HAL_DATASPACE_STANDARD_BT470M = 524288, // (8 << STANDARD_SHIFT) 57 HAL_DATASPACE_STANDARD_FILM = 589824, // (9 << STANDARD_SHIFT) 58 HAL_DATASPACE_STANDARD_DCI_P3 = 655360, // (10 << STANDARD_SHIFT) 59 HAL_DATASPACE_STANDARD_ADOBE_RGB = 720896, // (11 << STANDARD_SHIFT) 60 HAL_DATASPACE_TRANSFER_SHIFT = 22, 61 HAL_DATASPACE_TRANSFER_MASK = 130023424, // (31 << TRANSFER_SHIFT) 62 HAL_DATASPACE_TRANSFER_UNSPECIFIED = 0, // (0 << TRANSFER_SHIFT) 63 HAL_DATASPACE_TRANSFER_LINEAR = 4194304, // (1 << TRANSFER_SHIFT) 64 HAL_DATASPACE_TRANSFER_SRGB = 8388608, // (2 << TRANSFER_SHIFT) 65 HAL_DATASPACE_TRANSFER_SMPTE_170M = 12582912, // (3 << TRANSFER_SHIFT) 66 HAL_DATASPACE_TRANSFER_GAMMA2_2 = 16777216, // (4 << TRANSFER_SHIFT) 67 HAL_DATASPACE_TRANSFER_GAMMA2_6 = 20971520, // (5 << TRANSFER_SHIFT) 68 HAL_DATASPACE_TRANSFER_GAMMA2_8 = 25165824, // (6 << TRANSFER_SHIFT) 69 HAL_DATASPACE_TRANSFER_ST2084 = 29360128, // (7 << TRANSFER_SHIFT) 70 HAL_DATASPACE_TRANSFER_HLG = 33554432, // (8 << TRANSFER_SHIFT) 71 HAL_DATASPACE_RANGE_SHIFT = 27, 72 HAL_DATASPACE_RANGE_MASK = 939524096, // (7 << RANGE_SHIFT) 73 HAL_DATASPACE_RANGE_UNSPECIFIED = 0, // (0 << RANGE_SHIFT) 74 HAL_DATASPACE_RANGE_FULL = 134217728, // (1 << RANGE_SHIFT) 75 HAL_DATASPACE_RANGE_LIMITED = 268435456, // (2 << RANGE_SHIFT) 76 HAL_DATASPACE_RANGE_EXTENDED = 402653184, // (3 << RANGE_SHIFT) 77 HAL_DATASPACE_SRGB_LINEAR = 512, 78 HAL_DATASPACE_V0_SRGB_LINEAR = 138477568, // ((STANDARD_BT709 | TRANSFER_LINEAR) | RANGE_FULL) 79 HAL_DATASPACE_V0_SCRGB_LINEAR = 80 406913024, // ((STANDARD_BT709 | TRANSFER_LINEAR) | RANGE_EXTENDED) 81 HAL_DATASPACE_SRGB = 513, 82 HAL_DATASPACE_V0_SRGB = 142671872, // ((STANDARD_BT709 | TRANSFER_SRGB) | RANGE_FULL) 83 HAL_DATASPACE_V0_SCRGB = 411107328, // ((STANDARD_BT709 | TRANSFER_SRGB) | RANGE_EXTENDED) 84 HAL_DATASPACE_JFIF = 257, 85 HAL_DATASPACE_V0_JFIF = 146931712, // ((STANDARD_BT601_625 | TRANSFER_SMPTE_170M) | RANGE_FULL) 86 HAL_DATASPACE_BT601_625 = 258, 87 HAL_DATASPACE_V0_BT601_625 = 88 281149440, // ((STANDARD_BT601_625 | TRANSFER_SMPTE_170M) | RANGE_LIMITED) 89 HAL_DATASPACE_BT601_525 = 259, 90 HAL_DATASPACE_V0_BT601_525 = 91 281280512, // ((STANDARD_BT601_525 | TRANSFER_SMPTE_170M) | RANGE_LIMITED) 92 HAL_DATASPACE_BT709 = 260, 93 HAL_DATASPACE_V0_BT709 = 281083904, // ((STANDARD_BT709 | TRANSFER_SMPTE_170M) | RANGE_LIMITED) 94 HAL_DATASPACE_DCI_P3_LINEAR = 139067392, // ((STANDARD_DCI_P3 | TRANSFER_LINEAR) | RANGE_FULL) 95 HAL_DATASPACE_DCI_P3 = 155844608, // ((STANDARD_DCI_P3 | TRANSFER_GAMMA2_6) | RANGE_FULL) 96 HAL_DATASPACE_DISPLAY_P3_LINEAR = 97 139067392, // ((STANDARD_DCI_P3 | TRANSFER_LINEAR) | RANGE_FULL) 98 HAL_DATASPACE_DISPLAY_P3 = 143261696, // ((STANDARD_DCI_P3 | TRANSFER_SRGB) | RANGE_FULL) 99 HAL_DATASPACE_ADOBE_RGB = 151715840, // ((STANDARD_ADOBE_RGB | TRANSFER_GAMMA2_2) | RANGE_FULL) 100 HAL_DATASPACE_BT2020_LINEAR = 138805248, // ((STANDARD_BT2020 | TRANSFER_LINEAR) | RANGE_FULL) 101 HAL_DATASPACE_BT2020 = 147193856, // ((STANDARD_BT2020 | TRANSFER_SMPTE_170M) | RANGE_FULL) 102 HAL_DATASPACE_BT2020_PQ = 163971072, // ((STANDARD_BT2020 | TRANSFER_ST2084) | RANGE_FULL) 103 HAL_DATASPACE_DEPTH = 4096, 104 HAL_DATASPACE_SENSOR = 4097, 105 } android_dataspace_t; 106 107 typedef enum { 108 HAL_COLOR_MODE_NATIVE = 0, 109 HAL_COLOR_MODE_STANDARD_BT601_625 = 1, 110 HAL_COLOR_MODE_STANDARD_BT601_625_UNADJUSTED = 2, 111 HAL_COLOR_MODE_STANDARD_BT601_525 = 3, 112 HAL_COLOR_MODE_STANDARD_BT601_525_UNADJUSTED = 4, 113 HAL_COLOR_MODE_STANDARD_BT709 = 5, 114 HAL_COLOR_MODE_DCI_P3 = 6, 115 HAL_COLOR_MODE_SRGB = 7, 116 HAL_COLOR_MODE_ADOBE_RGB = 8, 117 HAL_COLOR_MODE_DISPLAY_P3 = 9, 118 } android_color_mode_t; 119 120 typedef enum { 121 HAL_COLOR_TRANSFORM_IDENTITY = 0, 122 HAL_COLOR_TRANSFORM_ARBITRARY_MATRIX = 1, 123 HAL_COLOR_TRANSFORM_VALUE_INVERSE = 2, 124 HAL_COLOR_TRANSFORM_GRAYSCALE = 3, 125 HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA = 4, 126 HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA = 5, 127 HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA = 6, 128 } android_color_transform_t; 129 130 typedef enum { 131 HAL_HDR_DOLBY_VISION = 1, 132 HAL_HDR_HDR10 = 2, 133 HAL_HDR_HLG = 3, 134 } android_hdr_t; 135 136 #ifdef __cplusplus 137 } 138 #endif 139 140 #endif // HIDL_GENERATED_ANDROID_HARDWARE_GRAPHICS_COMMON_V1_0_EXPORTED_CONSTANTS_H_ 141