]> git.sesse.net Git - casparcg/blob - modules/decklink/interop/DeckLinkAPI_v7_9.idl
2.0. Refactored API.
[casparcg] / modules / decklink / interop / DeckLinkAPI_v7_9.idl
1 /* -LICENSE-START-
2 ** Copyright (c) 2010 Blackmagic Design
3 **
4 ** Permission is hereby granted, free of charge, to any person or organization
5 ** obtaining a copy of the software and accompanying documentation covered by
6 ** this license (the "Software") to use, reproduce, display, distribute,
7 ** execute, and transmit the Software, and to prepare derivative works of the
8 ** Software, and to permit third-parties to whom the Software is furnished to
9 ** do so, all subject to the following:
10 ** 
11 ** The copyright notices in the Software and this entire statement, including
12 ** the above license grant, this restriction and the following disclaimer,
13 ** must be included in all copies of the Software, in whole or in part, and
14 ** all derivative works of the Software, unless such copies or derivative
15 ** works are solely in the form of machine-executable object code generated by
16 ** a source language processor.
17 ** 
18 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 ** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 ** FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
21 ** SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
22 ** FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
23 ** ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 ** DEALINGS IN THE SOFTWARE.
25 ** -LICENSE-END-
26 */
27 /* DeckLinkAPI_v7_9.idl */
28
29 /* Interface IDeckLinkDeckControl_v7_9 - Deck Control main interface */
30
31 [
32         object,
33         uuid(A4D81043-0619-42B7-8ED6-602D29041DF7),
34         helpstring("Deck Control main interface")
35 ] interface IDeckLinkDeckControl_v7_9 : IUnknown
36 {
37         HRESULT Open([in] BMDTimeScale timeScale, [in] BMDTimeValue timeValue, [in] BOOL timecodeIsDropFrame, [out] BMDDeckControlError *error);
38         HRESULT Close([in] BOOL standbyOn);
39         HRESULT GetCurrentState([out] BMDDeckControlMode *mode, [out] BMDDeckControlVTRControlState *vtrControlState, [out] BMDDeckControlStatusFlags *flags);
40         HRESULT SetStandby([in] BOOL standbyOn);
41         HRESULT Play([out] BMDDeckControlError *error);
42         HRESULT Stop([out] BMDDeckControlError *error);
43         HRESULT TogglePlayStop([out] BMDDeckControlError *error);
44         HRESULT Eject([out] BMDDeckControlError *error);
45         HRESULT GoToTimecode([in] BMDTimecodeBCD timecode, [out] BMDDeckControlError *error);
46         HRESULT FastForward([in] BOOL viewTape, [out] BMDDeckControlError *error);
47         HRESULT Rewind([in] BOOL viewTape, [out] BMDDeckControlError *error);
48         HRESULT StepForward([out] BMDDeckControlError *error);
49         HRESULT StepBack([out] BMDDeckControlError *error);
50         HRESULT Jog([in] double rate, [out] BMDDeckControlError *error);
51         HRESULT Shuttle([in] double rate, [out] BMDDeckControlError *error);
52         HRESULT GetTimecodeString([out] BSTR *currentTimeCode, [out] BMDDeckControlError *error);
53         HRESULT GetTimecode([out] IDeckLinkTimecode **currentTimecode, [out] BMDDeckControlError *error);
54         HRESULT GetTimecodeBCD([out] BMDTimecodeBCD *currentTimecode, [out] BMDDeckControlError *error);
55         HRESULT SetPreroll([in] unsigned long prerollSeconds);
56         HRESULT GetPreroll([out] unsigned long *prerollSeconds);
57         HRESULT SetExportOffset([in] long exportOffsetFields);
58         HRESULT GetExportOffset([out] long *exportOffsetFields);
59         HRESULT GetManualExportOffset([out] long *deckManualExportOffsetFields);
60         HRESULT SetCaptureOffset([in] long captureOffsetFields);
61         HRESULT GetCaptureOffset([out] long *captureOffsetFields);
62         HRESULT StartExport([in] BMDTimecodeBCD inTimecode, [in] BMDTimecodeBCD outTimecode, [in] BMDDeckControlExportModeOpsFlags exportModeOps, [out] BMDDeckControlError *error);
63         HRESULT StartCapture([in] BOOL useVITC, [in] BMDTimecodeBCD inTimecode, [in] BMDTimecodeBCD outTimecode, [out] BMDDeckControlError *error);
64         HRESULT GetDeviceID([out] unsigned short *deviceId, [out] BMDDeckControlError *error);
65         HRESULT Abort(void);
66         HRESULT CrashRecordStart([out] BMDDeckControlError *error);
67         HRESULT CrashRecordStop([out] BMDDeckControlError *error);
68         HRESULT SetCallback([in] IDeckLinkDeckControlStatusCallback *callback);
69 };