1 /*****************************************************************************
2 * vout_pictures.h : picture management definitions
3 *****************************************************************************
4 * Copyright (C) 2002-2004 the VideoLAN team
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 /*****************************************************************************
25 * Fourcc definitions that we can handle internally
26 *****************************************************************************/
28 /* Packed RGB for 8bpp */
29 #define FOURCC_BI_RGB 0x00000000
30 #define FOURCC_RGB2 VLC_FOURCC('R','G','B','2')
32 /* Packed RGB for 16, 24, 32bpp */
33 #define FOURCC_BI_BITFIELDS 0x00000003
35 /* Packed RGB 15bpp, usually 0x7c00, 0x03e0, 0x001f */
36 #define FOURCC_RV15 VLC_FOURCC('R','V','1','5')
38 /* Packed RGB 16bpp, usually 0xf800, 0x07e0, 0x001f */
39 #define FOURCC_RV16 VLC_FOURCC('R','V','1','6')
41 /* Packed RGB 24bpp, usually 0x00ff0000, 0x0000ff00, 0x000000ff */
42 #define FOURCC_RV24 VLC_FOURCC('R','V','2','4')
44 /* Packed RGB 32bpp, usually 0x00ff0000, 0x0000ff00, 0x000000ff */
45 #define FOURCC_RV32 VLC_FOURCC('R','V','3','2')
47 /* Planar YUV 4:2:0, Y:U:V */
48 #define FOURCC_I420 VLC_FOURCC('I','4','2','0')
49 #define FOURCC_IYUV VLC_FOURCC('I','Y','U','V')
50 #define FOURCC_J420 VLC_FOURCC('J','4','2','0')
52 /* Planar YUV 4:2:0, Y:V:U */
53 #define FOURCC_YV12 VLC_FOURCC('Y','V','1','2')
55 /* Packed YUV 4:2:2, U:Y:V:Y, interlaced */
56 #define FOURCC_IUYV VLC_FOURCC('I','U','Y','V')
58 /* Packed YUV 4:2:2, U:Y:V:Y */
59 #define FOURCC_UYVY VLC_FOURCC('U','Y','V','Y')
60 #define FOURCC_UYNV VLC_FOURCC('U','Y','N','V')
61 #define FOURCC_Y422 VLC_FOURCC('Y','4','2','2')
63 /* Packed YUV 4:2:2, U:Y:V:Y, reverted */
64 #define FOURCC_cyuv VLC_FOURCC('c','y','u','v')
66 /* Packed YUV 4:2:2, Y:U:Y:V */
67 #define FOURCC_YUY2 VLC_FOURCC('Y','U','Y','2')
68 #define FOURCC_YUNV VLC_FOURCC('Y','U','N','V')
70 /* Packed YUV 4:2:2, Y:V:Y:U */
71 #define FOURCC_YVYU VLC_FOURCC('Y','V','Y','U')
73 /* Packed YUV 2:1:1, Y:U:Y:V */
74 #define FOURCC_Y211 VLC_FOURCC('Y','2','1','1')
76 /* Planar YUV 4:1:1, Y:U:V */
77 #define FOURCC_I411 VLC_FOURCC('I','4','1','1')
79 /* Planar YUV 4:1:0, Y:U:V */
80 #define FOURCC_I410 VLC_FOURCC('I','4','1','0')
81 #define FOURCC_YVU9 VLC_FOURCC('Y','V','U','9')
83 /* Planar Y, packed UV, from Matrox */
84 #define FOURCC_YMGA VLC_FOURCC('Y','M','G','A')
86 /* Planar 4:2:2, Y:U:V */
87 #define FOURCC_I422 VLC_FOURCC('I','4','2','2')
88 #define FOURCC_J422 VLC_FOURCC('J','4','2','2')
90 /* Planar 4:4:4, Y:U:V */
91 #define FOURCC_I444 VLC_FOURCC('I','4','4','4')
92 #define FOURCC_J444 VLC_FOURCC('J','4','4','4')
94 /* Planar 4:4:4:4 Y:U:V:A */
95 #define FOURCC_YUVA VLC_FOURCC('Y','U','V','A')
97 /* Palettized YUV with palette element Y:U:V:A */
98 #define FOURCC_YUVP VLC_FOURCC('Y','U','V','P')