enum g2d_format { //rgb formats G2D_RGB565 = 0, G2D_RGBA8888 = 1, // G2D_RGBX8888 = 2, G2D_BGRA8888 = 3, G2D_BGRX8888 = 4, G2D_BGR565 = 5, G2D_ARGB8888 = 6, //ng G2D_ABGR8888 = 7, //ng G2D_XRGB8888 = 8, G2D_XBGR8888 = 9, G2D_RGB888 = 10, //yuv formats G2D_NV12 = 20, G2D_I420 = 21, G2D_YV12 = 22, G2D_NV21 = 23, G2D_YUYV = 24, G2D_YVYU = 25, G2D_UYVY = 26, G2D_VYUY = 27, G2D_NV16 = 28, G2D_NV61 = 29, };
时间: 2024-02-10 10:21:09 浏览: 216
这段代码展示了一个枚举类型 g2d_format,其中包含了多种不同的图像格式,包括 RGB 和 YUV 格式。RGB 格式包括 G2D_RGB565、G2D_RGBA8888、G2D_RGBX8888、G2D_BGRA8888、G2D_BGRX8888、G2D_BGR565、G2D_ARGB8888、G2D_ABGR8888、G2D_XRGB8888、G2D_XBGR8888、G2D_RGB888,而 YUV 格式包括 G2D_NV12、G2D_I420、G2D_YV12、G2D_NV21、G2D_YUYV、G2D_YVYU、G2D_UYVY、G2D_VYUY、G2D_NV16、G2D_NV61。这些格式的命名和编号可以帮助程序开发人员在处理图像时使用正确的格式。
阅读全文