36 int x,
int y,
int c,
int w,
37 int read_pal_component)
40 int plane = comp.
plane;
49 const uint8_t *p = data[plane] + y * linesize[plane] + (skip >> 3);
50 int shift = 8 - depth - (skip & 7);
54 if (read_pal_component)
55 val = data[1][4*val +
c];
62 const uint8_t *p = data[plane] + y * linesize[plane] +
64 int is_8bit = shift + depth <= 8;
70 int val = is_8bit ? *p :
72 val = (val >>
shift) & mask;
73 if (read_pal_component)
74 val = data[1][4 * val +
c];
84 int x,
int y,
int c,
int w)
87 int plane = comp.
plane;
94 uint8_t *p = data[plane] + y * linesize[plane] + (skip >> 3);
95 int shift = 8 - depth - (skip & 7);
98 *p |= *src++ <<
shift;
105 uint8_t *p = data[plane] + y * linesize[plane] +
108 if (shift + depth <= 8) {
111 *p |= (*src++ <<
shift);
129 #if !FF_API_PIX_FMT_DESC
625 .name =
"yuva420p9be",
638 .name =
"yuva420p9le",
651 .name =
"yuva422p9be",
664 .name =
"yuva422p9le",
677 .name =
"yuva444p9be",
690 .name =
"yuva444p9le",
703 .name =
"yuva420p10be",
716 .name =
"yuva420p10le",
729 .name =
"yuva422p10be",
742 .name =
"yuva422p10le",
755 .name =
"yuva444p10be",
768 .name =
"yuva444p10le",
781 .name =
"yuva420p16be",
794 .name =
"yuva420p16le",
807 .name =
"yuva422p16be",
820 .name =
"yuva422p16le",
833 .name =
"yuva444p16be",
846 .name =
"yuva444p16le",
860 .name =
"vdpau_h264",
866 .name =
"vdpau_mpeg1",
872 .name =
"vdpau_mpeg2",
878 .name =
"vdpau_wmv3",
890 .name =
"vdpau_mpeg4",
1141 .name =
"vaapi_moco",
1147 .name =
"vaapi_idct",
1153 .name =
"vaapi_vld",
1159 .name =
"yuv420p9le",
1171 .name =
"yuv420p9be",
1183 .name =
"yuv420p10le",
1195 .name =
"yuv420p10be",
1207 .name =
"yuv420p12le",
1219 .name =
"yuv420p12be",
1231 .name =
"yuv420p14le",
1243 .name =
"yuv420p14be",
1255 .name =
"yuv420p16le",
1267 .name =
"yuv420p16be",
1279 .name =
"yuv422p9le",
1291 .name =
"yuv422p9be",
1303 .name =
"yuv422p10le",
1315 .name =
"yuv422p10be",
1327 .name =
"yuv422p12le",
1339 .name =
"yuv422p12be",
1351 .name =
"yuv422p14le",
1363 .name =
"yuv422p14be",
1375 .name =
"yuv422p16le",
1387 .name =
"yuv422p16be",
1399 .name =
"yuv444p16le",
1411 .name =
"yuv444p16be",
1423 .name =
"yuv444p10le",
1435 .name =
"yuv444p10be",
1447 .name =
"yuv444p9le",
1459 .name =
"yuv444p9be",
1471 .name =
"yuv444p12le",
1483 .name =
"yuv444p12be",
1495 .name =
"yuv444p14le",
1507 .name =
"yuv444p14be",
1519 .name =
"dxva2_vld",
1685 .name =
"gbrap16le",
1698 .name =
"gbrap16be",
1741 #define BAYER8_DESC_COMMON \
1742 .nb_components= 3, \
1743 .log2_chroma_w= 0, \
1744 .log2_chroma_h= 0, \
1751 #define BAYER16_DESC_COMMON \
1752 .nb_components= 3, \
1753 .log2_chroma_w= 0, \
1754 .log2_chroma_h= 0, \
1762 .name =
"bayer_bggr8",
1766 .name =
"bayer_bggr16le",
1770 .name =
"bayer_bggr16be",
1774 .name =
"bayer_rggb8",
1778 .name =
"bayer_rggb16le",
1782 .name =
"bayer_rggb16be",
1786 .name =
"bayer_gbrg8",
1790 .name =
"bayer_gbrg16le",
1794 .name =
"bayer_gbrg16be",
1798 .name =
"bayer_grbg8",
1802 .name =
"bayer_grbg16le",
1806 .name =
"bayer_grbg16be",
1853 if (av_pix_fmt_descriptors[pix_fmt].name &&
1854 !strcmp(av_pix_fmt_descriptors[pix_fmt].name, name))
1867 # define X_NE(be, le) be
1869 # define X_NE(be, le) le
1876 if (!strcmp(name,
"rgb32"))
1877 name =
X_NE(
"argb",
"bgra");
1878 else if (!strcmp(name,
"bgr32"))
1879 name =
X_NE(
"abgr",
"rgba");
1885 snprintf(name2,
sizeof(name2),
"%s%s", name,
X_NE(
"be",
"le"));
1897 int s = c == 1 || c == 2 ? 0 : log2_pixels;
1901 return bits >> log2_pixels;
1912 int s = c == 1 || c == 2 ? 0 : log2_pixels;
1915 for (c = 0; c < 4; c++)
1921 return bits >> log2_pixels;
1928 snprintf (buf, buf_size,
"name" " nb_components" " nb_bits");
1931 snprintf(buf, buf_size,
"%-11s %7d %10d", pixdesc->
name,
1942 return &av_pix_fmt_descriptors[
pix_fmt];
1948 return &av_pix_fmt_descriptors[0];
1949 while (prev - av_pix_fmt_descriptors <
FF_ARRAY_ELEMS(av_pix_fmt_descriptors) - 1) {
1959 if (desc < av_pix_fmt_descriptors ||
1960 desc >= av_pix_fmt_descriptors +
FF_ARRAY_ELEMS(av_pix_fmt_descriptors))
1968 int *h_shift,
int *v_shift)
1982 int i, planes[4] = { 0 },
ret = 0;
1999 uint8_t fill[4][8+6+3] = {{0}};
2000 uint8_t *
data[4] = {fill[0], fill[1], fill[2], fill[3]};
2001 int linesize[4] = {0,0,0,0};
2025 if (!strncmp(d->
name,
"bayer_", 6))
2042 if (!desc || strlen(desc->
name) < 2)
2045 i = strlen(name) - 2;
2046 if (strcmp(name + i,
"be") && strcmp(name + i,
"le"))
2049 name[i] ^=
'b' ^
'l';
planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian)
const char const char void * val
planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, little-endian */
planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
static int shift(int a, int b)
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
bayer, BGBG..(odd line), GRGR..(even line), 8-bit samples */
interleaved chroma YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian ...
planar GBR 4:4:4 27bpp, big-endian
planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), big-endian, most significant bit to 0 ...
planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
bayer, GBGB..(odd line), RGRG..(even line), 8-bit samples */
enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)
packed RGB 8:8:8, 24bpp, RGBRGB...
planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)
planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
HW decoding through DXVA2, Picture.data[3] contains a LPDIRECT3DSURFACE9 pointer. ...
AVComponentDescriptor comp[4]
Parameters that describe how pixels are packed.
const char * av_get_pix_fmt_name(enum AVPixelFormat pix_fmt)
Return the short name for a pixel format, NULL in case pix_fmt is unknown.
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
enum AVPixelFormat av_get_pix_fmt(const char *name)
Return the pixel format corresponding to name.
packed RGB 8:8:8, 32bpp, RGB0RGB0...
void av_write_image_line(const uint16_t *src, uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w)
Write the values from src to the pixel format component c of an image line.
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width.
packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), little-endian, most significant bits to 1 ...
planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
uint16_t shift
number of least significant bits that must be shifted away to get the value
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
packed BGR 8:8:8, 32bpp, 0BGR0BGR...
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian)
packed RGB 8:8:8, 24bpp, BGRBGR...
simple assert() macros that are a bit more flexible than ISO C assert().
packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in ...
planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
MPEG-1 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstr...
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, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
as above, but U and V bytes are swapped
#define BAYER16_DESC_COMMON
planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian)
packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3
MPEG4 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstre...
bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, big-endian */
#define AV_PIX_FMT_FLAG_BE
Pixel format is big-endian.
planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, big-endian */
#define AV_PIX_FMT_FLAG_PAL
Pixel format has a palette in data[1], values are indexes in this palette.
planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), big-endian
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big...
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), big-endian
enum AVPixelFormat pix_fmt
planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
planar GBRA 4:4:4:4 64bpp, big-endian
planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), little-endian
bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, little-endian */
#define AV_PIX_FMT_FLAG_PSEUDOPAL
The pixel format is "pseudo-paletted".
void ff_check_pixfmt_descriptors(void)
uint16_t depth_minus1
number of bits in the component minus 1
uint8_t log2_chroma_h
Amount to shift the luma height right to find the chroma height.
void av_read_image_line(uint16_t *dst, const uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w, int read_pal_component)
Read a line from an image, and write the values of the pixel format component c to dst...
static const uint16_t mask[17]
packed BGR 8:8:8, 32bpp, BGR0BGR0...
planar GBRA 4:4:4:4 32bpp
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV444P and setting color_...
interleaved chroma YUV 4:2:2, 20bpp, (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 ...
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), little-endian
XVideo Motion Acceleration via common packet passing.
planar YUV 4:4:4,42bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor ...
WMV3 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstrea...
enum AVPixelFormat av_pix_fmt_swap_endianness(enum AVPixelFormat pix_fmt)
Utility function to swap the endianness of a pixel format.
AVPixelFormat
Pixel format.
size_t av_strlcpy(char *dst, const char *src, size_t size)
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as lit...
int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
Return the number of bits per pixel used by the pixel format described by pixdesc.
planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
H.264 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstre...
common internal API header
packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in ...
#define FF_ARRAY_ELEMS(a)
uint8_t nb_components
The number of components each pixel has, (1-4)
#define BAYER8_DESC_COMMON
VC-1 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstrea...
packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), big-endian, most significant bit to 1 ...
planar GBR 4:4:4 48bpp, big-endian
attribute_deprecated const AVPixFmtDescriptor av_pix_fmt_descriptors[]
The array of all the pixel format descriptors.
planar GBR 4:4:4 27bpp, little-endian
planar GBR 4:4:4 36bpp, little-endian
planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
HW acceleration through VA API at IDCT entry-point, Picture.data[3] contains a vaapi_render_state str...
planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV420P and setting color_...
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
#define AV_PIX_FMT_FLAG_HWACCEL
Pixel format is an HW accelerated format.
planar GBR 4:4:4 42bpp, big-endian
planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), little-endian ...
planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), big-endian, most significant bits to 1 ...
planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian
planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian)
planar GBR 4:4:4 36bpp, big-endian
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is st...
MPEG-2 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstr...
packed RGB 4:4:4, 16bpp, (msb)4A 4R 4G 4B(lsb), little-endian, most significant bits to 0 ...
bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, big-endian */
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian
#define AV_PIX_FMT_FLAG_PLANAR
At least one pixel component is not in the first data plane.
packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is st...
bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, little-endian */
const AVPixFmtDescriptor * av_pix_fmt_desc_next(const AVPixFmtDescriptor *prev)
Iterate over all pixel format descriptors known to libavutil.
bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, little-endian */
uint16_t step_minus1
Number of elements between 2 horizontally consecutive pixels minus 1.
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of...
planar GBR 4:4:4 30bpp, big-endian
interleaved chroma YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
#define AV_PIX_FMT_FLAG_BITSTREAM
All values of a component are bit-wise packed end to end.
packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as lit...
planar GBRA 4:4:4:4 64bpp, little-endian
planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
HW decoding through VA API, Picture.data[3] contains a vaapi_render_state struct which contains the b...
hardware decoding through VDA
Y , 16bpp, little-endian.
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...
uint16_t plane
which of the 4 planes contains the component
int av_pix_fmt_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift)
Utility function to access log2_chroma_w log2_chroma_h from the pixel format AVPixFmtDescriptor.
#define FF_DISABLE_DEPRECATION_WARNINGS
planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as big...
planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
bayer, GRGR..(odd line), BGBG..(even line), 8-bit samples */
packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), little-endian, most significant bit to 1 ...
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)
planar YUV 4:4:4,42bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
#define AV_PIX_FMT_FLAG_RGB
The pixel format contains RGB-like data (as opposed to YUV/grayscale).
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
HW acceleration through VA API at motion compensation entry-point, Picture.data[3] contains a vaapi_r...
static FF_DISABLE_DEPRECATION_WARNINGS enum AVPixelFormat get_pix_fmt_internal(const char *name)
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
#define FF_ENABLE_DEPRECATION_WARNINGS
uint16_t offset_plus1
Number of elements before the component of the first pixel plus 1.
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
planar GBR 4:4:4 42bpp, little-endian
int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
Return the number of bits per pixel for the pixel format described by pixdesc, including any padding ...
planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface.
static void comp(unsigned char *dst, int dst_stride, unsigned char *src, int src_stride, int add)
planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
planar GBR 4:4:4 48bpp, little-endian
#define av_assert0(cond)
assert() equivalent, that is always enabled.
bayer, RGRG..(odd line), GBGB..(even line), 8-bit samples */
8 bit with PIX_FMT_RGB32 palette
planar GBR 4:4:4 30bpp, little-endian
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
common internal and external API header
packed RGB 8:8:8, 32bpp, 0RGB0RGB...
bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, big-endian */
#define AV_PIX_FMT_FLAG_ALPHA
The pixel format has an alpha channel.
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV422P and setting color_...
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
char * av_get_pix_fmt_string(char *buf, int buf_size, enum AVPixelFormat pix_fmt)
Print in buf the string corresponding to the pixel format with number pix_fmt, or a header if pix_fmt...
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
The following 12 formats have the disadvantage of needing 1 format for each bit depth.
#define av_assert2(cond)
assert() equivalent, that does lie in speed critical code.
planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), big-endian