Mercurial > projects > dstep
comparison dstep/quartzcore/CVPixelFormatDescription.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 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.quartzcore.CVPixelFormatDescription; | |
8 | |
9 import dstep.corefoundation.CFArray; | |
10 import dstep.corefoundation.CFBase; | |
11 import dstep.corefoundation.CFDictionary; | |
12 import dstep.corevideo.CVPixelBuffer; | |
13 import dstep.corevideo.CVPixelFormatDescription; | |
14 import dstep.objc.bridge.Bridge; | |
15 import dstep.objc.objc; | |
16 | |
17 extern (C) | |
18 { | |
19 alias ubyte function (CVPixelBufferRef, void*) CVFillExtendedPixelsCallBack; | |
20 } | |
21 | |
22 extern (C) | |
23 { | |
24 extern | |
25 { | |
26 const CFStringRef kCVPixelFormatName; | |
27 const CFStringRef kCVPixelFormatConstant; | |
28 const CFStringRef kCVPixelFormatCodecType; | |
29 const CFStringRef kCVPixelFormatFourCC; | |
30 const CFStringRef kCVPixelFormatPlanes; | |
31 const CFStringRef kCVPixelFormatBlockWidth; | |
32 const CFStringRef kCVPixelFormatBlockHeight; | |
33 const CFStringRef kCVPixelFormatBitsPerBlock; | |
34 const CFStringRef kCVPixelFormatBlockHorizontalAlignment; | |
35 const CFStringRef kCVPixelFormatBlockVerticalAlignment; | |
36 const CFStringRef kCVPixelFormatHorizontalSubsampling; | |
37 const CFStringRef kCVPixelFormatVerticalSubsampling; | |
38 const CFStringRef kCVPixelFormatOpenGLFormat; | |
39 const CFStringRef kCVPixelFormatOpenGLType; | |
40 const CFStringRef kCVPixelFormatOpenGLInternalFormat; | |
41 const CFStringRef kCVPixelFormatCGBitmapInfo; | |
42 const CFStringRef kCVPixelFormatQDCompatibility; | |
43 const CFStringRef kCVPixelFormatCGBitmapContextCompatibility; | |
44 const CFStringRef kCVPixelFormatCGImageCompatibility; | |
45 const CFStringRef kCVPixelFormatOpenGLCompatibility; | |
46 const CFStringRef kCVPixelFormatFillExtendedPixelsCallback; | |
47 } | |
48 } | |
49 | |
50 struct CVFillExtendedPixelsCallBackData | |
51 { | |
52 int version_; | |
53 CVFillExtendedPixelsCallBack fillCallBack; | |
54 void* refCon; | |
55 } | |
56 | |
57 extern (C) | |
58 { | |
59 CFDictionaryRef CVPixelFormatDescriptionCreateWithPixelFormatType (CFAllocatorRef allocator, uint pixelFormat); | |
60 CFArrayRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes (CFAllocatorRef allocator); | |
61 void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType (CFDictionaryRef description, uint pixelFormat); | |
62 } |