1/* Xfree video macro definitions.
2 *
3 * Copyright (c) 2003-2005 Advanced Micro Devices, Inc.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to
7 * deal in the Software without restriction, including without limitation the
8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 * sell copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 * IN THE SOFTWARE.
22 *
23 * Neither the name of the Advanced Micro Devices, Inc. nor the names of its
24 * contributors may be used to endorse or promote products derived from this
25 * software without specific prior written permission.
26 */
27
28#ifndef AMD_FOURCC_H_
29#define AMD_FOURCC_H_
30#define FOURCC_Y2YU 0x55593259
31#define XVIMAGE_Y2YU \
32   { \
33	FOURCC_Y2YU, \
34        XvYUV, \
35	LSBFirst, \
36	{'Y','2','Y','U', \
37	  0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
38	16, \
39	XvPacked, \
40	1, \
41	0, 0, 0, 0, \
42	8, 8, 8, \
43	1, 2, 2, \
44	1, 1, 1, \
45	{'Y','V','Y','U', \
46	  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}, \
47	XvTopToBottom \
48   }
49
50#define FOURCC_YVYU 0x55595659
51#define XVIMAGE_YVYU \
52   { \
53	FOURCC_YVYU, \
54        XvYUV, \
55	LSBFirst, \
56	{'Y','V','Y','U', \
57	  0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
58	16, \
59	XvPacked, \
60	1, \
61	0, 0, 0, 0, \
62	8, 8, 8, \
63	1, 2, 2, \
64	1, 1, 1, \
65	{'Y','V','Y','U', \
66	  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}, \
67	XvTopToBottom \
68   }
69
70#define FOURCC_Y800 0x30303859
71#define XVIMAGE_Y800 \
72   { \
73	FOURCC_Y800, \
74        XvYUV, \
75	LSBFirst, \
76	{'Y','8','0','0', \
77	  0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
78	8, \
79	XvPacked, \
80	1, \
81	0, 0, 0, 0, \
82	8, 0, 0, \
83	1, 0, 0, \
84	1, 0, 0, \
85	{'Y','8','0','0', \
86	  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}, \
87	XvTopToBottom \
88   }
89
90/* Borrowed from Trident */
91
92#define FOURCC_RGB565 0x36315652
93#define XVIMAGE_RGB565 \
94   { \
95        FOURCC_RGB565, \
96        XvRGB,\
97        LSBFirst,\
98       {'R','V','1','6',\
99       0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},\
100       16,\
101       XvPacked,\
102       1,\
103       16, 0xF800, 0x07E0, 0x001F,\
104       0, 0, 0,\
105       0, 0, 0,\
106       0, 0, 0,\
107       {'R','V','B',0,\
108       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},\
109       XvTopToBottom\
110    }
111
112#endif
113