51 * This is important as many custom PAL8 video codecs that were designed |
51 * This is important as many custom PAL8 video codecs that were designed |
52 * to run on the IBM VGA graphics adapter use 6-bit palette components. |
52 * to run on the IBM VGA graphics adapter use 6-bit palette components. |
53 */ |
53 */ |
54 enum PixelFormat { |
54 enum PixelFormat { |
55 PIX_FMT_YUV420P, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) (I420) |
55 PIX_FMT_YUV420P, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) (I420) |
56 PIX_FMT_NV12, ///< Packed YUV 4:2:0 (separate Y plane, interleaved Cb & Cr planes) |
|
57 PIX_FMT_NV21, ///< Packed YUV 4:2:0 (separate Y plane, interleaved Cb & Cr planes) |
|
58 PIX_FMT_YVU420P, ///< Planar YUV 4:2:0 (1 Cb & Cr sample per 2x2 Y samples) (YV12) |
56 PIX_FMT_YVU420P, ///< Planar YUV 4:2:0 (1 Cb & Cr sample per 2x2 Y samples) (YV12) |
59 PIX_FMT_YUV422, ///< Packed pixel, Y0 Cb Y1 Cr |
57 PIX_FMT_YUV422, ///< Packed pixel, Y0 Cb Y1 Cr |
60 PIX_FMT_RGB24, ///< Packed pixel, 3 bytes per pixel, RGBRGB... |
58 PIX_FMT_RGB24, ///< Packed pixel, 3 bytes per pixel, RGBRGB... |
61 PIX_FMT_BGR24, ///< Packed pixel, 3 bytes per pixel, BGRBGR... |
59 PIX_FMT_BGR24, ///< Packed pixel, 3 bytes per pixel, BGRBGR... |
62 PIX_FMT_YUV422P, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) |
60 PIX_FMT_YUV422P, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) |
63 PIX_FMT_YUV444P, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples) |
61 PIX_FMT_YUV444P, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples) |
64 PIX_FMT_RGBA32, ///< Packed pixel, 4 bytes per pixel, BGRABGRA..., stored in cpu endianness |
62 PIX_FMT_RGBA32, ///< Packed pixel, 4 bytes per pixel, BGRABGRA..., stored in cpu endianness |
65 PIX_FMT_BGRA32, ///< Packed pixel, 4 bytes per pixel, ARGBARGB... |
63 PIX_FMT_BGRA32, ///< Packed pixel, 4 bytes per pixel, ARGBARGB... |
66 PIX_FMT_ARGB32, ///< Packed pixel, 4 bytes per pixel, ABGRABGR..., stored in cpu endianness |
64 PIX_FMT_ARGB32, ///< Packed pixel, 4 bytes per pixel, ABGRABGR..., stored in cpu endianness |
67 PIX_FMT_ABGR32, ///< Packed pixel, 4 bytes per pixel, RGBARGBA... |
65 PIX_FMT_ABGR32, ///< Packed pixel, 4 bytes per pixel, RGBARGBA... |
68 PIX_FMT_RGB32, ///< Packed pixel, 4 bytes per pixel, BGRxBGRx..., stored in cpu endianness |
66 PIX_FMT_RGB32, ///< Packed pixel, 4 bytes per pixel, BGRxBGRx..., stored in cpu endianness |
69 PIX_FMT_xRGB32, ///< Packed pixel, 4 bytes per pixel, xBGRxBGR..., stored in cpu endianness |
67 PIX_FMT_xRGB32, ///< Packed pixel, 4 bytes per pixel, xBGRxBGR..., stored in cpu endianness |
70 PIX_FMT_BGR32, ///< Packed pixel, 4 bytes per pixel, xRGBxRGB... |
68 PIX_FMT_BGR32, ///< Packed pixel, 4 bytes per pixel, xRGBxRGB... |
71 PIX_FMT_BGRx32, ///< Packed pixel, 4 bytes per pixel, RGBxRGBx... |
69 PIX_FMT_BGRx32, ///< Packed pixel, 4 bytes per pixel, RGBxRGBx... |
72 PIX_FMT_YUV410P, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) |
70 PIX_FMT_YUV410P, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) |
73 PIX_FMT_YVU410P, ///< Planar YVU 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) |
71 PIX_FMT_YVU410P, ///< Planar YVU 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) |
74 PIX_FMT_YUV411P, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples) |
72 PIX_FMT_YUV411P, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples) |
75 PIX_FMT_RGB565, ///< always stored in cpu endianness |
73 PIX_FMT_RGB565, ///< always stored in cpu endianness |
76 PIX_FMT_RGB555, ///< always stored in cpu endianness, most significant bit to 1 |
74 PIX_FMT_RGB555, ///< always stored in cpu endianness, most significant bit to 1 |
77 PIX_FMT_GRAY8, |
75 PIX_FMT_GRAY8, |
78 PIX_FMT_GRAY16_L, |
|
79 PIX_FMT_GRAY16_B, |
|
80 PIX_FMT_MONOWHITE, ///< 0 is white |
76 PIX_FMT_MONOWHITE, ///< 0 is white |
81 PIX_FMT_MONOBLACK, ///< 0 is black |
77 PIX_FMT_MONOBLACK, ///< 0 is black |
82 PIX_FMT_PAL8, ///< 8 bit with RGBA palette |
78 PIX_FMT_PAL8, ///< 8 bit with RGBA palette |
83 PIX_FMT_YUVJ420P, ///< Planar YUV 4:2:0 full scale (jpeg) |
79 PIX_FMT_YUVJ420P, ///< Planar YUV 4:2:0 full scale (jpeg) |
84 PIX_FMT_YUVJ422P, ///< Planar YUV 4:2:2 full scale (jpeg) |
80 PIX_FMT_YUVJ422P, ///< Planar YUV 4:2:2 full scale (jpeg) |
85 PIX_FMT_YUVJ444P, ///< Planar YUV 4:4:4 full scale (jpeg) |
81 PIX_FMT_YUVJ444P, ///< Planar YUV 4:4:4 full scale (jpeg) |
86 PIX_FMT_XVMC_MPEG2_MC,///< XVideo Motion Acceleration via common packet passing(xvmc_render.h) |
82 PIX_FMT_XVMC_MPEG2_MC,///< XVideo Motion Acceleration via common packet passing(xvmc_render.h) |
87 PIX_FMT_XVMC_MPEG2_IDCT, |
83 PIX_FMT_XVMC_MPEG2_IDCT, |
88 PIX_FMT_UYVY422, ///< Packed pixel, Cb Y0 Cr Y1 |
84 PIX_FMT_UYVY422, ///< Packed pixel, Cb Y0 Cr Y1 |
89 PIX_FMT_YVYU422, ///< Packed pixel, Y0 Cr Y1 Cb |
|
90 PIX_FMT_UYVY411, ///< Packed pixel, Cb Y0 Y1 Cr Y2 Y3 |
85 PIX_FMT_UYVY411, ///< Packed pixel, Cb Y0 Y1 Cr Y2 Y3 |
91 PIX_FMT_V308, ///< Packed pixel, Y0 Cb Cr |
|
92 |
86 |
93 PIX_FMT_AYUV4444, ///< Packed pixel, A0 Y0 Cb Cr |
87 PIX_FMT_AYUV4444, ///< Packed pixel, A0 Y0 Cb Cr |
94 PIX_FMT_NB |
88 PIX_FMT_NB |
95 }; |
89 }; |
96 |
90 |