annotate pixdesc.c @ 9473:e38284cd69dc libavcodec

Use memcpy instead of the very inefficient bytecopy where both are correct (i.e. no overlap of src and dst is possible).
author reimar
date Fri, 17 Apr 2009 17:20:48 +0000
parents 0262c95d36d8
children 8fdc1a9dc411
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 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
59 [PIX_FMT_YUV422P] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
60 .name = "yuv422p",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
61 .nb_channels = 3,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
62 .log2_chroma_w= 1,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
63 .log2_chroma_h= 0,
9018
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
64 .comp = {
9313
4703ca2612ba Add comments specifying the name of the components in the descriptors.
stefano
parents: 9234
diff changeset
65 {0,0,1,0,7}, /* Y */
4703ca2612ba Add comments specifying the name of the components in the descriptors.
stefano
parents: 9234
diff changeset
66 {1,0,1,0,7}, /* U */
4703ca2612ba Add comments specifying the name of the components in the descriptors.
stefano
parents: 9234
diff changeset
67 {2,0,1,0,7}, /* V */
9018
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
68 },
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
69 },
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
70 [PIX_FMT_YUV410P] = {
9187
e10efe27c6b1 Implement a name field for AVPixFmtDescriptor.
stefano
parents: 9169
diff changeset
71 .name = "yuv410p",
9018
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
72 .nb_channels = 3,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
73 .log2_chroma_w= 2,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
74 .log2_chroma_h= 2,
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 },
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
81 [PIX_FMT_MONOBLACK] = {
9187
e10efe27c6b1 Implement a name field for AVPixFmtDescriptor.
stefano
parents: 9169
diff changeset
82 .name = "monoblack",
9018
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
83 .nb_channels = 1,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
84 .log2_chroma_w= 0,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
85 .log2_chroma_h= 0,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
86 .comp = {
9313
4703ca2612ba Add comments specifying the name of the components in the descriptors.
stefano
parents: 9234
diff changeset
87 {0,0,1,7,0}, /* Y */
9018
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
88 },
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
89 .flags = PIX_FMT_BITSTREAM,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
90 },
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
91 [PIX_FMT_PAL8] = {
9187
e10efe27c6b1 Implement a name field for AVPixFmtDescriptor.
stefano
parents: 9169
diff changeset
92 .name = "pal8",
9018
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
93 .nb_channels = 1,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
94 .log2_chroma_w= 0,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
95 .log2_chroma_h= 0,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
96 .comp = {
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
97 {0,0,1,0,7},
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
98 },
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
99 .flags = PIX_FMT_PAL,
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
100 },
9316
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
101 [PIX_FMT_UYVY422] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
102 .name = "uyvy422",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
103 .nb_channels = 3,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
104 .log2_chroma_w= 1,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
105 .log2_chroma_h= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
106 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
107 {0,1,2,0,7}, /* Y */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
108 {0,3,1,0,7}, /* U */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
109 {0,3,3,0,7}, /* V */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
110 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
111 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
112 [PIX_FMT_NV12] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
113 .name = "nv12",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
114 .nb_channels = 3,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
115 .log2_chroma_w= 1,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
116 .log2_chroma_h= 1,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
117 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
118 {0,0,1,0,7}, /* Y */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
119 {1,1,1,0,7}, /* U */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
120 {1,1,2,0,7}, /* V */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
121 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
122 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
123 [PIX_FMT_RGBA] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
124 .name = "rgba",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
125 .nb_channels = 4,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
126 .log2_chroma_w= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
127 .log2_chroma_h= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
128 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
129 {0,3,1,0,7}, /* R */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
130 {0,3,2,0,7}, /* G */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
131 {0,3,3,0,7}, /* B */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
132 {0,3,4,0,7}, /* A */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
133 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
134 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
135 [PIX_FMT_GRAY16BE] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
136 .name = "gray16be",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
137 .nb_channels = 1,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
138 .log2_chroma_w= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
139 .log2_chroma_h= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
140 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
141 {0,1,1,0,15}, /* Y */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
142 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
143 .flags = PIX_FMT_BE,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
144 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
145 [PIX_FMT_GRAY16LE] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
146 .name = "gray16le",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
147 .nb_channels = 1,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
148 .log2_chroma_w= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
149 .log2_chroma_h= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
150 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
151 {0,1,1,0,15}, /* Y */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
152 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
153 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
154 [PIX_FMT_RGB48BE] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
155 .name = "rgb48be",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
156 .nb_channels = 3,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
157 .log2_chroma_w= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
158 .log2_chroma_h= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
159 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
160 {0,5,1,0,15}, /* R */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
161 {0,5,3,0,15}, /* G */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
162 {0,5,5,0,15}, /* B */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
163 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
164 .flags = PIX_FMT_BE,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
165 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
166 [PIX_FMT_RGB48LE] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
167 .name = "rgb48le",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
168 .nb_channels = 3,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
169 .log2_chroma_w= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
170 .log2_chroma_h= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
171 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
172 {0,5,1,0,15}, /* R */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
173 {0,5,3,0,15}, /* G */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
174 {0,5,5,0,15}, /* B */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
175 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
176 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
177 [PIX_FMT_RGB565BE] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
178 .name = "rgb565be",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
179 .nb_channels = 3,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
180 .log2_chroma_w= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
181 .log2_chroma_h= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
182 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
183 {0,1,0,3,4}, /* R */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
184 {0,1,1,5,5}, /* G */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
185 {0,1,1,0,4}, /* B */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
186 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
187 .flags = PIX_FMT_BE,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
188 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
189 [PIX_FMT_RGB565LE] = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
190 .name = "rgb565le",
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
191 .nb_channels = 3,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
192 .log2_chroma_w= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
193 .log2_chroma_h= 0,
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
194 .comp = {
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
195 {0,1,2,3,4}, /* R */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
196 {0,1,1,5,5}, /* G */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
197 {0,1,1,0,4}, /* B */
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
198 },
0262c95d36d8 Cosmetics: reorder the pixel format descriptors to make them match the
stefano
parents: 9314
diff changeset
199 },
9018
98995efdf3aa Pixel Format descriptor, try #1.
michael
parents:
diff changeset
200 };