21 #ifndef AVUTIL_PIXFMT_H
22 #define AVUTIL_PIXFMT_H
30 #include "libavutil/avconfig.h"
163 #if AV_HAVE_BIGENDIAN
164 # define PIX_FMT_NE(be, le) PIX_FMT_##be
166 # define PIX_FMT_NE(be, le) PIX_FMT_##le
169 #define PIX_FMT_RGB32 PIX_FMT_NE(ARGB, BGRA)
170 #define PIX_FMT_RGB32_1 PIX_FMT_NE(RGBA, ABGR)
171 #define PIX_FMT_BGR32 PIX_FMT_NE(ABGR, RGBA)
172 #define PIX_FMT_BGR32_1 PIX_FMT_NE(BGRA, ARGB)
174 #define PIX_FMT_GRAY16 PIX_FMT_NE(GRAY16BE, GRAY16LE)
175 #define PIX_FMT_RGB48 PIX_FMT_NE(RGB48BE, RGB48LE)
176 #define PIX_FMT_RGB565 PIX_FMT_NE(RGB565BE, RGB565LE)
177 #define PIX_FMT_RGB555 PIX_FMT_NE(RGB555BE, RGB555LE)
178 #define PIX_FMT_RGB444 PIX_FMT_NE(RGB444BE, RGB444LE)
179 #define PIX_FMT_BGR48 PIX_FMT_NE(BGR48BE, BGR48LE)
180 #define PIX_FMT_BGR565 PIX_FMT_NE(BGR565BE, BGR565LE)
181 #define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE)
182 #define PIX_FMT_BGR444 PIX_FMT_NE(BGR444BE, BGR444LE)
184 #define PIX_FMT_YUV420P9 PIX_FMT_NE(YUV420P9BE , YUV420P9LE)
185 #define PIX_FMT_YUV422P9 PIX_FMT_NE(YUV422P9BE , YUV422P9LE)
186 #define PIX_FMT_YUV444P9 PIX_FMT_NE(YUV444P9BE , YUV444P9LE)
187 #define PIX_FMT_YUV420P10 PIX_FMT_NE(YUV420P10BE, YUV420P10LE)
188 #define PIX_FMT_YUV422P10 PIX_FMT_NE(YUV422P10BE, YUV422P10LE)
189 #define PIX_FMT_YUV444P10 PIX_FMT_NE(YUV444P10BE, YUV444P10LE)
190 #define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420P16BE, YUV420P16LE)
191 #define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422P16BE, YUV422P16LE)
192 #define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444P16BE, YUV444P16LE)
194 #define PIX_FMT_GBRP9 PIX_FMT_NE(GBRP9BE , GBRP9LE)
195 #define PIX_FMT_GBRP10 PIX_FMT_NE(GBRP10BE, GBRP10LE)
196 #define PIX_FMT_GBRP16 PIX_FMT_NE(GBRP16BE, GBRP16LE)
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), big-endian, most significant bits to 1 ...
planar GBR 4:4:4 27bpp, little endian
hardware decoding through VDA
number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of...
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV422P and setting color_...
planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV444P and setting color_...
planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3
packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), little-endian, most significant bit to 1 ...
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
HW acceleration through VA API at motion compensation entry-point, Picture.data[3] contains a vaapi_r...
packed RGB 4:4:4, 16bpp, (msb)4A 4R 4G 4B(lsb), little-endian, most significant bits to 0 ...
XVideo Motion Acceleration via common packet passing.
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV420P and setting color_...
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
H.264 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstre...
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian
Y , 16bpp, little-endian.
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
HW decoding through DXVA2, Picture.data[3] contains a LPDIRECT3DSURFACE9 pointer. ...
planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian
planar GBR 4:4:4 27bpp, big endian
MPEG-1 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstr...
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in ...
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
packed RGB 4:4:4, 16bpp, (msb)4A 4R 4G 4B(lsb), big-endian, most significant bits to 0 ...
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big...
planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of PIX_FMT_YUV440P and setting color_range ...
HW acceleration through VA API at IDCT entry-point, Picture.data[3] contains a vaapi_render_state str...
as above, but U and V bytes are swapped
planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
planar GBR 4:4:4 30bpp, big endian
MPEG4 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstre...
packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), little-endian, most significant bits to 1 ...
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in ...
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), big-endian, most significant bit to 0 ...
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
planar GBR 4:4:4 48bpp, little endian
planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), big-endian, most significant bit to 1 ...
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
packed RGB 8:8:8, 24bpp, BGRBGR...
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as lit...
planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
VC-1 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstrea...
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
8 bit with PIX_FMT_RGB32 palette
planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
planar GBR 4:4:4 48bpp, big endian
planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
WMV3 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstrea...
packed RGB 8:8:8, 24bpp, RGBRGB...
planar GBR 4:4:4 30bpp, little endian
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
MPEG-2 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstr...
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
HW decoding through VA API, Picture.data[3] contains a vaapi_render_state struct which contains the b...
planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)