FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
raw.c
Go to the documentation of this file.
1 /*
2  * Raw Video Codec
3  * Copyright (c) 2001 Fabrice Bellard
4  *
5  * This file is part of FFmpeg.
6  *
7  * FFmpeg is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * FFmpeg is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with FFmpeg; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 /**
23  * @file
24  * Raw Video Codec
25  */
26 
27 #include "avcodec.h"
28 #include "raw.h"
29 #include "libavutil/common.h"
30 
32  { AV_PIX_FMT_YUV420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */
33  { AV_PIX_FMT_YUV420P, MKTAG('I', 'Y', 'U', 'V') },
34  { AV_PIX_FMT_YUV420P, MKTAG('Y', 'V', '1', '2') },
35  { AV_PIX_FMT_YUV410P, MKTAG('Y', 'U', 'V', '9') },
36  { AV_PIX_FMT_YUV410P, MKTAG('Y', 'V', 'U', '9') },
37  { AV_PIX_FMT_YUV411P, MKTAG('Y', '4', '1', 'B') },
38  { AV_PIX_FMT_YUV422P, MKTAG('Y', '4', '2', 'B') },
39  { AV_PIX_FMT_YUV422P, MKTAG('P', '4', '2', '2') },
40  { AV_PIX_FMT_YUV422P, MKTAG('Y', 'V', '1', '6') },
41  /* yuvjXXX formats are deprecated hacks specific to libav*,
42  they are identical to yuvXXX */
43  { AV_PIX_FMT_YUVJ420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */
44  { AV_PIX_FMT_YUVJ420P, MKTAG('I', 'Y', 'U', 'V') },
45  { AV_PIX_FMT_YUVJ420P, MKTAG('Y', 'V', '1', '2') },
46  { AV_PIX_FMT_YUVJ422P, MKTAG('Y', '4', '2', 'B') },
47  { AV_PIX_FMT_YUVJ422P, MKTAG('P', '4', '2', '2') },
48  { AV_PIX_FMT_GRAY8, MKTAG('Y', '8', '0', '0') },
49  { AV_PIX_FMT_GRAY8, MKTAG('Y', '8', ' ', ' ') },
50 
51  { AV_PIX_FMT_YUYV422, MKTAG('Y', 'U', 'Y', '2') }, /* Packed formats */
52  { AV_PIX_FMT_YUYV422, MKTAG('Y', '4', '2', '2') },
53  { AV_PIX_FMT_YUYV422, MKTAG('V', '4', '2', '2') },
54  { AV_PIX_FMT_YUYV422, MKTAG('V', 'Y', 'U', 'Y') },
55  { AV_PIX_FMT_YUYV422, MKTAG('Y', 'U', 'N', 'V') },
56  { AV_PIX_FMT_YVYU422, MKTAG('Y', 'V', 'Y', 'U') }, /* Philips */
57  { AV_PIX_FMT_UYVY422, MKTAG('U', 'Y', 'V', 'Y') },
58  { AV_PIX_FMT_UYVY422, MKTAG('H', 'D', 'Y', 'C') },
59  { AV_PIX_FMT_UYVY422, MKTAG('U', 'Y', 'N', 'V') },
60  { AV_PIX_FMT_UYVY422, MKTAG('U', 'Y', 'N', 'Y') },
61  { AV_PIX_FMT_UYVY422, MKTAG('u', 'y', 'v', '1') },
62  { AV_PIX_FMT_UYVY422, MKTAG('2', 'V', 'u', '1') },
63  { AV_PIX_FMT_UYVY422, MKTAG('A', 'V', 'R', 'n') }, /* Avid AVI Codec 1:1 */
64  { AV_PIX_FMT_UYVY422, MKTAG('A', 'V', '1', 'x') }, /* Avid 1:1x */
65  { AV_PIX_FMT_UYVY422, MKTAG('A', 'V', 'u', 'p') },
66  { AV_PIX_FMT_UYVY422, MKTAG('V', 'D', 'T', 'Z') }, /* SoftLab-NSK VideoTizer */
67  { AV_PIX_FMT_UYVY422, MKTAG('a', 'u', 'v', '2') },
68  { AV_PIX_FMT_UYVY422, MKTAG('c', 'y', 'u', 'v') }, /* CYUV is also Creative YUV */
69  { AV_PIX_FMT_UYYVYY411, MKTAG('Y', '4', '1', '1') },
70  { AV_PIX_FMT_GRAY8, MKTAG('G', 'R', 'E', 'Y') },
71  { AV_PIX_FMT_NV12, MKTAG('N', 'V', '1', '2') },
72  { AV_PIX_FMT_NV21, MKTAG('N', 'V', '2', '1') },
73 
74  /* nut */
75  { AV_PIX_FMT_RGB555LE, MKTAG('R', 'G', 'B', 15) },
76  { AV_PIX_FMT_BGR555LE, MKTAG('B', 'G', 'R', 15) },
77  { AV_PIX_FMT_RGB565LE, MKTAG('R', 'G', 'B', 16) },
78  { AV_PIX_FMT_BGR565LE, MKTAG('B', 'G', 'R', 16) },
79  { AV_PIX_FMT_RGB555BE, MKTAG(15 , 'B', 'G', 'R') },
80  { AV_PIX_FMT_BGR555BE, MKTAG(15 , 'R', 'G', 'B') },
81  { AV_PIX_FMT_RGB565BE, MKTAG(16 , 'B', 'G', 'R') },
82  { AV_PIX_FMT_BGR565BE, MKTAG(16 , 'R', 'G', 'B') },
83  { AV_PIX_FMT_RGB444LE, MKTAG('R', 'G', 'B', 12) },
84  { AV_PIX_FMT_BGR444LE, MKTAG('B', 'G', 'R', 12) },
85  { AV_PIX_FMT_RGB444BE, MKTAG(12 , 'B', 'G', 'R') },
86  { AV_PIX_FMT_BGR444BE, MKTAG(12 , 'R', 'G', 'B') },
87  { AV_PIX_FMT_RGBA64LE, MKTAG('R', 'B', 'A', 64 ) },
88  { AV_PIX_FMT_BGRA64LE, MKTAG('B', 'R', 'A', 64 ) },
89  { AV_PIX_FMT_RGBA64BE, MKTAG(64 , 'R', 'B', 'A') },
90  { AV_PIX_FMT_BGRA64BE, MKTAG(64 , 'B', 'R', 'A') },
91  { AV_PIX_FMT_RGBA, MKTAG('R', 'G', 'B', 'A') },
92  { AV_PIX_FMT_RGB0, MKTAG('R', 'G', 'B', 0 ) },
93  { AV_PIX_FMT_BGRA, MKTAG('B', 'G', 'R', 'A') },
94  { AV_PIX_FMT_BGR0, MKTAG('B', 'G', 'R', 0 ) },
95  { AV_PIX_FMT_ABGR, MKTAG('A', 'B', 'G', 'R') },
96  { AV_PIX_FMT_0BGR, MKTAG( 0 , 'B', 'G', 'R') },
97  { AV_PIX_FMT_ARGB, MKTAG('A', 'R', 'G', 'B') },
98  { AV_PIX_FMT_0RGB, MKTAG( 0 , 'R', 'G', 'B') },
99  { AV_PIX_FMT_RGB24, MKTAG('R', 'G', 'B', 24 ) },
100  { AV_PIX_FMT_BGR24, MKTAG('B', 'G', 'R', 24 ) },
101  { AV_PIX_FMT_YUV411P, MKTAG('4', '1', '1', 'P') },
102  { AV_PIX_FMT_YUV422P, MKTAG('4', '2', '2', 'P') },
103  { AV_PIX_FMT_YUVJ422P, MKTAG('4', '2', '2', 'P') },
104  { AV_PIX_FMT_YUV440P, MKTAG('4', '4', '0', 'P') },
105  { AV_PIX_FMT_YUVJ440P, MKTAG('4', '4', '0', 'P') },
106  { AV_PIX_FMT_YUV444P, MKTAG('4', '4', '4', 'P') },
107  { AV_PIX_FMT_YUVJ444P, MKTAG('4', '4', '4', 'P') },
108  { AV_PIX_FMT_MONOWHITE,MKTAG('B', '1', 'W', '0') },
109  { AV_PIX_FMT_MONOBLACK,MKTAG('B', '0', 'W', '1') },
110  { AV_PIX_FMT_BGR8, MKTAG('B', 'G', 'R', 8 ) },
111  { AV_PIX_FMT_RGB8, MKTAG('R', 'G', 'B', 8 ) },
112  { AV_PIX_FMT_BGR4, MKTAG('B', 'G', 'R', 4 ) },
113  { AV_PIX_FMT_RGB4, MKTAG('R', 'G', 'B', 4 ) },
114  { AV_PIX_FMT_RGB4_BYTE,MKTAG('B', '4', 'B', 'Y') },
115  { AV_PIX_FMT_BGR4_BYTE,MKTAG('R', '4', 'B', 'Y') },
116  { AV_PIX_FMT_RGB48LE, MKTAG('R', 'G', 'B', 48 ) },
117  { AV_PIX_FMT_RGB48BE, MKTAG( 48, 'R', 'G', 'B') },
118  { AV_PIX_FMT_BGR48LE, MKTAG('B', 'G', 'R', 48 ) },
119  { AV_PIX_FMT_BGR48BE, MKTAG( 48, 'B', 'G', 'R') },
120  { AV_PIX_FMT_GRAY16LE, MKTAG('Y', '1', 0 , 16 ) },
121  { AV_PIX_FMT_GRAY16BE, MKTAG(16 , 0 , '1', 'Y') },
122  { AV_PIX_FMT_YUV420P10LE, MKTAG('Y', '3', 11 , 10 ) },
123  { AV_PIX_FMT_YUV420P10BE, MKTAG(10 , 11 , '3', 'Y') },
124  { AV_PIX_FMT_YUV422P10LE, MKTAG('Y', '3', 10 , 10 ) },
125  { AV_PIX_FMT_YUV422P10BE, MKTAG(10 , 10 , '3', 'Y') },
126  { AV_PIX_FMT_YUV444P10LE, MKTAG('Y', '3', 0 , 10 ) },
127  { AV_PIX_FMT_YUV444P10BE, MKTAG(10 , 0 , '3', 'Y') },
128  { AV_PIX_FMT_YUV420P12LE, MKTAG('Y', '3', 11 , 12 ) },
129  { AV_PIX_FMT_YUV420P12BE, MKTAG(12 , 11 , '3', 'Y') },
130  { AV_PIX_FMT_YUV422P12LE, MKTAG('Y', '3', 10 , 12 ) },
131  { AV_PIX_FMT_YUV422P12BE, MKTAG(12 , 10 , '3', 'Y') },
132  { AV_PIX_FMT_YUV444P12LE, MKTAG('Y', '3', 0 , 12 ) },
133  { AV_PIX_FMT_YUV444P12BE, MKTAG(12 , 0 , '3', 'Y') },
134  { AV_PIX_FMT_YUV420P14LE, MKTAG('Y', '3', 11 , 14 ) },
135  { AV_PIX_FMT_YUV420P14BE, MKTAG(14 , 11 , '3', 'Y') },
136  { AV_PIX_FMT_YUV422P14LE, MKTAG('Y', '3', 10 , 14 ) },
137  { AV_PIX_FMT_YUV422P14BE, MKTAG(14 , 10 , '3', 'Y') },
138  { AV_PIX_FMT_YUV444P14LE, MKTAG('Y', '3', 0 , 14 ) },
139  { AV_PIX_FMT_YUV444P14BE, MKTAG(14 , 0 , '3', 'Y') },
140  { AV_PIX_FMT_YUV420P16LE, MKTAG('Y', '3', 11 , 16 ) },
141  { AV_PIX_FMT_YUV420P16BE, MKTAG(16 , 11 , '3', 'Y') },
142  { AV_PIX_FMT_YUV422P16LE, MKTAG('Y', '3', 10 , 16 ) },
143  { AV_PIX_FMT_YUV422P16BE, MKTAG(16 , 10 , '3', 'Y') },
144  { AV_PIX_FMT_YUV444P16LE, MKTAG('Y', '3', 0 , 16 ) },
145  { AV_PIX_FMT_YUV444P16BE, MKTAG(16 , 0 , '3', 'Y') },
146  { AV_PIX_FMT_YUVA420P, MKTAG('Y', '4', 11 , 8 ) },
147  { AV_PIX_FMT_YUVA422P, MKTAG('Y', '4', 10 , 8 ) },
148  { AV_PIX_FMT_YUVA444P, MKTAG('Y', '4', 0 , 8 ) },
149  { AV_PIX_FMT_YA8, MKTAG('Y', '2', 0 , 8 ) },
150 
151  { AV_PIX_FMT_YUVA420P9LE, MKTAG('Y', '4', 11 , 9 ) },
152  { AV_PIX_FMT_YUVA420P9BE, MKTAG( 9 , 11 , '4', 'Y') },
153  { AV_PIX_FMT_YUVA422P9LE, MKTAG('Y', '4', 10 , 9 ) },
154  { AV_PIX_FMT_YUVA422P9BE, MKTAG( 9 , 10 , '4', 'Y') },
155  { AV_PIX_FMT_YUVA444P9LE, MKTAG('Y', '4', 0 , 9 ) },
156  { AV_PIX_FMT_YUVA444P9BE, MKTAG( 9 , 0 , '4', 'Y') },
157  { AV_PIX_FMT_YUVA420P10LE, MKTAG('Y', '4', 11 , 10 ) },
158  { AV_PIX_FMT_YUVA420P10BE, MKTAG(10 , 11 , '4', 'Y') },
159  { AV_PIX_FMT_YUVA422P10LE, MKTAG('Y', '4', 10 , 10 ) },
160  { AV_PIX_FMT_YUVA422P10BE, MKTAG(10 , 10 , '4', 'Y') },
161  { AV_PIX_FMT_YUVA444P10LE, MKTAG('Y', '4', 0 , 10 ) },
162  { AV_PIX_FMT_YUVA444P10BE, MKTAG(10 , 0 , '4', 'Y') },
163  { AV_PIX_FMT_YUVA420P16LE, MKTAG('Y', '4', 11 , 16 ) },
164  { AV_PIX_FMT_YUVA420P16BE, MKTAG(16 , 11 , '4', 'Y') },
165  { AV_PIX_FMT_YUVA422P16LE, MKTAG('Y', '4', 10 , 16 ) },
166  { AV_PIX_FMT_YUVA422P16BE, MKTAG(16 , 10 , '4', 'Y') },
167  { AV_PIX_FMT_YUVA444P16LE, MKTAG('Y', '4', 0 , 16 ) },
168  { AV_PIX_FMT_YUVA444P16BE, MKTAG(16 , 0 , '4', 'Y') },
169 
170  { AV_PIX_FMT_GBRP, MKTAG('G', '3', 00 , 8 ) },
171  { AV_PIX_FMT_GBRP9LE, MKTAG('G', '3', 00 , 9 ) },
172  { AV_PIX_FMT_GBRP9BE, MKTAG( 9 , 00 , '3', 'G') },
173  { AV_PIX_FMT_GBRP10LE, MKTAG('G', '3', 00 , 10 ) },
174  { AV_PIX_FMT_GBRP10BE, MKTAG(10 , 00 , '3', 'G') },
175  { AV_PIX_FMT_GBRP12LE, MKTAG('G', '3', 00 , 12 ) },
176  { AV_PIX_FMT_GBRP12BE, MKTAG(12 , 00 , '3', 'G') },
177  { AV_PIX_FMT_GBRP14LE, MKTAG('G', '3', 00 , 14 ) },
178  { AV_PIX_FMT_GBRP14BE, MKTAG(14 , 00 , '3', 'G') },
179  { AV_PIX_FMT_GBRP16LE, MKTAG('G', '3', 00 , 16 ) },
180  { AV_PIX_FMT_GBRP16BE, MKTAG(16 , 00 , '3', 'G') },
181 
182  { AV_PIX_FMT_XYZ12LE, MKTAG('X', 'Y', 'Z' , 36 ) },
183  { AV_PIX_FMT_XYZ12BE, MKTAG(36 , 'Z' , 'Y', 'X') },
184 
185  { AV_PIX_FMT_BAYER_BGGR8, MKTAG(0xBA, 'B', 'G', 8 ) },
186  { AV_PIX_FMT_BAYER_BGGR16LE, MKTAG(0xBA, 'B', 'G', 16 ) },
187  { AV_PIX_FMT_BAYER_BGGR16BE, MKTAG(16 , 'G', 'B', 0xBA) },
188  { AV_PIX_FMT_BAYER_RGGB8, MKTAG(0xBA, 'R', 'G', 8 ) },
189  { AV_PIX_FMT_BAYER_RGGB16LE, MKTAG(0xBA, 'R', 'G', 16 ) },
190  { AV_PIX_FMT_BAYER_RGGB16BE, MKTAG(16 , 'G', 'R', 0xBA) },
191  { AV_PIX_FMT_BAYER_GBRG8, MKTAG(0xBA, 'G', 'B', 8 ) },
192  { AV_PIX_FMT_BAYER_GBRG16LE, MKTAG(0xBA, 'G', 'B', 16 ) },
193  { AV_PIX_FMT_BAYER_GBRG16BE, MKTAG(16, 'B', 'G', 0xBA) },
194  { AV_PIX_FMT_BAYER_GRBG8, MKTAG(0xBA, 'G', 'R', 8 ) },
195  { AV_PIX_FMT_BAYER_GRBG16LE, MKTAG(0xBA, 'G', 'R', 16 ) },
196  { AV_PIX_FMT_BAYER_GRBG16BE, MKTAG(16, 'R', 'G', 0xBA) },
197 
198  /* quicktime */
199  { AV_PIX_FMT_YUV420P, MKTAG('R', '4', '2', '0') }, /* Radius DV YUV PAL */
200  { AV_PIX_FMT_YUV411P, MKTAG('R', '4', '1', '1') }, /* Radius DV YUV NTSC */
201  { AV_PIX_FMT_UYVY422, MKTAG('2', 'v', 'u', 'y') },
202  { AV_PIX_FMT_UYVY422, MKTAG('2', 'V', 'u', 'y') },
203  { AV_PIX_FMT_UYVY422, MKTAG('A', 'V', 'U', 'I') }, /* FIXME merge both fields */
204  { AV_PIX_FMT_UYVY422, MKTAG('b', 'x', 'y', 'v') },
205  { AV_PIX_FMT_YUYV422, MKTAG('y', 'u', 'v', '2') },
206  { AV_PIX_FMT_YUYV422, MKTAG('y', 'u', 'v', 's') },
207  { AV_PIX_FMT_YUYV422, MKTAG('D', 'V', 'O', 'O') }, /* Digital Voodoo SD 8 Bit */
208  { AV_PIX_FMT_RGB555LE,MKTAG('L', '5', '5', '5') },
209  { AV_PIX_FMT_RGB565LE,MKTAG('L', '5', '6', '5') },
210  { AV_PIX_FMT_RGB565BE,MKTAG('B', '5', '6', '5') },
211  { AV_PIX_FMT_BGR24, MKTAG('2', '4', 'B', 'G') },
212  { AV_PIX_FMT_BGR24, MKTAG('b', 'x', 'b', 'g') },
213  { AV_PIX_FMT_BGRA, MKTAG('B', 'G', 'R', 'A') },
214  { AV_PIX_FMT_RGBA, MKTAG('R', 'G', 'B', 'A') },
215  { AV_PIX_FMT_RGB24, MKTAG('b', 'x', 'r', 'g') },
216  { AV_PIX_FMT_ABGR, MKTAG('A', 'B', 'G', 'R') },
217  { AV_PIX_FMT_GRAY16BE,MKTAG('b', '1', '6', 'g') },
218  { AV_PIX_FMT_RGB48BE, MKTAG('b', '4', '8', 'r') },
219 
220  /* special */
221  { AV_PIX_FMT_RGB565LE,MKTAG( 3 , 0 , 0 , 0 ) }, /* flipped RGB565LE */
222  { AV_PIX_FMT_YUV444P, MKTAG('Y', 'V', '2', '4') }, /* YUV444P, swapped UV */
223 
224  { AV_PIX_FMT_NONE, 0 },
225 };
226 
228 {
229  return ff_raw_pix_fmt_tags;
230 }
231 
233 {
234  const PixelFormatTag *tags = ff_raw_pix_fmt_tags;
235  while (tags->pix_fmt >= 0) {
236  if (tags->pix_fmt == fmt)
237  return tags->fourcc;
238  tags++;
239  }
240  return 0;
241 }
242 
244  { AV_PIX_FMT_MONOWHITE, 1 },
245  { AV_PIX_FMT_PAL8, 2 },
246  { AV_PIX_FMT_PAL8, 4 },
247  { AV_PIX_FMT_PAL8, 8 },
248  { AV_PIX_FMT_RGB444LE, 12 },
249  { AV_PIX_FMT_RGB555LE, 15 },
250  { AV_PIX_FMT_RGB555LE, 16 },
251  { AV_PIX_FMT_BGR24, 24 },
252  { AV_PIX_FMT_BGRA, 32 },
253  { AV_PIX_FMT_NONE, 0 },
254 };
255 
257  { AV_PIX_FMT_MONOWHITE, 1 },
258  { AV_PIX_FMT_PAL8, 2 },
259  { AV_PIX_FMT_PAL8, 4 },
260  { AV_PIX_FMT_PAL8, 8 },
261  { AV_PIX_FMT_RGB555BE, 16 },
262  { AV_PIX_FMT_RGB24, 24 },
263  { AV_PIX_FMT_ARGB, 32 },
264  { AV_PIX_FMT_MONOWHITE,33 },
265  { AV_PIX_FMT_NONE, 0 },
266 };
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
Definition: pixfmt.h:83
planar YUV 4:4:4,42bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
Definition: pixfmt.h:281
planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
Definition: pixfmt.h:274
unsigned int fourcc
Definition: raw.h:35
planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
Definition: pixfmt.h:278
planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
Definition: pixfmt.h:159
8bit gray, 8bit alpha
Definition: pixfmt.h:143
packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:262
const char * fmt
Definition: avisynth_c.h:632
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:68
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:65
packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in ...
Definition: pixfmt.h:86
planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
Definition: pixfmt.h:279
bayer, GBGB..(odd line), RGRG..(even line), 8-bit samples */
Definition: pixfmt.h:294
bayer, GRGR..(odd line), BGBG..(even line), 8-bit samples */
Definition: pixfmt.h:295
planar GBR 4:4:4 24bpp
Definition: pixfmt.h:176
packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:261
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:117
bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, little-endian */
Definition: pixfmt.h:302
planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
Definition: pixfmt.h:203
enum AVPixelFormat pix_fmt
Definition: raw.h:34
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian
Definition: pixfmt.h:120
planar GBR 4:4:4 36bpp, little-endian
Definition: pixfmt.h:284
packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), big-endian, X=unused/undefined
Definition: pixfmt.h:140
packed BGR 8:8:8, 32bpp, XBGRXBGR... X=unused/undefined
Definition: pixfmt.h:266
bayer, BGBG..(odd line), GRGR..(even line), 8-bit samples */
Definition: pixfmt.h:292
planar GBR 4:4:4 36bpp, big-endian
Definition: pixfmt.h:283
planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
Definition: pixfmt.h:128
packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in ...
Definition: pixfmt.h:89
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
Definition: pixfmt.h:115
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
Definition: pixfmt.h:87
planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), little-endian ...
Definition: pixfmt.h:193
planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian)
Definition: pixfmt.h:204
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition: pixfmt.h:103
packed RGB 8:8:8, 32bpp, RGBXRGBX... X=unused/undefined
Definition: pixfmt.h:265
8 bit with AV_PIX_FMT_RGB32 palette
Definition: pixfmt.h:74
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:112
unsigned int avcodec_pix_fmt_to_codec_tag(enum AVPixelFormat fmt)
Return a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found.
Definition: raw.c:232
bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, little-endian */
Definition: pixfmt.h:300
bayer, GBGB..(odd line), RGRG..(even line), 16-bit samples, big-endian */
Definition: pixfmt.h:301
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:259
packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:139
planar YUV 4:4:4,36bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
Definition: pixfmt.h:280
const PixelFormatTag ff_raw_pix_fmt_tags[]
Definition: raw.c:31
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
Definition: pixfmt.h:114
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:96
planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)
Definition: pixfmt.h:205
planar GBR 4:4:4 48bpp, big-endian
Definition: pixfmt.h:181
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range...
Definition: pixfmt.h:102
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
Definition: pixfmt.h:76
planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
Definition: pixfmt.h:208
bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, little-endian */
Definition: pixfmt.h:296
planar GBR 4:4:4 27bpp, big-endian
Definition: pixfmt.h:177
planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
Definition: pixfmt.h:165
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
Definition: pixfmt.h:269
planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
Definition: pixfmt.h:133
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:97
planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), big-endian
Definition: pixfmt.h:196
planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
Definition: pixfmt.h:161
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
Definition: pixfmt.h:91
planar YUV 4:2:2,28bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
Definition: pixfmt.h:277
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
Definition: pixfmt.h:131
planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), little-endian
Definition: pixfmt.h:197
Libavcodec external API header.
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:94
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:149
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:95
planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian)
Definition: pixfmt.h:198
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:67
as above, but U and V bytes are swapped
Definition: pixfmt.h:92
Raw Video Codec.
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
Definition: pixfmt.h:90
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
Definition: pixfmt.h:75
planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
Definition: pixfmt.h:202
packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb
Definition: pixfmt.h:230
planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), big-endian
Definition: pixfmt.h:194
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:66
planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
Definition: pixfmt.h:272
packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as big...
Definition: pixfmt.h:214
planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
Definition: pixfmt.h:158
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:148
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian
Definition: pixfmt.h:119
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
Definition: pixfmt.h:85
planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
Definition: pixfmt.h:129
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition: pixfmt.h:268
bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, big-endian */
Definition: pixfmt.h:299
planar GBR 4:4:4 30bpp, big-endian
Definition: pixfmt.h:179
bayer, GRGR..(odd line), BGBG..(even line), 16-bit samples, big-endian */
Definition: pixfmt.h:303
planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian)
Definition: pixfmt.h:206
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Definition: pixfmt.h:64
planar GBR 4:4:4 42bpp, little-endian
Definition: pixfmt.h:286
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Definition: pixfmt.h:69
planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
Definition: pixfmt.h:207
planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
Definition: pixfmt.h:209
Y , 16bpp, big-endian.
Definition: pixfmt.h:99
planar YUV 4:2:0,21bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
Definition: pixfmt.h:273
packed BGR 8:8:8, 32bpp, BGRXBGRX... X=unused/undefined
Definition: pixfmt.h:267
planar GBR 4:4:4 42bpp, big-endian
Definition: pixfmt.h:285
planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), big-endian
Definition: pixfmt.h:192
packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:122
bayer, BGBG..(odd line), GRGR..(even line), 16-bit samples, big-endian */
Definition: pixfmt.h:297
planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
Definition: pixfmt.h:201
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined
Definition: pixfmt.h:116
bayer, RGRG..(odd line), GBGB..(even line), 16-bit samples, little-endian */
Definition: pixfmt.h:298
packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), big-endian, X=unused/undefined
Definition: pixfmt.h:142
planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
Definition: pixfmt.h:132
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:73
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:63
planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
Definition: pixfmt.h:276
Y , 8bpp.
Definition: pixfmt.h:71
common internal and external API header
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:72
planar GBR 4:4:4 27bpp, little-endian
Definition: pixfmt.h:178
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:111
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
Definition: pixfmt.h:130
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
Definition: pixfmt.h:77
bayer, RGRG..(odd line), GBGB..(even line), 8-bit samples */
Definition: pixfmt.h:293
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
Definition: pixfmt.h:88
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition: pixfmt.h:70
planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)
Definition: pixfmt.h:199
packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as lit...
Definition: pixfmt.h:213
planar YUV 4:4:4,42bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
Definition: pixfmt.h:282
const PixelFormatTag avpriv_pix_fmt_bps_avi[]
Definition: raw.c:243
Y , 16bpp, little-endian.
Definition: pixfmt.h:100
const struct PixelFormatTag * avpriv_get_raw_pix_fmt_tags(void)
Definition: raw.c:227
planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian)
Definition: pixfmt.h:200
packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), big-endian , X=unused/undefined
Definition: pixfmt.h:121
const PixelFormatTag avpriv_pix_fmt_bps_mov[]
Definition: raw.c:256
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
Definition: pixfmt.h:101
planar GBR 4:4:4 48bpp, little-endian
Definition: pixfmt.h:182
packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), little-endian, X=unused/undefined ...
Definition: pixfmt.h:141
planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), little-endian
Definition: pixfmt.h:195
#define MKTAG(a, b, c, d)
Definition: common.h:315
packed RGB 8:8:8, 32bpp, XRGBXRGB... X=unused/undefined
Definition: pixfmt.h:264
packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3
Definition: pixfmt.h:84
AVPixelFormat
Pixel format.
Definition: pixfmt.h:61
planar YUV 4:2:0,18bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
Definition: pixfmt.h:271
planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
Definition: pixfmt.h:164
planar YUV 4:2:2,24bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
Definition: pixfmt.h:275
planar GBR 4:4:4 30bpp, little-endian
Definition: pixfmt.h:180
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:260
planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
Definition: pixfmt.h:160