其他分享
首页 > 其他分享> > Android色彩空间像素格式定义及设定

Android色彩空间像素格式定义及设定

作者:互联网

/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 };

 

标签:HAL,FORMAT,SP,像素,YCbCr,adreno,格式,Android,PIXEL
来源: https://www.cnblogs.com/SaraMoring/p/14603444.html