New upstream version 26.1.0+dfsg1

This commit is contained in:
Sebastian Ramacher 2020-12-22 18:32:50 +01:00
parent 040dcc3fc2
commit 013818c4af
594 changed files with 19576 additions and 4478 deletions

View file

@ -1,5 +1,5 @@
/* -LICENSE-START-
** Copyright (c) 2018 Blackmagic Design
** Copyright (c) 2020 Blackmagic Design
**
** Permission is hereby granted, free of charge, to any person or organization
** obtaining a copy of the software and accompanying documentation covered by
@ -7,14 +7,14 @@
** execute, and transmit the Software, and to prepare derivative works of the
** Software, and to permit third-parties to whom the Software is furnished to
** do so, all subject to the following:
**
**
** The copyright notices in the Software and this entire statement, including
** the above license grant, this restriction and the following disclaimer,
** must be included in all copies of the Software, in whole or in part, and
** all derivative works of the Software, unless such copies or derivative
** works are solely in the form of machine-executable object code generated by
** a source language processor.
**
**
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
** FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
@ -48,7 +48,7 @@ cpp_quote("#endif")
/* Enum BMDDeckControlMode - DeckControl mode */
typedef [v1_enum] enum _BMDDeckControlMode {
typedef [v1_enum] enum _BMDDeckControlMode {
bmdDeckControlNotOpened = /* 'ntop' */ 0x6E746F70,
bmdDeckControlVTRControlMode = /* 'vtrc' */ 0x76747263,
bmdDeckControlExportMode = /* 'expm' */ 0x6578706D,
@ -57,23 +57,23 @@ typedef [v1_enum] enum _BMDDeckControlMode {
/* Enum BMDDeckControlEvent - DeckControl event */
typedef [v1_enum] enum _BMDDeckControlEvent {
typedef [v1_enum] enum _BMDDeckControlEvent {
bmdDeckControlAbortedEvent = /* 'abte' */ 0x61627465, // This event is triggered when a capture or edit-to-tape operation is aborted.
/* Export-To-Tape events */
bmdDeckControlPrepareForExportEvent = /* 'pfee' */ 0x70666565, // This event is triggered a few frames before reaching the in-point. IDeckLinkInput::StartScheduledPlayback() should be called at this point.
bmdDeckControlExportCompleteEvent = /* 'exce' */ 0x65786365, // This event is triggered a few frames after reaching the out-point. At this point, it is safe to stop playback.
bmdDeckControlPrepareForExportEvent = /* 'pfee' */ 0x70666565, // This event is triggered a few frames before reaching the in-point. IDeckLinkInput::StartScheduledPlayback should be called at this point.
bmdDeckControlExportCompleteEvent = /* 'exce' */ 0x65786365, // This event is triggered a few frames after reaching the out-point. At this point, it is safe to stop playback. Upon reception of this event the deck's control mode is set back to bmdDeckControlVTRControlMode.
/* Capture events */
bmdDeckControlPrepareForCaptureEvent = /* 'pfce' */ 0x70666365, // This event is triggered a few frames before reaching the in-point. The serial timecode attached to IDeckLinkVideoInputFrames is now valid.
bmdDeckControlCaptureCompleteEvent = /* 'ccev' */ 0x63636576 // This event is triggered a few frames after reaching the out-point.
bmdDeckControlCaptureCompleteEvent = /* 'ccev' */ 0x63636576 // This event is triggered a few frames after reaching the out-point. Upon reception of this event the deck's control mode is set back to bmdDeckControlVTRControlMode.
} BMDDeckControlEvent;
/* Enum BMDDeckControlVTRControlState - VTR Control state */
typedef [v1_enum] enum _BMDDeckControlVTRControlState {
typedef [v1_enum] enum _BMDDeckControlVTRControlState {
bmdDeckControlNotInVTRControlMode = /* 'nvcm' */ 0x6E76636D,
bmdDeckControlVTRControlPlaying = /* 'vtrp' */ 0x76747270,
bmdDeckControlVTRControlRecording = /* 'vtrr' */ 0x76747272,
@ -87,7 +87,7 @@ typedef [v1_enum] enum _BMDDeckControlVTRControlState {
/* Enum BMDDeckControlStatusFlags - Deck Control status flags */
[v1_enum] enum _BMDDeckControlStatusFlags {
[v1_enum] enum _BMDDeckControlStatusFlags {
bmdDeckControlStatusDeckConnected = 1 << 0,
bmdDeckControlStatusRemoteMode = 1 << 1,
bmdDeckControlStatusRecordInhibited = 1 << 2,
@ -96,7 +96,7 @@ typedef [v1_enum] enum _BMDDeckControlVTRControlState {
/* Enum BMDDeckControlExportModeOpsFlags - Export mode flags */
[v1_enum] enum _BMDDeckControlExportModeOpsFlags {
[v1_enum] enum _BMDDeckControlExportModeOpsFlags {
bmdDeckControlExportModeInsertVideo = 1 << 0,
bmdDeckControlExportModeInsertAudio1 = 1 << 1,
bmdDeckControlExportModeInsertAudio2 = 1 << 2,
@ -118,7 +118,7 @@ typedef [v1_enum] enum _BMDDeckControlVTRControlState {
/* Enum BMDDeckControlError - Deck Control error */
typedef [v1_enum] enum _BMDDeckControlError {
typedef [v1_enum] enum _BMDDeckControlError {
bmdDeckControlNoError = /* 'noer' */ 0x6E6F6572,
bmdDeckControlModeError = /* 'moer' */ 0x6D6F6572,
bmdDeckControlMissedInPointError = /* 'mier' */ 0x6D696572,
@ -150,10 +150,10 @@ interface IDeckLinkDeckControl;
helpstring("Deck control state change callback.")
] interface IDeckLinkDeckControlStatusCallback : IUnknown
{
HRESULT TimecodeUpdate([in] BMDTimecodeBCD currentTimecode);
HRESULT VTRControlStateChanged([in] BMDDeckControlVTRControlState newState, [in] BMDDeckControlError error);
HRESULT DeckControlEventReceived([in] BMDDeckControlEvent event, [in] BMDDeckControlError error);
HRESULT DeckControlStatusChanged([in] BMDDeckControlStatusFlags flags, [in] unsigned int mask);
HRESULT TimecodeUpdate ([in] BMDTimecodeBCD currentTimecode);
HRESULT VTRControlStateChanged ([in] BMDDeckControlVTRControlState newState, [in] BMDDeckControlError error);
HRESULT DeckControlEventReceived ([in] BMDDeckControlEvent event, [in] BMDDeckControlError error);
HRESULT DeckControlStatusChanged ([in] BMDDeckControlStatusFlags flags, [in] unsigned int mask);
};
/* Interface IDeckLinkDeckControl - Deck Control main interface */
@ -164,43 +164,42 @@ interface IDeckLinkDeckControl;
helpstring("Deck Control main interface")
] interface IDeckLinkDeckControl : IUnknown
{
HRESULT Open([in] BMDTimeScale timeScale, [in] BMDTimeValue timeValue, [in] BOOL timecodeIsDropFrame, [out] BMDDeckControlError *error);
HRESULT Close([in] BOOL standbyOn);
HRESULT GetCurrentState([out] BMDDeckControlMode *mode, [out] BMDDeckControlVTRControlState *vtrControlState, [out] BMDDeckControlStatusFlags *flags);
HRESULT SetStandby([in] BOOL standbyOn);
HRESULT SendCommand([in] unsigned char *inBuffer, [in] unsigned int inBufferSize, [out] unsigned char *outBuffer, [out] unsigned int *outDataSize, [in] unsigned int outBufferSize, [out] BMDDeckControlError *error);
HRESULT Play([out] BMDDeckControlError *error);
HRESULT Stop([out] BMDDeckControlError *error);
HRESULT TogglePlayStop([out] BMDDeckControlError *error);
HRESULT Eject([out] BMDDeckControlError *error);
HRESULT GoToTimecode([in] BMDTimecodeBCD timecode, [out] BMDDeckControlError *error);
HRESULT FastForward([in] BOOL viewTape, [out] BMDDeckControlError *error);
HRESULT Rewind([in] BOOL viewTape, [out] BMDDeckControlError *error);
HRESULT StepForward([out] BMDDeckControlError *error);
HRESULT StepBack([out] BMDDeckControlError *error);
HRESULT Jog([in] double rate, [out] BMDDeckControlError *error);
HRESULT Shuttle([in] double rate, [out] BMDDeckControlError *error);
HRESULT GetTimecodeString([out] BSTR *currentTimeCode, [out] BMDDeckControlError *error);
HRESULT GetTimecode([out] IDeckLinkTimecode **currentTimecode, [out] BMDDeckControlError *error);
HRESULT GetTimecodeBCD([out] BMDTimecodeBCD *currentTimecode, [out] BMDDeckControlError *error);
HRESULT SetPreroll([in] unsigned int prerollSeconds);
HRESULT GetPreroll([out] unsigned int *prerollSeconds);
HRESULT SetExportOffset([in] int exportOffsetFields);
HRESULT GetExportOffset([out] int *exportOffsetFields);
HRESULT GetManualExportOffset([out] int *deckManualExportOffsetFields);
HRESULT SetCaptureOffset([in] int captureOffsetFields);
HRESULT GetCaptureOffset([out] int *captureOffsetFields);
HRESULT StartExport([in] BMDTimecodeBCD inTimecode, [in] BMDTimecodeBCD outTimecode, [in] BMDDeckControlExportModeOpsFlags exportModeOps, [out] BMDDeckControlError *error);
HRESULT StartCapture([in] BOOL useVITC, [in] BMDTimecodeBCD inTimecode, [in] BMDTimecodeBCD outTimecode, [out] BMDDeckControlError *error);
HRESULT GetDeviceID([out] unsigned short *deviceId, [out] BMDDeckControlError *error);
HRESULT Abort(void);
HRESULT CrashRecordStart([out] BMDDeckControlError *error);
HRESULT CrashRecordStop([out] BMDDeckControlError *error);
HRESULT SetCallback([in] IDeckLinkDeckControlStatusCallback *callback);
HRESULT Open ([in] BMDTimeScale timeScale, [in] BMDTimeValue timeValue, [in] BOOL timecodeIsDropFrame, [out] BMDDeckControlError* error);
HRESULT Close ([in] BOOL standbyOn);
HRESULT GetCurrentState ([out] BMDDeckControlMode* mode, [out] BMDDeckControlVTRControlState* vtrControlState, [out] BMDDeckControlStatusFlags* flags);
HRESULT SetStandby ([in] BOOL standbyOn);
HRESULT SendCommand ([in] unsigned char* inBuffer, [in] unsigned int inBufferSize, [out] unsigned char* outBuffer, [out] unsigned int* outDataSize, [in] unsigned int outBufferSize, [out] BMDDeckControlError* error);
HRESULT Play ([out] BMDDeckControlError* error);
HRESULT Stop ([out] BMDDeckControlError* error);
HRESULT TogglePlayStop ([out] BMDDeckControlError* error);
HRESULT Eject ([out] BMDDeckControlError* error);
HRESULT GoToTimecode ([in] BMDTimecodeBCD timecode, [out] BMDDeckControlError* error);
HRESULT FastForward ([in] BOOL viewTape, [out] BMDDeckControlError* error);
HRESULT Rewind ([in] BOOL viewTape, [out] BMDDeckControlError* error);
HRESULT StepForward ([out] BMDDeckControlError* error);
HRESULT StepBack ([out] BMDDeckControlError* error);
HRESULT Jog ([in] double rate, [out] BMDDeckControlError* error);
HRESULT Shuttle ([in] double rate, [out] BMDDeckControlError* error);
HRESULT GetTimecodeString ([out] BSTR* currentTimeCode, [out] BMDDeckControlError* error);
HRESULT GetTimecode ([out] IDeckLinkTimecode** currentTimecode, [out] BMDDeckControlError* error);
HRESULT GetTimecodeBCD ([out] BMDTimecodeBCD* currentTimecode, [out] BMDDeckControlError* error);
HRESULT SetPreroll ([in] unsigned int prerollSeconds);
HRESULT GetPreroll ([out] unsigned int* prerollSeconds);
HRESULT SetExportOffset ([in] int exportOffsetFields);
HRESULT GetExportOffset ([out] int* exportOffsetFields);
HRESULT GetManualExportOffset ([out] int* deckManualExportOffsetFields);
HRESULT SetCaptureOffset ([in] int captureOffsetFields);
HRESULT GetCaptureOffset ([out] int* captureOffsetFields);
HRESULT StartExport ([in] BMDTimecodeBCD inTimecode, [in] BMDTimecodeBCD outTimecode, [in] BMDDeckControlExportModeOpsFlags exportModeOps, [out] BMDDeckControlError* error);
HRESULT StartCapture ([in] BOOL useVITC, [in] BMDTimecodeBCD inTimecode, [in] BMDTimecodeBCD outTimecode, [out] BMDDeckControlError* error);
HRESULT GetDeviceID ([out] unsigned short* deviceId, [out] BMDDeckControlError* error);
HRESULT Abort (void);
HRESULT CrashRecordStart ([out] BMDDeckControlError* error);
HRESULT CrashRecordStop ([out] BMDDeckControlError* error);
HRESULT SetCallback ([in] IDeckLinkDeckControlStatusCallback* callback);
};
/* Coclasses */
importlib("stdole2.tlb");