annotate pixdesc.c @ 10057:cfb009484d2d libavcodec

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