comparison dstep/qtkit/QTCaptureDecompressedVideoOutput.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 b9de51448c6b
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.QTCaptureDecompressedVideoOutput;
8
9 import dstep.foundation.Foundation;
10 import dstep.objc.bridge.Bridge;
11 import dstep.objc.objc;
12 import dstep.qtkit.QTCaptureConnection;
13 import dstep.qtkit.QTCaptureOutput;
14 import dstep.qtkit.QTKitDefines;
15 import dstep.qtkit.QTSampleBuffer;
16 import dstep.quartzcore.QuartzCore;
17
18 const TQTCaptureDecompressedVideoOutputDelegate = `
19
20 void captureOutput (QTCaptureOutput captureOutput, CVImageBufferRef videoFrame, QTSampleBuffer sampleBuffer, QTCaptureConnection connection)
21 {
22 return invokeObjcSelf!(void, "captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection:", QTCaptureOutput, CVImageBufferRef, QTSampleBuffer, QTCaptureConnection)(captureOutput, videoFrame, sampleBuffer, connection);
23 }
24
25 //mixin ObjcBindMethod!(captureOutput, "captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection:");
26
27 `;
28
29 class QTCaptureDecompressedVideoOutput : QTCaptureOutput
30 {
31 mixin (ObjcWrap);
32
33 NSDictionary pixelBufferAttributes ()
34 {
35 return invokeObjcSelf!(NSDictionary, "pixelBufferAttributes");
36 }
37
38 void setPixelBufferAttributes (NSDictionary pixelBufferAttributes)
39 {
40 return invokeObjcSelf!(void, "setPixelBufferAttributes:", NSDictionary)(pixelBufferAttributes);
41 }
42
43 Object delegate_ ()
44 {
45 return invokeObjcSelf!(Object, "delegate");
46 }
47
48 void setDelegate (Object delegate_)
49 {
50 return invokeObjcSelf!(void, "setDelegate:", Object)(delegate_);
51 }
52 }
53