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