/system/core/include/system/graphics.h
1 /** 2 * pixel format definitions 3 */ 4 5 enum { 6 HAL_PIXEL_FORMAT_RGBA_8888 = 1, 7 HAL_PIXEL_FORMAT_RGBX_8888 = 2, 8 HAL_PIXEL_FORMAT_RGB_888 = 3, 9 HAL_PIXEL_FORMAT_RGB_565 = 4, 10 HAL_PIXEL_FORMAT_BGRA_8888 = 5, 11 HAL_PIXEL_FORMAT_RGBA_5551 = 6, 12 HAL_PIXEL_FORMAT_RGBA_4444 = 7, 13 /* 0x8 - 0xF range unavailable */ 14 HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10, // NV16 15 HAL_PIXEL_FORMAT_YCrCb_420_SP = 0x11, // NV21 (_adreno) 16 HAL_PIXEL_FORMAT_YCbCr_422_P = 0x12, // IYUV 17 HAL_PIXEL_FORMAT_YCbCr_420_P = 0x13, // YUV9 18 HAL_PIXEL_FORMAT_YCbCr_422_I = 0x14, // YUY2 (_adreno) 19 /* 0x15 reserved */ 20 HAL_PIXEL_FORMAT_CbYCrY_422_I = 0x16, // UYVY (_adreno) 21 /* 0x17 reserved */ 22 /* 0x18 - 0x1F range unavailable */ 23 HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED = 0x20, // NV12_adreno_tiled 24 HAL_PIXEL_FORMAT_YCbCr_420_SP = 0x21, // NV12 25 HAL_PIXEL_FORMAT_YCrCb_420_SP_TILED = 0x22, // NV21_adreno_tiled 26 HAL_PIXEL_FORMAT_YCrCb_422_SP = 0x23, // NV61 27 HAL_PIXEL_FORMAT_YCrCb_422_P = 0x24, // YV12 (_adreno) 28 };
1 typedef enum { 2 HAL_PIXEL_FORMAT_RGBA_8888 = 1, 3 HAL_PIXEL_FORMAT_RGBX_8888 = 2, 4 HAL_PIXEL_FORMAT_RGB_888 = 3, 5 HAL_PIXEL_FORMAT_RGB_565 = 4, 6 HAL_PIXEL_FORMAT_BGRA_8888 = 5, 7 HAL_PIXEL_FORMAT_YCBCR_422_SP = 16, 8 HAL_PIXEL_FORMAT_YCRCB_420_SP = 17, 9 HAL_PIXEL_FORMAT_YCBCR_422_I = 20, 10 HAL_PIXEL_FORMAT_RGBA_FP16 = 22, 11 HAL_PIXEL_FORMAT_RAW16 = 32, 12 HAL_PIXEL_FORMAT_BLOB = 33, 13 HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED = 34, 14 HAL_PIXEL_FORMAT_YCBCR_420_888 = 35, 15 HAL_PIXEL_FORMAT_RAW_OPAQUE = 36, 16 HAL_PIXEL_FORMAT_RAW10 = 37, 17 HAL_PIXEL_FORMAT_RAW12 = 38, 18 HAL_PIXEL_FORMAT_RGBA_1010102 = 43, 19 HAL_PIXEL_FORMAT_Y8 = 538982489, 20 HAL_PIXEL_FORMAT_Y16 = 540422489, 21 HAL_PIXEL_FORMAT_YV12 = 842094169, 22 } android_pixel_format_t;