VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/fourcc.h

最後變更 在這個檔案是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 4.3 KB
 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/common/fourcc.h,v 1.5 2003/08/24 17:36:48 dawes Exp $ */
2
3/*
4 * Copyright (c) 2000-2003 by The XFree86 Project, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 * OTHER DEALINGS IN THE SOFTWARE.
23 *
24 * Except as contained in this notice, the name of the copyright holder(s)
25 * and author(s) shall not be used in advertising or otherwise to promote
26 * the sale, use or other dealings in this Software without prior written
27 * authorization from the copyright holder(s) and author(s).
28 */
29
30/*
31 This header file contains listings of STANDARD guids for video formats.
32 Please do not place non-registered, or incomplete entries in this file.
33 A list of some popular fourcc's are at: http://www.webartz.com/fourcc/
34 For an explanation of fourcc <-> guid mappings see RFC2361.
35*/
36
37#ifndef _XF86_FOURCC_H_
38#define _XF86_FOURCC_H_ 1
39
40#define FOURCC_YUY2 0x32595559
41#define XVIMAGE_YUY2 \
42 { \
43 FOURCC_YUY2, \
44 XvYUV, \
45 LSBFirst, \
46 {'Y','U','Y','2', \
47 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
48 16, \
49 XvPacked, \
50 1, \
51 0, 0, 0, 0, \
52 8, 8, 8, \
53 1, 2, 2, \
54 1, 1, 1, \
55 {'Y','U','Y','V', \
56 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}, \
57 XvTopToBottom \
58 }
59
60#define FOURCC_YV12 0x32315659
61#define XVIMAGE_YV12 \
62 { \
63 FOURCC_YV12, \
64 XvYUV, \
65 LSBFirst, \
66 {'Y','V','1','2', \
67 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
68 12, \
69 XvPlanar, \
70 3, \
71 0, 0, 0, 0, \
72 8, 8, 8, \
73 1, 2, 2, \
74 1, 2, 2, \
75 {'Y','V','U', \
76 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}, \
77 XvTopToBottom \
78 }
79
80#define FOURCC_I420 0x30323449
81#define XVIMAGE_I420 \
82 { \
83 FOURCC_I420, \
84 XvYUV, \
85 LSBFirst, \
86 {'I','4','2','0', \
87 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
88 12, \
89 XvPlanar, \
90 3, \
91 0, 0, 0, 0, \
92 8, 8, 8, \
93 1, 2, 2, \
94 1, 2, 2, \
95 {'Y','U','V', \
96 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}, \
97 XvTopToBottom \
98 }
99
100
101#define FOURCC_UYVY 0x59565955
102#define XVIMAGE_UYVY \
103 { \
104 FOURCC_UYVY, \
105 XvYUV, \
106 LSBFirst, \
107 {'U','Y','V','Y', \
108 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
109 16, \
110 XvPacked, \
111 1, \
112 0, 0, 0, 0, \
113 8, 8, 8, \
114 1, 2, 2, \
115 1, 1, 1, \
116 {'U','Y','V','Y', \
117 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}, \
118 XvTopToBottom \
119 }
120
121#define FOURCC_IA44 0x34344149
122#define XVIMAGE_IA44 \
123 { \
124 FOURCC_IA44, \
125 XvYUV, \
126 LSBFirst, \
127 {'I','A','4','4', \
128 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
129 8, \
130 XvPacked, \
131 1, \
132 0, 0, 0, 0, \
133 8, 8, 8, \
134 1, 1, 1, \
135 1, 1, 1, \
136 {'A','I', \
137 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}, \
138 XvTopToBottom \
139 }
140
141#define FOURCC_AI44 0x34344941
142#define XVIMAGE_AI44 \
143 { \
144 FOURCC_AI44, \
145 XvYUV, \
146 LSBFirst, \
147 {'A','I','4','4', \
148 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
149 8, \
150 XvPacked, \
151 1, \
152 0, 0, 0, 0, \
153 8, 8, 8, \
154 1, 1, 1, \
155 1, 1, 1, \
156 {'I','A', \
157 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}, \
158 XvTopToBottom \
159 }
160
161#endif /* _XF86_FOURCC_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette