Mercurial > projects > dstep
comparison dstep/qtkit/QTKitDefines.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 28, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.qtkit.QTKitDefines; | |
8 | |
9 import dstep.objc.bridge.TypeEncoding; | |
10 | |
11 // This is needed otherwise the enums will fail compiling with gdc | |
12 version (GNU) | |
13 { | |
14 private | |
15 { | |
16 const __VideoMediaType = getOSType!("vide"); | |
17 const __SoundMediaType = getOSType!("soun"); | |
18 const __TextMediaType = getOSType!("text"); | |
19 const __BaseMediaType = getOSType!("gnrc"); | |
20 const __MPEGMediaType = getOSType!("MPEG"); | |
21 const __MusicMediaType = getOSType!("musi"); | |
22 const __TimeCodeMediaType = getOSType!("tmcd"); | |
23 const __SpriteMediaType = getOSType!("sprt"); | |
24 const __FlashMediaType = getOSType!("flsh"); | |
25 const __MovieMediaType = getOSType!("moov"); | |
26 const __TweenMediaType = getOSType!("twen"); | |
27 const __ThreeDeeMediaType = getOSType!("qd3d"); | |
28 const __SkinMediaType = getOSType!("skin"); | |
29 const __HandleDataHandlerSubType = getOSType!("hndl"); | |
30 const __PointerDataHandlerSubType = getOSType!("ptr "); | |
31 const __NullDataHandlerSubType = getOSType!("null"); | |
32 const __ResourceDataHandlerSubType = getOSType!("rsrc"); | |
33 const __URLDataHandlerSubType = getOSType!("url "); | |
34 const __AliasDataHandlerSubType = getOSType!("alis"); | |
35 const __WiredActionHandlerType = getOSType!("wire"); | |
36 const __kQTQuartzComposerMediaType = getOSType!("qtz "); | |
37 const __TimeCode64MediaType = getOSType!("tc64"); | |
38 const __kQTFileTypeAIFF = getOSType!("AIFF"); | |
39 const __kQTFileTypeAIFC = getOSType!("AIFC"); | |
40 const __kQTFileTypeDVC = getOSType!("dvc!"); | |
41 const __kQTFileTypeMIDI = getOSType!("Midi"); | |
42 const __kQTFileTypePicture = getOSType!("PICT"); | |
43 const __kQTFileTypeMovie = getOSType!("MooV"); | |
44 const __kQTFileTypeText = getOSType!("TEXT"); | |
45 const __kQTFileTypeWave = getOSType!("WAVE"); | |
46 const __kQTFileTypeSystemSevenSound = getOSType!("sfil"); | |
47 const __kQTFileTypeMuLaw = getOSType!("ULAW"); | |
48 const __kQTFileTypeAVI = getOSType!("VfW "); | |
49 const __kQTFileTypeSoundDesignerII = getOSType!("Sd2f"); | |
50 const __kQTFileTypeAudioCDTrack = getOSType!("trak"); | |
51 const __kQTFileTypePICS = getOSType!("PICS"); | |
52 const __kQTFileTypeGIF = getOSType!("GIFf"); | |
53 const __kQTFileTypePNG = getOSType!("PNGf"); | |
54 const __kQTFileTypeTIFF = getOSType!("TIFF"); | |
55 const __kQTFileTypePhotoShop = getOSType!("8BPS"); | |
56 const __kQTFileTypeSGIImage = getOSType!(".SGI"); | |
57 const __kQTFileTypeBMP = getOSType!("BMPf"); | |
58 const __kQTFileTypeJPEG = getOSType!("JPEG"); | |
59 const __kQTFileTypeJFIF = getOSType!("JPEG"); | |
60 const __kQTFileTypeMacPaint = getOSType!("PNTG"); | |
61 const __kQTFileTypeTargaImage = getOSType!("TPIC"); | |
62 const __kQTFileTypeQuickDrawGXPicture = getOSType!("qdgx"); | |
63 const __kQTFileTypeQuickTimeImage = getOSType!("qtif"); | |
64 const __kQTFileType3DMF = getOSType!("3DMF"); | |
65 const __kQTFileTypeFLC = getOSType!("FLC "); | |
66 const __kQTFileTypeFlash = getOSType!("SWFL"); | |
67 const __kQTFileTypeFlashPix = getOSType!("FPix"); | |
68 const __kQTFileTypeMP4 = getOSType!("mpg4"); | |
69 const __kQTFileTypePDF = getOSType!("PDF "); | |
70 const __kQTFileType3GPP = getOSType!("3gpp"); | |
71 const __kQTFileTypeAMR = getOSType!("amr "); | |
72 const __kQTFileTypeSDV = getOSType!("sdv "); | |
73 const __kQTFileType3GP2 = getOSType!("3gp2"); | |
74 const __kQTFileTypeAMC = getOSType!("amc "); | |
75 const __kQTFileTypeJPEG2000 = getOSType!("jp2 "); | |
76 const __kRawCodecType = getOSType!("raw "); | |
77 const __kCinepakCodecType = getOSType!("cvid"); | |
78 const __kGraphicsCodecType = getOSType!("smc "); | |
79 const __kAnimationCodecType = getOSType!("rle "); | |
80 const __kVideoCodecType = getOSType!("rpza"); | |
81 const __kComponentVideoCodecType = getOSType!("yuv2"); | |
82 const __kJPEGCodecType = getOSType!("jpeg"); | |
83 const __kMotionJPEGACodecType = getOSType!("mjpa"); | |
84 const __kMotionJPEGBCodecType = getOSType!("mjpb"); | |
85 const __kSGICodecType = getOSType!(".SGI"); | |
86 const __kPlanarRGBCodecType = getOSType!("8BPS"); | |
87 const __kMacPaintCodecType = getOSType!("PNTG"); | |
88 const __kGIFCodecType = getOSType!("gif "); | |
89 const __kPhotoCDCodecType = getOSType!("kpcd"); | |
90 const __kQuickDrawGXCodecType = getOSType!("qdgx"); | |
91 const __kAVRJPEGCodecType = getOSType!("avr "); | |
92 const __kOpenDMLJPEGCodecType = getOSType!("dmb1"); | |
93 const __kBMPCodecType = getOSType!("WRLE"); | |
94 const __kWindowsRawCodecType = getOSType!("WRAW"); | |
95 const __kVectorCodecType = getOSType!("path"); | |
96 const __kQuickDrawCodecType = getOSType!("qdrw"); | |
97 const __kWaterRippleCodecType = getOSType!("ripl"); | |
98 const __kFireCodecType = getOSType!("fire"); | |
99 const __kCloudCodecType = getOSType!("clou"); | |
100 const __kH261CodecType = getOSType!("h261"); | |
101 const __kH263CodecType = getOSType!("h263"); | |
102 const __kDVCNTSCCodecType = getOSType!("dvc "); | |
103 const __kDVCPALCodecType = getOSType!("dvcp"); | |
104 const __kDVCProPALCodecType = getOSType!("dvpp"); | |
105 const __kDVCPro50NTSCCodecType = getOSType!("dv5n"); | |
106 const __kDVCPro50PALCodecType = getOSType!("dv5p"); | |
107 const __kDVCPro100NTSCCodecType = getOSType!("dv1n"); | |
108 const __kDVCPro100PALCodecType = getOSType!("dv1p"); | |
109 const __kDVCPROHD720pCodecType = getOSType!("dvhp"); | |
110 const __kDVCPROHD1080i60CodecType = getOSType!("dvh6"); | |
111 const __kDVCPROHD1080i50CodecType = getOSType!("dvh5"); | |
112 const __kBaseCodecType = getOSType!("base"); | |
113 const __kFLCCodecType = getOSType!("flic"); | |
114 const __kTargaCodecType = getOSType!("tga "); | |
115 const __kPNGCodecType = getOSType!("png "); | |
116 const __kTIFFCodecType = getOSType!("tiff"); | |
117 const __kComponentVideoSigned = getOSType!("yuvu"); | |
118 const __kComponentVideoUnsigned = getOSType!("yuvs"); | |
119 const __kCMYKCodecType = getOSType!("cmyk"); | |
120 const __kMicrosoftVideo1CodecType = getOSType!("msvc"); | |
121 const __kSorensonCodecType = getOSType!("SVQ1"); | |
122 const __kSorenson3CodecType = getOSType!("SVQ3"); | |
123 const __kIndeo4CodecType = getOSType!("IV41"); | |
124 const __kMPEG4VisualCodecType = getOSType!("mp4v"); | |
125 const __k64ARGBCodecType = getOSType!("b64a"); | |
126 const __k48RGBCodecType = getOSType!("b48r"); | |
127 const __k32AlphaGrayCodecType = getOSType!("b32a"); | |
128 const __k16GrayCodecType = getOSType!("b16g"); | |
129 const __kMpegYUV420CodecType = getOSType!("myuv"); | |
130 const __kYUV420CodecType = getOSType!("y420"); | |
131 const __kSorensonYUV9CodecType = getOSType!("syv9"); | |
132 const __k422YpCbCr8CodecType = getOSType!("2vuy"); | |
133 const __k444YpCbCr8CodecType = getOSType!("v308"); | |
134 const __k4444YpCbCrA8CodecType = getOSType!("v408"); | |
135 const __k422YpCbCr16CodecType = getOSType!("v216"); | |
136 const __k422YpCbCr10CodecType = getOSType!("v210"); | |
137 const __k444YpCbCr10CodecType = getOSType!("v410"); | |
138 const __k4444YpCbCrA8RCodecType = getOSType!("r408"); | |
139 const __kJPEG2000CodecType = getOSType!("mjp2"); | |
140 const __kPixletCodecType = getOSType!("pxlt"); | |
141 const __kH264CodecType = getOSType!("avc1"); | |
142 } | |
143 } | |
144 | |
145 enum | |
146 { | |
147 VideoMediaType = getOSType!("vide"), | |
148 SoundMediaType = getOSType!("soun"), | |
149 TextMediaType = getOSType!("text"), | |
150 BaseMediaType = getOSType!("gnrc"), | |
151 MPEGMediaType = getOSType!("MPEG"), | |
152 MusicMediaType = getOSType!("musi"), | |
153 TimeCodeMediaType = getOSType!("tmcd"), | |
154 SpriteMediaType = getOSType!("sprt"), | |
155 FlashMediaType = getOSType!("flsh"), | |
156 MovieMediaType = getOSType!("moov"), | |
157 TweenMediaType = getOSType!("twen"), | |
158 ThreeDeeMediaType = getOSType!("qd3d"), | |
159 SkinMediaType = getOSType!("skin"), | |
160 HandleDataHandlerSubType = getOSType!("hndl"), | |
161 PointerDataHandlerSubType = getOSType!("ptr "), | |
162 NullDataHandlerSubType = getOSType!("null"), | |
163 ResourceDataHandlerSubType = getOSType!("rsrc"), | |
164 URLDataHandlerSubType = getOSType!("url "), | |
165 AliasDataHandlerSubType = getOSType!("alis"), | |
166 WiredActionHandlerType = getOSType!("wire"), | |
167 kQTQuartzComposerMediaType = getOSType!("qtz "), | |
168 TimeCode64MediaType = getOSType!("tc64") | |
169 } | |
170 | |
171 enum | |
172 { | |
173 kQTFileTypeAIFF = getOSType!("AIFF"), | |
174 kQTFileTypeAIFC = getOSType!("AIFC"), | |
175 kQTFileTypeDVC = getOSType!("dvc!"), | |
176 kQTFileTypeMIDI = getOSType!("Midi"), | |
177 kQTFileTypePicture = getOSType!("PICT"), | |
178 kQTFileTypeMovie = getOSType!("MooV"), | |
179 kQTFileTypeText = getOSType!("TEXT"), | |
180 kQTFileTypeWave = getOSType!("WAVE"), | |
181 kQTFileTypeSystemSevenSound = getOSType!("sfil"), | |
182 kQTFileTypeMuLaw = getOSType!("ULAW"), | |
183 kQTFileTypeAVI = getOSType!("VfW "), | |
184 kQTFileTypeSoundDesignerII = getOSType!("Sd2f"), | |
185 kQTFileTypeAudioCDTrack = getOSType!("trak"), | |
186 kQTFileTypePICS = getOSType!("PICS"), | |
187 kQTFileTypeGIF = getOSType!("GIFf"), | |
188 kQTFileTypePNG = getOSType!("PNGf"), | |
189 kQTFileTypeTIFF = getOSType!("TIFF"), | |
190 kQTFileTypePhotoShop = getOSType!("8BPS"), | |
191 kQTFileTypeSGIImage = getOSType!(".SGI"), | |
192 kQTFileTypeBMP = getOSType!("BMPf"), | |
193 kQTFileTypeJPEG = getOSType!("JPEG"), | |
194 kQTFileTypeJFIF = getOSType!("JPEG"), | |
195 kQTFileTypeMacPaint = getOSType!("PNTG"), | |
196 kQTFileTypeTargaImage = getOSType!("TPIC"), | |
197 kQTFileTypeQuickDrawGXPicture = getOSType!("qdgx"), | |
198 kQTFileTypeQuickTimeImage = getOSType!("qtif"), | |
199 kQTFileType3DMF = getOSType!("3DMF"), | |
200 kQTFileTypeFLC = getOSType!("FLC "), | |
201 kQTFileTypeFlash = getOSType!("SWFL"), | |
202 kQTFileTypeFlashPix = getOSType!("FPix"), | |
203 kQTFileTypeMP4 = getOSType!("mpg4"), | |
204 kQTFileTypePDF = getOSType!("PDF "), | |
205 kQTFileType3GPP = getOSType!("3gpp"), | |
206 kQTFileTypeAMR = getOSType!("amr "), | |
207 kQTFileTypeSDV = getOSType!("sdv "), | |
208 kQTFileType3GP2 = getOSType!("3gp2"), | |
209 kQTFileTypeAMC = getOSType!("amc "), | |
210 kQTFileTypeJPEG2000 = getOSType!("jp2 ") | |
211 } | |
212 | |
213 enum | |
214 { | |
215 codecLosslessQuality = 0x00000400, | |
216 codecMaxQuality = 0x000003FF, | |
217 codecMinQuality = 0x00000000, | |
218 codecLowQuality = 0x00000100, | |
219 codecNormalQuality = 0x00000200, | |
220 codecHighQuality = 0x00000300 | |
221 } | |
222 | |
223 enum | |
224 { | |
225 kRawCodecType = getOSType!("raw "), | |
226 kCinepakCodecType = getOSType!("cvid"), | |
227 kGraphicsCodecType = getOSType!("smc "), | |
228 kAnimationCodecType = getOSType!("rle "), | |
229 kVideoCodecType = getOSType!("rpza"), | |
230 kComponentVideoCodecType = getOSType!("yuv2"), | |
231 kJPEGCodecType = getOSType!("jpeg"), | |
232 kMotionJPEGACodecType = getOSType!("mjpa"), | |
233 kMotionJPEGBCodecType = getOSType!("mjpb"), | |
234 kSGICodecType = getOSType!(".SGI"), | |
235 kPlanarRGBCodecType = getOSType!("8BPS"), | |
236 kMacPaintCodecType = getOSType!("PNTG"), | |
237 kGIFCodecType = getOSType!("gif "), | |
238 kPhotoCDCodecType = getOSType!("kpcd"), | |
239 kQuickDrawGXCodecType = getOSType!("qdgx"), | |
240 kAVRJPEGCodecType = getOSType!("avr "), | |
241 kOpenDMLJPEGCodecType = getOSType!("dmb1"), | |
242 kBMPCodecType = getOSType!("WRLE"), | |
243 kWindowsRawCodecType = getOSType!("WRAW"), | |
244 kVectorCodecType = getOSType!("path"), | |
245 kQuickDrawCodecType = getOSType!("qdrw"), | |
246 kWaterRippleCodecType = getOSType!("ripl"), | |
247 kFireCodecType = getOSType!("fire"), | |
248 kCloudCodecType = getOSType!("clou"), | |
249 kH261CodecType = getOSType!("h261"), | |
250 kH263CodecType = getOSType!("h263"), | |
251 kDVCNTSCCodecType = getOSType!("dvc "), | |
252 kDVCPALCodecType = getOSType!("dvcp"), | |
253 kDVCProPALCodecType = getOSType!("dvpp"), | |
254 kDVCPro50NTSCCodecType = getOSType!("dv5n"), | |
255 kDVCPro50PALCodecType = getOSType!("dv5p"), | |
256 kDVCPro100NTSCCodecType = getOSType!("dv1n"), | |
257 kDVCPro100PALCodecType = getOSType!("dv1p"), | |
258 kDVCPROHD720pCodecType = getOSType!("dvhp"), | |
259 kDVCPROHD1080i60CodecType = getOSType!("dvh6"), | |
260 kDVCPROHD1080i50CodecType = getOSType!("dvh5"), | |
261 kBaseCodecType = getOSType!("base"), | |
262 kFLCCodecType = getOSType!("flic"), | |
263 kTargaCodecType = getOSType!("tga "), | |
264 kPNGCodecType = getOSType!("png "), | |
265 kTIFFCodecType = getOSType!("tiff"), | |
266 kComponentVideoSigned = getOSType!("yuvu"), | |
267 kComponentVideoUnsigned = getOSType!("yuvs"), | |
268 kCMYKCodecType = getOSType!("cmyk"), | |
269 kMicrosoftVideo1CodecType = getOSType!("msvc"), | |
270 kSorensonCodecType = getOSType!("SVQ1"), | |
271 kSorenson3CodecType = getOSType!("SVQ3"), | |
272 kIndeo4CodecType = getOSType!("IV41"), | |
273 kMPEG4VisualCodecType = getOSType!("mp4v"), | |
274 k64ARGBCodecType = getOSType!("b64a"), | |
275 k48RGBCodecType = getOSType!("b48r"), | |
276 k32AlphaGrayCodecType = getOSType!("b32a"), | |
277 k16GrayCodecType = getOSType!("b16g"), | |
278 kMpegYUV420CodecType = getOSType!("myuv"), | |
279 kYUV420CodecType = getOSType!("y420"), | |
280 kSorensonYUV9CodecType = getOSType!("syv9"), | |
281 k422YpCbCr8CodecType = getOSType!("2vuy"), | |
282 k444YpCbCr8CodecType = getOSType!("v308"), | |
283 k4444YpCbCrA8CodecType = getOSType!("v408"), | |
284 k422YpCbCr16CodecType = getOSType!("v216"), | |
285 k422YpCbCr10CodecType = getOSType!("v210"), | |
286 k444YpCbCr10CodecType = getOSType!("v410"), | |
287 k4444YpCbCrA8RCodecType = getOSType!("r408"), | |
288 kJPEG2000CodecType = getOSType!("mjp2"), | |
289 kPixletCodecType = getOSType!("pxlt"), | |
290 kH264CodecType = getOSType!("avc1") | |
291 } | |
292 | |
293 enum | |
294 { | |
295 graphicsModeStraightAlpha = 256, | |
296 graphicsModePreWhiteAlpha = 257, | |
297 graphicsModePreBlackAlpha = 258, | |
298 graphicsModeComposition = 259, | |
299 graphicsModeStraightAlphaBlend = 260, | |
300 graphicsModePreMulColorAlpha = 261, | |
301 graphicsModePerComponentAlpha = 272 | |
302 } | |
303 |