comparison dstep/quartzcore/CVImageBuffer.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.CVImageBuffer;
8
9 import dstep.applicationservices.coregraphics.CGColorSpace;
10 import dstep.applicationservices.coregraphics.CGGeometry;
11 import dstep.corefoundation.CFBase;
12 import dstep.corevideo.CVBuffer;
13 import dstep.corevideo.CVImageBuffer;
14 import dstep.objc.bridge.Bridge;
15 import dstep.objc.objc;
16
17 alias CVBufferRef CVImageBufferRef;
18
19 extern (C)
20 {
21 extern
22 {
23 const CFStringRef kCVImageBufferCGColorSpaceKey;
24 const CFStringRef kCVImageBufferCleanApertureKey;
25 const CFStringRef kCVImageBufferCleanApertureWidthKey;
26 const CFStringRef kCVImageBufferCleanApertureHeightKey;
27 const CFStringRef kCVImageBufferCleanApertureHorizontalOffsetKey;
28 const CFStringRef kCVImageBufferCleanApertureVerticalOffsetKey;
29 const CFStringRef kCVImageBufferPreferredCleanApertureKey;
30 const CFStringRef kCVImageBufferFieldCountKey;
31 const CFStringRef kCVImageBufferFieldDetailKey;
32 const CFStringRef kCVImageBufferFieldDetailTemporalTopFirst;
33 const CFStringRef kCVImageBufferFieldDetailTemporalBottomFirst;
34 const CFStringRef kCVImageBufferFieldDetailSpatialFirstLineEarly;
35 const CFStringRef kCVImageBufferFieldDetailSpatialFirstLineLate;
36 const CFStringRef kCVImageBufferPixelAspectRatioKey;
37 const CFStringRef kCVImageBufferPixelAspectRatioHorizontalSpacingKey;
38 const CFStringRef kCVImageBufferPixelAspectRatioVerticalSpacingKey;
39 const CFStringRef kCVImageBufferDisplayDimensionsKey;
40 const CFStringRef kCVImageBufferDisplayWidthKey;
41 const CFStringRef kCVImageBufferDisplayHeightKey;
42 const CFStringRef kCVImageBufferGammaLevelKey;
43 const CFStringRef kCVImageBufferYCbCrMatrixKey;
44 const CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_709_2;
45 const CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_601_4;
46 const CFStringRef kCVImageBufferYCbCrMatrix_SMPTE_240M_1995;
47 const CFStringRef kCVImageBufferColorPrimariesKey;
48 const CFStringRef kCVImageBufferColorPrimaries_ITU_R_709_2;
49 const CFStringRef kCVImageBufferColorPrimaries_EBU_3213;
50 const CFStringRef kCVImageBufferColorPrimaries_SMPTE_C;
51 const CFStringRef kCVImageBufferTransferFunctionKey;
52 const CFStringRef kCVImageBufferTransferFunction_ITU_R_709_2;
53 const CFStringRef kCVImageBufferTransferFunction_EBU_3213;
54 const CFStringRef kCVImageBufferTransferFunction_SMPTE_C;
55 const CFStringRef kCVImageBufferChromaLocationTopFieldKey;
56 const CFStringRef kCVImageBufferChromaLocationBottomFieldKey;
57 const CFStringRef kCVImageBufferChromaLocation_Left;
58 const CFStringRef kCVImageBufferChromaLocation_Center;
59 const CFStringRef kCVImageBufferChromaLocation_TopLeft;
60 const CFStringRef kCVImageBufferChromaLocation_Top;
61 const CFStringRef kCVImageBufferChromaLocation_BottomLeft;
62 const CFStringRef kCVImageBufferChromaLocation_Bottom;
63 const CFStringRef kCVImageBufferChromaLocation_DV420;
64 const CFStringRef kCVImageBufferChromaSubsamplingKey;
65 const CFStringRef kCVImageBufferChromaSubsampling_420;
66 const CFStringRef kCVImageBufferChromaSubsampling_422;
67 const CFStringRef kCVImageBufferChromaSubsampling_411;
68 }
69 }
70
71 extern (C)
72 {
73 CGSize CVImageBufferGetEncodedSize (CVImageBufferRef imageBuffer);
74 CGSize CVImageBufferGetDisplaySize (CVImageBufferRef imageBuffer);
75 CGRect CVImageBufferGetCleanRect (CVImageBufferRef imageBuffer);
76 CGColorSpaceRef CVImageBufferGetColorSpace (CVImageBufferRef imageBuffer);
77 }