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