comparison dstep/qtkit/QTCaptureVideoPreviewOutput.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.QTCaptureVideoPreviewOutput;
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
17 const TQTCaptureVideoPreviewOutputDelegate = `
18
19 void captureOutput (QTCaptureOutput captureOutput, CVImageBufferRef videoFrame, QTSampleBuffer sampleBuffer, QTCaptureConnection connection)
20 {
21 return invokeObjcSelf!(void, "captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection:", QTCaptureOutput, CVImageBufferRef, QTSampleBuffer, QTCaptureConnection)(captureOutput, videoFrame, sampleBuffer, connection);
22 }
23
24 //mixin ObjcBindMethod!(captureOutput, "captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection:");
25
26 `;
27
28 class QTCaptureVideoPreviewOutput : QTCaptureOutput
29 {
30 mixin (ObjcWrap);
31
32 NSDictionary pixelBufferAttributes ()
33 {
34 return invokeObjcSelf!(NSDictionary, "pixelBufferAttributes");
35 }
36
37 void setPixelBufferAttributes (NSDictionary pixelBufferAttributes)
38 {
39 return invokeObjcSelf!(void, "setPixelBufferAttributes:", NSDictionary)(pixelBufferAttributes);
40 }
41
42 Object delegate_ ()
43 {
44 return invokeObjcSelf!(Object, "delegate");
45 }
46
47 void setDelegate (Object delegate_)
48 {
49 return invokeObjcSelf!(void, "setDelegate:", Object)(delegate_);
50 }
51 }
52