1706f2543Smrg
2706f2543Smrg/*
3706f2543Smrg * Copyright (c) 2000-2003 by The XFree86 Project, Inc.
4706f2543Smrg *
5706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining a
6706f2543Smrg * copy of this software and associated documentation files (the "Software"),
7706f2543Smrg * to deal in the Software without restriction, including without limitation
8706f2543Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9706f2543Smrg * and/or sell copies of the Software, and to permit persons to whom the
10706f2543Smrg * Software is furnished to do so, subject to the following conditions:
11706f2543Smrg *
12706f2543Smrg * The above copyright notice and this permission notice shall be included in
13706f2543Smrg * all copies or substantial portions of the Software.
14706f2543Smrg *
15706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16706f2543Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17706f2543Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18706f2543Smrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
19706f2543Smrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20706f2543Smrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21706f2543Smrg * OTHER DEALINGS IN THE SOFTWARE.
22706f2543Smrg *
23706f2543Smrg * Except as contained in this notice, the name of the copyright holder(s)
24706f2543Smrg * and author(s) shall not be used in advertising or otherwise to promote
25706f2543Smrg * the sale, use or other dealings in this Software without prior written
26706f2543Smrg * authorization from the copyright holder(s) and author(s).
27706f2543Smrg */
28706f2543Smrg
29706f2543Smrg/*
30706f2543Smrg   This header file contains listings of STANDARD guids for video formats.
31706f2543Smrg   Please do not place non-registered, or incomplete entries in this file.
32706f2543Smrg   A list of some popular fourcc's are at: http://www.webartz.com/fourcc/
33706f2543Smrg   For an explanation of fourcc <-> guid mappings see RFC2361.
34706f2543Smrg*/
35706f2543Smrg
36706f2543Smrg#ifndef _XF86_FOURCC_H_
37706f2543Smrg#define _XF86_FOURCC_H_ 1
38706f2543Smrg
39706f2543Smrg#define FOURCC_YUY2 0x32595559
40706f2543Smrg#define XVIMAGE_YUY2 \
41706f2543Smrg   { \
42706f2543Smrg	FOURCC_YUY2, \
43706f2543Smrg        XvYUV, \
44706f2543Smrg	LSBFirst, \
45706f2543Smrg	{'Y','U','Y','2', \
46706f2543Smrg	  0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
47706f2543Smrg	16, \
48706f2543Smrg	XvPacked, \
49706f2543Smrg	1, \
50706f2543Smrg	0, 0, 0, 0, \
51706f2543Smrg	8, 8, 8, \
52706f2543Smrg	1, 2, 2, \
53706f2543Smrg	1, 1, 1, \
54706f2543Smrg	{'Y','U','Y','V', \
55706f2543Smrg	  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
56706f2543Smrg	XvTopToBottom \
57706f2543Smrg   }
58706f2543Smrg
59706f2543Smrg#define FOURCC_YV12 0x32315659
60706f2543Smrg#define XVIMAGE_YV12 \
61706f2543Smrg   { \
62706f2543Smrg	FOURCC_YV12, \
63706f2543Smrg        XvYUV, \
64706f2543Smrg	LSBFirst, \
65706f2543Smrg	{'Y','V','1','2', \
66706f2543Smrg	  0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
67706f2543Smrg	12, \
68706f2543Smrg	XvPlanar, \
69706f2543Smrg	3, \
70706f2543Smrg	0, 0, 0, 0, \
71706f2543Smrg	8, 8, 8, \
72706f2543Smrg	1, 2, 2, \
73706f2543Smrg	1, 2, 2, \
74706f2543Smrg	{'Y','V','U', \
75706f2543Smrg	  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
76706f2543Smrg	XvTopToBottom \
77706f2543Smrg   }
78706f2543Smrg
79706f2543Smrg#define FOURCC_I420 0x30323449
80706f2543Smrg#define XVIMAGE_I420 \
81706f2543Smrg   { \
82706f2543Smrg	FOURCC_I420, \
83706f2543Smrg        XvYUV, \
84706f2543Smrg	LSBFirst, \
85706f2543Smrg	{'I','4','2','0', \
86706f2543Smrg	  0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
87706f2543Smrg	12, \
88706f2543Smrg	XvPlanar, \
89706f2543Smrg	3, \
90706f2543Smrg	0, 0, 0, 0, \
91706f2543Smrg	8, 8, 8, \
92706f2543Smrg	1, 2, 2, \
93706f2543Smrg	1, 2, 2, \
94706f2543Smrg	{'Y','U','V', \
95706f2543Smrg	  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
96706f2543Smrg	XvTopToBottom \
97706f2543Smrg   }
98706f2543Smrg
99706f2543Smrg
100706f2543Smrg#define FOURCC_UYVY 0x59565955
101706f2543Smrg#define XVIMAGE_UYVY \
102706f2543Smrg   { \
103706f2543Smrg	FOURCC_UYVY, \
104706f2543Smrg        XvYUV, \
105706f2543Smrg	LSBFirst, \
106706f2543Smrg	{'U','Y','V','Y', \
107706f2543Smrg	  0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
108706f2543Smrg	16, \
109706f2543Smrg	XvPacked, \
110706f2543Smrg	1, \
111706f2543Smrg	0, 0, 0, 0, \
112706f2543Smrg	8, 8, 8, \
113706f2543Smrg	1, 2, 2, \
114706f2543Smrg	1, 1, 1, \
115706f2543Smrg	{'U','Y','V','Y', \
116706f2543Smrg	  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
117706f2543Smrg	XvTopToBottom \
118706f2543Smrg   }
119706f2543Smrg
120706f2543Smrg#define FOURCC_IA44 0x34344149
121706f2543Smrg#define XVIMAGE_IA44 \
122706f2543Smrg   { \
123706f2543Smrg        FOURCC_IA44, \
124706f2543Smrg        XvYUV, \
125706f2543Smrg        LSBFirst, \
126706f2543Smrg        {'I','A','4','4', \
127706f2543Smrg          0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
128706f2543Smrg        8, \
129706f2543Smrg        XvPacked, \
130706f2543Smrg        1, \
131706f2543Smrg        0, 0, 0, 0, \
132706f2543Smrg        8, 8, 8, \
133706f2543Smrg        1, 1, 1, \
134706f2543Smrg        1, 1, 1, \
135706f2543Smrg        {'A','I', \
136706f2543Smrg          0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
137706f2543Smrg        XvTopToBottom \
138706f2543Smrg   }
139706f2543Smrg
140706f2543Smrg#define FOURCC_AI44 0x34344941
141706f2543Smrg#define XVIMAGE_AI44 \
142706f2543Smrg   { \
143706f2543Smrg        FOURCC_AI44, \
144706f2543Smrg        XvYUV, \
145706f2543Smrg        LSBFirst, \
146706f2543Smrg        {'A','I','4','4', \
147706f2543Smrg          0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
148706f2543Smrg        8, \
149706f2543Smrg        XvPacked, \
150706f2543Smrg        1, \
151706f2543Smrg        0, 0, 0, 0, \
152706f2543Smrg        8, 8, 8, \
153706f2543Smrg        1, 1, 1, \
154706f2543Smrg        1, 1, 1, \
155706f2543Smrg        {'I','A', \
156706f2543Smrg          0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
157706f2543Smrg        XvTopToBottom \
158706f2543Smrg   }
159706f2543Smrg
160706f2543Smrg#endif /* _XF86_FOURCC_H_ */
161