34 int x,
int y,
int c,
int w,
35 int read_pal_component)
38 int plane = comp.
plane;
47 const uint8_t *p = data[plane] + y * linesize[plane] + (skip >> 3);
48 int shift = 8 - depth - (skip & 7);
51 int val = (*p >>
shift) & mask;
52 if (read_pal_component)
53 val = data[1][4*val +
c];
60 const uint8_t *p = data[plane] + y * linesize[plane] +
62 int is_8bit = shift + depth <= 8;
68 int val = is_8bit ? *p :
70 val = (val >>
shift) & mask;
71 if (read_pal_component)
72 val = data[1][4 * val +
c];
82 int x,
int y,
int c,
int w)
85 int plane = comp.
plane;
92 uint8_t *p = data[plane] + y * linesize[plane] + (skip >> 3);
93 int shift = 8 - depth - (skip & 7);
96 *p |= *src++ <<
shift;
103 uint8_t *p = data[plane] + y * linesize[plane] +
106 if (shift + depth <= 8) {
109 *p |= (*src++ <<
shift);
127 #if !FF_API_PIX_FMT_DESC
613 .name =
"yuva420p9be",
626 .name =
"yuva420p9le",
639 .name =
"yuva422p9be",
652 .name =
"yuva422p9le",
665 .name =
"yuva444p9be",
678 .name =
"yuva444p9le",
691 .name =
"yuva420p10be",
704 .name =
"yuva420p10le",
717 .name =
"yuva422p10be",
730 .name =
"yuva422p10le",
743 .name =
"yuva444p10be",
756 .name =
"yuva444p10le",
769 .name =
"yuva420p16be",
782 .name =
"yuva420p16le",
795 .name =
"yuva422p16be",
808 .name =
"yuva422p16le",
821 .name =
"yuva444p16be",
834 .name =
"yuva444p16le",
847 .name =
"vdpau_h264",
853 .name =
"vdpau_mpeg1",
859 .name =
"vdpau_mpeg2",
865 .name =
"vdpau_wmv3",
877 .name =
"vdpau_mpeg4",
1127 .name =
"vaapi_moco",
1133 .name =
"vaapi_idct",
1139 .name =
"vaapi_vld",
1145 .name =
"yuv420p9le",
1157 .name =
"yuv420p9be",
1169 .name =
"yuv420p10le",
1181 .name =
"yuv420p10be",
1193 .name =
"yuv420p12le",
1205 .name =
"yuv420p12be",
1217 .name =
"yuv420p14le",
1229 .name =
"yuv420p14be",
1241 .name =
"yuv420p16le",
1253 .name =
"yuv420p16be",
1265 .name =
"yuv422p9le",
1277 .name =
"yuv422p9be",
1289 .name =
"yuv422p10le",
1301 .name =
"yuv422p10be",
1313 .name =
"yuv422p12le",
1325 .name =
"yuv422p12be",
1337 .name =
"yuv422p14le",
1349 .name =
"yuv422p14be",
1361 .name =
"yuv422p16le",
1373 .name =
"yuv422p16be",
1385 .name =
"yuv444p16le",
1397 .name =
"yuv444p16be",
1409 .name =
"yuv444p10le",
1421 .name =
"yuv444p10be",
1433 .name =
"yuv444p9le",
1445 .name =
"yuv444p9be",
1457 .name =
"yuv444p12le",
1469 .name =
"yuv444p12be",
1481 .name =
"yuv444p14le",
1493 .name =
"yuv444p14be",
1505 .name =
"dxva2_vld",
1664 if (av_pix_fmt_descriptors[pix_fmt].name &&
1665 !strcmp(av_pix_fmt_descriptors[pix_fmt].name, name))
1678 # define X_NE(be, le) be
1680 # define X_NE(be, le) le
1687 if (!strcmp(name,
"rgb32"))
1688 name =
X_NE(
"argb",
"bgra");
1689 else if (!strcmp(name,
"bgr32"))
1690 name =
X_NE(
"abgr",
"rgba");
1696 snprintf(name2,
sizeof(name2),
"%s%s", name,
X_NE(
"be",
"le"));
1708 int s = c == 1 || c == 2 ? 0 : log2_pixels;
1712 return bits >> log2_pixels;
1723 int s = c == 1 || c == 2 ? 0 : log2_pixels;
1726 for (c = 0; c < 4; c++)
1732 return bits >> log2_pixels;
1739 snprintf (buf, buf_size,
"name" " nb_components" " nb_bits");
1742 snprintf(buf, buf_size,
"%-11s %7d %10d", pixdesc->
name,
1753 return &av_pix_fmt_descriptors[
pix_fmt];
1759 return &av_pix_fmt_descriptors[0];
1760 while (prev - av_pix_fmt_descriptors <
FF_ARRAY_ELEMS(av_pix_fmt_descriptors) - 1) {
1770 if (desc < av_pix_fmt_descriptors ||
1771 desc >= av_pix_fmt_descriptors +
FF_ARRAY_ELEMS(av_pix_fmt_descriptors))
1778 int *h_shift,
int *v_shift)