annotate pixdesc.c @ 783:c0b4f10edb74 libavutil

Add pixel format descriptors for the HW-accelerated formats. This completes the list of all descriptors in av_pix_fmt_descriptors.
author stefano
date Thu, 05 Nov 2009 23:45:15 +0000
parents 9b06eaf7b6ef
children 664b42a6cf75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
781
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
1 /*
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
2 * pixel format descriptor
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
3 * Copyright (c) 2009 Michael Niedermayer <michaelni@gmx.at>
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
4 *
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
5 * This file is part of FFmpeg.
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
6 *
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
11 *
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
15 * Lesser General Public License for more details.
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
16 *
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
20 */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
21
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
22 #include "pixfmt.h"
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
23 #include "pixdesc.h"
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
24
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
25 const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
26 [PIX_FMT_YUV420P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
27 .name = "yuv420p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
28 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
29 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
30 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
31 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
32 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
33 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
34 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
35 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
36 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
37 [PIX_FMT_YUYV422] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
38 .name = "yuyv422",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
39 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
40 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
41 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
42 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
43 {0,1,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
44 {0,3,2,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
45 {0,3,4,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
46 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
47 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
48 [PIX_FMT_RGB24] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
49 .name = "rgb24",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
50 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
51 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
52 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
53 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
54 {0,2,1,0,7}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
55 {0,2,2,0,7}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
56 {0,2,3,0,7}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
57 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
58 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
59 [PIX_FMT_BGR24] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
60 .name = "bgr24",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
61 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
62 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
63 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
64 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
65 {0,2,1,0,7}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
66 {0,2,2,0,7}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
67 {0,2,3,0,7}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
68 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
69 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
70 [PIX_FMT_YUV422P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
71 .name = "yuv422p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
72 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
73 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
74 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
75 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
76 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
77 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
78 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
79 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
80 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
81 [PIX_FMT_YUV444P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
82 .name = "yuv444p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
83 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
84 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
85 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
86 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
87 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
88 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
89 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
90 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
91 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
92 [PIX_FMT_YUV410P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
93 .name = "yuv410p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
94 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
95 .log2_chroma_w= 2,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
96 .log2_chroma_h= 2,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
97 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
98 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
99 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
100 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
101 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
102 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
103 [PIX_FMT_YUV411P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
104 .name = "yuv411p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
105 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
106 .log2_chroma_w= 2,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
107 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
108 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
109 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
110 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
111 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
112 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
113 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
114 [PIX_FMT_GRAY8] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
115 .name = "gray8",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
116 .nb_channels = 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
117 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
118 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
119 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
120 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
121 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
122 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
123 [PIX_FMT_MONOWHITE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
124 .name = "monowhite",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
125 .nb_channels = 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
126 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
127 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
128 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
129 {0,0,1,0,0}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
130 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
131 .flags = PIX_FMT_BITSTREAM,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
132 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
133 [PIX_FMT_MONOBLACK] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
134 .name = "monoblack",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
135 .nb_channels = 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
136 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
137 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
138 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
139 {0,0,1,7,0}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
140 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
141 .flags = PIX_FMT_BITSTREAM,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
142 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
143 [PIX_FMT_PAL8] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
144 .name = "pal8",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
145 .nb_channels = 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
146 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
147 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
148 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
149 {0,0,1,0,7},
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
150 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
151 .flags = PIX_FMT_PAL,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
152 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
153 [PIX_FMT_YUVJ420P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
154 .name = "yuvj420p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
155 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
156 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
157 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
158 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
159 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
160 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
161 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
162 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
163 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
164 [PIX_FMT_YUVJ422P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
165 .name = "yuvj422p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
166 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
167 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
168 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
169 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
170 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
171 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
172 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
173 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
174 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
175 [PIX_FMT_YUVJ444P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
176 .name = "yuvj444p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
177 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
178 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
179 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
180 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
181 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
182 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
183 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
184 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
185 },
783
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
186 [PIX_FMT_XVMC_MPEG2_MC] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
187 .name = "xvmc_mpeg2_mc",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
188 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
189 },
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
190 [PIX_FMT_XVMC_MPEG2_IDCT] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
191 .name = "xvmc_mpeg2_idct",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
192 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
193 },
781
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
194 [PIX_FMT_UYVY422] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
195 .name = "uyvy422",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
196 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
197 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
198 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
199 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
200 {0,1,2,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
201 {0,3,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
202 {0,3,3,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
203 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
204 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
205 [PIX_FMT_UYYVYY411] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
206 .name = "uyyvyy411",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
207 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
208 .log2_chroma_w= 2,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
209 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
210 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
211 {0,3,2,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
212 {0,5,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
213 {0,5,4,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
214 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
215 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
216 [PIX_FMT_BGR8] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
217 .name = "bgr8",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
218 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
219 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
220 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
221 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
222 {0,0,1,6,1}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
223 {0,0,1,3,2}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
224 {0,0,1,0,2}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
225 },
782
9b06eaf7b6ef Add PIX_FMT_PAL flag to BGR8, BGR4_BYTE, RGB8, and RGB4_BYTE formats.
stefano
parents: 781
diff changeset
226 .flags = PIX_FMT_PAL,
781
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
227 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
228 [PIX_FMT_BGR4] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
229 .name = "bgr4",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
230 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
231 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
232 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
233 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
234 {0,3,1,0,0}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
235 {0,3,2,0,1}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
236 {0,3,4,0,0}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
237 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
238 .flags = PIX_FMT_BITSTREAM,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
239 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
240 [PIX_FMT_BGR4_BYTE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
241 .name = "bgr4_byte",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
242 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
243 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
244 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
245 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
246 {0,0,1,3,0}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
247 {0,0,1,1,1}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
248 {0,0,1,0,0}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
249 },
782
9b06eaf7b6ef Add PIX_FMT_PAL flag to BGR8, BGR4_BYTE, RGB8, and RGB4_BYTE formats.
stefano
parents: 781
diff changeset
250 .flags = PIX_FMT_PAL,
781
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
251 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
252 [PIX_FMT_RGB8] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
253 .name = "rgb8",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
254 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
255 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
256 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
257 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
258 {0,0,1,6,1}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
259 {0,0,1,3,2}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
260 {0,0,1,0,2}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
261 },
782
9b06eaf7b6ef Add PIX_FMT_PAL flag to BGR8, BGR4_BYTE, RGB8, and RGB4_BYTE formats.
stefano
parents: 781
diff changeset
262 .flags = PIX_FMT_PAL,
781
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
263 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
264 [PIX_FMT_RGB4] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
265 .name = "rgb4",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
266 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
267 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
268 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
269 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
270 {0,3,1,0,0}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
271 {0,3,2,0,1}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
272 {0,3,4,0,0}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
273 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
274 .flags = PIX_FMT_BITSTREAM,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
275 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
276 [PIX_FMT_RGB4_BYTE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
277 .name = "rgb4_byte",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
278 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
279 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
280 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
281 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
282 {0,0,1,3,0}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
283 {0,0,1,1,1}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
284 {0,0,1,0,0}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
285 },
782
9b06eaf7b6ef Add PIX_FMT_PAL flag to BGR8, BGR4_BYTE, RGB8, and RGB4_BYTE formats.
stefano
parents: 781
diff changeset
286 .flags = PIX_FMT_PAL,
781
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
287 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
288 [PIX_FMT_NV12] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
289 .name = "nv12",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
290 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
291 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
292 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
293 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
294 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
295 {1,1,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
296 {1,1,2,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
297 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
298 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
299 [PIX_FMT_NV21] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
300 .name = "nv21",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
301 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
302 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
303 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
304 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
305 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
306 {1,1,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
307 {1,1,2,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
308 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
309 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
310 [PIX_FMT_ARGB] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
311 .name = "argb",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
312 .nb_channels = 4,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
313 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
314 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
315 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
316 {0,3,1,0,7}, /* A */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
317 {0,3,2,0,7}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
318 {0,3,3,0,7}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
319 {0,3,4,0,7}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
320 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
321 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
322 [PIX_FMT_RGBA] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
323 .name = "rgba",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
324 .nb_channels = 4,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
325 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
326 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
327 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
328 {0,3,1,0,7}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
329 {0,3,2,0,7}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
330 {0,3,3,0,7}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
331 {0,3,4,0,7}, /* A */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
332 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
333 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
334 [PIX_FMT_ABGR] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
335 .name = "abgr",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
336 .nb_channels = 4,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
337 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
338 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
339 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
340 {0,3,1,0,7}, /* A */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
341 {0,3,2,0,7}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
342 {0,3,3,0,7}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
343 {0,3,4,0,7}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
344 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
345 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
346 [PIX_FMT_BGRA] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
347 .name = "bgra",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
348 .nb_channels = 4,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
349 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
350 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
351 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
352 {0,3,1,0,7}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
353 {0,3,2,0,7}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
354 {0,3,3,0,7}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
355 {0,3,4,0,7}, /* A */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
356 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
357 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
358 [PIX_FMT_GRAY16BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
359 .name = "gray16be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
360 .nb_channels = 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
361 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
362 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
363 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
364 {0,1,1,0,15}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
365 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
366 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
367 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
368 [PIX_FMT_GRAY16LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
369 .name = "gray16le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
370 .nb_channels = 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
371 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
372 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
373 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
374 {0,1,1,0,15}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
375 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
376 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
377 [PIX_FMT_YUV440P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
378 .name = "yuv440p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
379 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
380 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
381 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
382 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
383 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
384 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
385 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
386 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
387 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
388 [PIX_FMT_YUVJ440P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
389 .name = "yuvj440p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
390 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
391 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
392 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
393 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
394 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
395 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
396 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
397 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
398 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
399 [PIX_FMT_YUVA420P] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
400 .name = "yuva420p",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
401 .nb_channels = 4,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
402 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
403 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
404 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
405 {0,0,1,0,7}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
406 {1,0,1,0,7}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
407 {2,0,1,0,7}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
408 {3,0,1,0,7}, /* A */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
409 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
410 },
783
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
411 [PIX_FMT_VDPAU_H264] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
412 .name = "vdpau_h264",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
413 .log2_chroma_w = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
414 .log2_chroma_h = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
415 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
416 },
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
417 [PIX_FMT_VDPAU_MPEG1] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
418 .name = "vdpau_mpeg1",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
419 .log2_chroma_w = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
420 .log2_chroma_h = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
421 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
422 },
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
423 [PIX_FMT_VDPAU_MPEG2] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
424 .name = "vdpau_mpeg2",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
425 .log2_chroma_w = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
426 .log2_chroma_h = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
427 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
428 },
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
429 [PIX_FMT_VDPAU_WMV3] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
430 .name = "vdpau_wmv3",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
431 .log2_chroma_w = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
432 .log2_chroma_h = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
433 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
434 },
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
435 [PIX_FMT_VDPAU_VC1] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
436 .name = "vdpau_vc1",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
437 .log2_chroma_w = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
438 .log2_chroma_h = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
439 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
440 },
781
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
441 [PIX_FMT_RGB48BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
442 .name = "rgb48be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
443 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
444 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
445 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
446 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
447 {0,5,1,0,15}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
448 {0,5,3,0,15}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
449 {0,5,5,0,15}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
450 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
451 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
452 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
453 [PIX_FMT_RGB48LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
454 .name = "rgb48le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
455 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
456 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
457 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
458 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
459 {0,5,1,0,15}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
460 {0,5,3,0,15}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
461 {0,5,5,0,15}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
462 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
463 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
464 [PIX_FMT_RGB565BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
465 .name = "rgb565be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
466 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
467 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
468 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
469 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
470 {0,1,0,3,4}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
471 {0,1,1,5,5}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
472 {0,1,1,0,4}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
473 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
474 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
475 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
476 [PIX_FMT_RGB565LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
477 .name = "rgb565le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
478 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
479 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
480 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
481 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
482 {0,1,2,3,4}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
483 {0,1,1,5,5}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
484 {0,1,1,0,4}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
485 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
486 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
487 [PIX_FMT_RGB555BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
488 .name = "rgb555be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
489 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
490 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
491 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
492 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
493 {0,1,0,2,4}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
494 {0,1,1,5,4}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
495 {0,1,1,0,4}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
496 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
497 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
498 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
499 [PIX_FMT_RGB555LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
500 .name = "rgb555le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
501 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
502 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
503 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
504 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
505 {0,1,2,2,4}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
506 {0,1,1,5,4}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
507 {0,1,1,0,4}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
508 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
509 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
510 [PIX_FMT_BGR565BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
511 .name = "bgr565be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
512 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
513 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
514 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
515 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
516 {0,1,0,3,4}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
517 {0,1,1,5,5}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
518 {0,1,1,0,4}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
519 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
520 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
521 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
522 [PIX_FMT_BGR565LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
523 .name = "bgr565le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
524 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
525 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
526 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
527 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
528 {0,1,2,3,4}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
529 {0,1,1,5,5}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
530 {0,1,1,0,4}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
531 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
532 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
533 [PIX_FMT_BGR555BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
534 .name = "bgr555be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
535 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
536 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
537 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
538 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
539 {0,1,0,2,4}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
540 {0,1,1,5,4}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
541 {0,1,1,0,4}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
542 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
543 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
544 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
545 [PIX_FMT_BGR555LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
546 .name = "bgr555le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
547 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
548 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
549 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
550 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
551 {0,1,2,2,4}, /* B */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
552 {0,1,1,5,4}, /* G */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
553 {0,1,1,0,4}, /* R */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
554 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
555 },
783
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
556 [PIX_FMT_VAAPI_MOCO] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
557 .name = "vaapi_moco",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
558 .log2_chroma_w = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
559 .log2_chroma_h = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
560 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
561 },
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
562 [PIX_FMT_VAAPI_IDCT] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
563 .name = "vaapi_idct",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
564 .log2_chroma_w = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
565 .log2_chroma_h = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
566 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
567 },
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
568 [PIX_FMT_VAAPI_VLD] = {
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
569 .name = "vaapi_vld",
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
570 .log2_chroma_w = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
571 .log2_chroma_h = 1,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
572 .flags = PIX_FMT_HWACCEL,
c0b4f10edb74 Add pixel format descriptors for the HW-accelerated formats.
stefano
parents: 782
diff changeset
573 },
781
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
574 [PIX_FMT_YUV420P16LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
575 .name = "yuv420p16le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
576 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
577 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
578 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
579 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
580 {0,1,1,0,15}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
581 {1,1,1,0,15}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
582 {2,1,1,0,15}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
583 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
584 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
585 [PIX_FMT_YUV420P16BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
586 .name = "yuv420p16be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
587 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
588 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
589 .log2_chroma_h= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
590 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
591 {0,1,1,0,15}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
592 {1,1,1,0,15}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
593 {2,1,1,0,15}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
594 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
595 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
596 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
597 [PIX_FMT_YUV422P16LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
598 .name = "yuv422p16le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
599 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
600 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
601 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
602 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
603 {0,1,1,0,15}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
604 {1,1,1,0,15}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
605 {2,1,1,0,15}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
606 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
607 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
608 [PIX_FMT_YUV422P16BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
609 .name = "yuv422p16be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
610 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
611 .log2_chroma_w= 1,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
612 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
613 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
614 {0,1,1,0,15}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
615 {1,1,1,0,15}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
616 {2,1,1,0,15}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
617 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
618 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
619 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
620 [PIX_FMT_YUV444P16LE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
621 .name = "yuv444p16le",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
622 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
623 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
624 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
625 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
626 {0,1,1,0,15}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
627 {1,1,1,0,15}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
628 {2,1,1,0,15}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
629 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
630 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
631 [PIX_FMT_YUV444P16BE] = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
632 .name = "yuv444p16be",
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
633 .nb_channels = 3,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
634 .log2_chroma_w= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
635 .log2_chroma_h= 0,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
636 .comp = {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
637 {0,1,1,0,15}, /* Y */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
638 {1,1,1,0,15}, /* U */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
639 {2,1,1,0,15}, /* V */
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
640 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
641 .flags = PIX_FMT_BE,
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
642 },
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
643 };
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
644
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
645 int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc)
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
646 {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
647 int c, bits = 0;
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
648 int log2_pixels = pixdesc->log2_chroma_w + pixdesc->log2_chroma_h;
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
649
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
650 for (c = 0; c < pixdesc->nb_channels; c++) {
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
651 int s = c==1 || c==2 ? 0 : log2_pixels;
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
652 bits += (pixdesc->comp[c].depth_minus1+1) << s;
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
653 }
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
654
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
655 return bits >> log2_pixels;
9ef56664097a Move pixdesc.{h,c} from libavcodec to libavutil.
stefano
parents:
diff changeset
656 }