1 USING: alien.c-types classes.struct cocoa cocoa.application
2 cocoa.classes core-foundation core-foundation.strings kernel ;
16 { mSubframeDivisor SInt16 }
25 CFSTRING: QTKitErrorDomain "QTKitErrorDomain"
26 CFSTRING: QTErrorCaptureInputKey "QTErrorCaptureInputKey"
27 CFSTRING: QTErrorCaptureOutputKey "QTErrorCaptureOutputKey"
28 CFSTRING: QTErrorDeviceKey "QTErrorDeviceKey"
29 CFSTRING: QTErrorExcludingDeviceKey "QTErrorExcludingDeviceKey"
30 CFSTRING: QTErrorTimeKey "QTErrorTimeKey"
31 CFSTRING: QTErrorFileSizeKey "QTErrorFileSizeKey"
32 CFSTRING: QTErrorRecordingSuccesfullyFinishedKey "QTErrorRecordingSuccesfullyFinishedKey"
34 CONSTANT: QTErrorUnknown -1
35 CONSTANT: QTErrorIncompatibleInput 1002
36 CONSTANT: QTErrorIncompatibleOutput 1003
37 CONSTANT: QTErrorInvalidInputsOrOutputs 1100
38 CONSTANT: QTErrorDeviceAlreadyUsedbyAnotherSession 1101
39 CONSTANT: QTErrorNoDataCaptured 1200
40 CONSTANT: QTErrorSessionConfigurationChanged 1201
41 CONSTANT: QTErrorDiskFull 1202
42 CONSTANT: QTErrorDeviceWasDisconnected 1203
43 CONSTANT: QTErrorMediaChanged 1204
44 CONSTANT: QTErrorMaximumDurationReached 1205
45 CONSTANT: QTErrorMaximumFileSizeReached 1206
46 CONSTANT: QTErrorMediaDiscontinuity 1207
47 CONSTANT: QTErrorMaximumNumberOfSamplesForFileFormatReached 1208
48 CONSTANT: QTErrorDeviceNotConnected 1300
49 CONSTANT: QTErrorDeviceInUseByAnotherApplication 1301
50 CONSTANT: QTErrorDeviceExcludedByAnotherDevice 1302
52 FRAMEWORK: /System/Library/Frameworks/QTKit.framework
54 IMPORT: QTCaptureAudioPreviewOutput
55 IMPORT: QTCaptureConnection
56 IMPORT: QTCaptureDecompressedAudioOutput
57 IMPORT: QTCaptureDecompressedVideoOutput
58 IMPORT: QTCaptureDevice
59 IMPORT: QTCaptureDeviceInput
60 IMPORT: QTCaptureFileOutput
61 IMPORT: QTCaptureInput
62 IMPORT: QTCaptureLayer
63 IMPORT: QTCaptureMovieFileOutput
64 IMPORT: QTCaptureOutput
65 IMPORT: QTCaptureSession
66 IMPORT: QTCaptureVideoPreviewOutput
68 IMPORT: QTCompressionOptions
69 IMPORT: QTDataReference
70 IMPORT: QTFormatDescription
75 IMPORT: QTSampleBuffer
78 : <movie> ( filename -- movie )
79 QTMovie swap <NSString> f -> movieWithFile:error: -> retain ;
81 ! XXX: comment these out to workaround build machine issue
82 ! : movie-attributes ( movie -- attributes )
83 ! -> movieAttributes plist> ;
88 ! : movie-tracks ( movie -- tracks )
89 ! -> tracks NSFastEnumeration>vector ;
90 ! : track-attributes ( track -- attributes )
91 ! -> trackAttributes plist> ;