diff options
author | mcasas <mcasas@chromium.org> | 2015-03-31 10:11:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-31 17:12:02 +0000 |
commit | e5ddc82eaa6717502f9595c571362fe8b96b3d3f (patch) | |
tree | 58b5a0111b8fafcd1a659acb6d0101e8aaf528a0 | |
parent | 4ce5074350c307fefeeccd278dc6646be4713ad9 (diff) | |
download | chromium_src-e5ddc82eaa6717502f9595c571362fe8b96b3d3f.zip chromium_src-e5ddc82eaa6717502f9595c571362fe8b96b3d3f.tar.gz chromium_src-e5ddc82eaa6717502f9595c571362fe8b96b3d3f.tar.bz2 |
Mac third party Blackmagic Decklink SDK update v10.1.4 -> v10.3.1
This is used for Video Capture using BlackMagic cards.
BUG=471655
Review URL: https://codereview.chromium.org/1048843002
Cr-Commit-Position: refs/heads/master@{#323062}
11 files changed, 191 insertions, 66 deletions
diff --git a/third_party/decklink/README.chromium b/third_party/decklink/README.chromium index 0bc3b46..3a0b180 100644 --- a/third_party/decklink/README.chromium +++ b/third_party/decklink/README.chromium @@ -1,6 +1,6 @@ Name: Blackmagic DeckLink SDK - Mac -URL: http://software.blackmagicdesign.com/SDK/Blackmagic_DeckLink_SDK_10.1.4.zip -Version: 10.1.4 +URL: http://software.blackmagicdesign.com/SDK/Blackmagic_DeckLink_SDK_10.3.1.zip +Version: 10.3.1 License: BSL (v 1.0) License Android Compatible: yes License File: LICENSE @@ -13,7 +13,7 @@ Design DeckLink product line. The SDK provides both low-level control of hardware and high-level interfaces to allow developers to easily perform common tasks."" The SHA-512 sum, for security reasons, as generated by shasum: -705ae9a1bde1c989ae79966f4b09edadc72e3ef5b7362fb434775c5e2b25032783430d734e7427be684b2b71274738f26f6e1407ab58d77f16b083b7af65bab3 +6e64a43b03dd6832dce0439d9754b0acd47f409ef85b332a5b214197acfea74e5bfc71084d2f24dd67dd747fc40d167325d79334772019b9567d0c31a61b065d Local Modifications: - The original library contains code for Linux, Windows and Mac. Here only the diff --git a/third_party/decklink/mac/include/DeckLinkAPI.h b/third_party/decklink/mac/include/DeckLinkAPI.h index 354e1c5..8c334c0 100644 --- a/third_party/decklink/mac/include/DeckLinkAPI.h +++ b/third_party/decklink/mac/include/DeckLinkAPI.h @@ -129,7 +129,8 @@ enum _BMDVideoInputFormatChangedEvents { typedef uint32_t BMDDetectedVideoInputFormatFlags; enum _BMDDetectedVideoInputFormatFlags { bmdDetectedVideoInputYCbCr422 = 1 << 0, - bmdDetectedVideoInputRGB444 = 1 << 1 + bmdDetectedVideoInputRGB444 = 1 << 1, + bmdDetectedVideoInputDualStream3D = 1 << 2 }; /* Enum BMDDeckLinkCapturePassthroughMode - Enumerates whether the video output is electrically connected to the video input or if the clean switching mode is enabled */ @@ -196,7 +197,7 @@ enum _BMDDisplayModeSupport { typedef uint32_t BMDTimecodeFormat; enum _BMDTimecodeFormat { bmdTimecodeRP188VITC1 = 'rpv1', // RP188 timecode where DBB1 equals VITC1 (line 9) - bmdTimecodeRP188VITC2 = 'rp12', // RP188 timecode where DBB1 equals VITC2 (line 571) + bmdTimecodeRP188VITC2 = 'rp12', // RP188 timecode where DBB1 equals VITC2 (line 9 for progressive or line 571 for interlaced/PsF) bmdTimecodeRP188LTC = 'rplt', // RP188 timecode where DBB1 equals LTC (line 10) bmdTimecodeRP188Any = 'rp18', // For capture: return the first valid timecode in {VITC1, LTC ,VITC2} - For playback: set the timecode as VITC1 bmdTimecodeVITC = 'vitc', @@ -212,17 +213,6 @@ enum _BMDAnalogVideoFlags { bmdAnalogVideoFlagComponentBetacamLevels = 1 << 1 }; -/* Enum BMDAudioConnection - Audio connection types */ - -typedef uint32_t BMDAudioConnection; -enum _BMDAudioConnection { - bmdAudioConnectionEmbedded = 'embd', - bmdAudioConnectionAESEBU = 'aes ', - bmdAudioConnectionAnalog = 'anlg', - bmdAudioConnectionAnalogXLR = 'axlr', - bmdAudioConnectionAnalogRCA = 'arca' -}; - /* Enum BMDAudioOutputAnalogAESSwitch - Audio output Analog/AESEBU switch */ typedef uint32_t BMDAudioOutputAnalogAESSwitch; @@ -310,12 +300,15 @@ enum _BMDDeckLinkAttributeID { /* Integers */ BMDDeckLinkMaximumAudioChannels = 'mach', + BMDDeckLinkMaximumAnalogAudioChannels = 'aach', BMDDeckLinkNumberOfSubDevices = 'nsbd', BMDDeckLinkSubDeviceIndex = 'subi', BMDDeckLinkPersistentID = 'peid', BMDDeckLinkTopologicalID = 'toid', BMDDeckLinkVideoOutputConnections = 'vocn', BMDDeckLinkVideoInputConnections = 'vicn', + BMDDeckLinkAudioOutputConnections = 'aocn', + BMDDeckLinkAudioInputConnections = 'aicn', BMDDeckLinkDeviceBusyState = 'dbst', BMDDeckLinkVideoIOSupport = 'vios', // Returns a BMDVideoIOSupport bit field @@ -411,7 +404,7 @@ public: virtual HRESULT ScheduledPlaybackHasStopped (void) = 0; protected: - virtual ~IDeckLinkVideoOutputCallback () {}; // call Release method to drop reference count + virtual ~IDeckLinkVideoOutputCallback () {} // call Release method to drop reference count }; /* Interface IDeckLinkInputCallback - Frame arrival callback. */ @@ -423,7 +416,7 @@ public: virtual HRESULT VideoInputFrameArrived (/* in */ IDeckLinkVideoInputFrame* videoFrame, /* in */ IDeckLinkAudioInputPacket* audioPacket) = 0; protected: - virtual ~IDeckLinkInputCallback () {}; // call Release method to drop reference count + virtual ~IDeckLinkInputCallback () {} // call Release method to drop reference count }; /* Interface IDeckLinkMemoryAllocator - Memory allocator for video frames. */ @@ -465,7 +458,7 @@ public: virtual HRESULT GetString (/* in */ BMDDeckLinkAPIInformationID cfgID, /* out */ CFStringRef *value) = 0; protected: - virtual ~IDeckLinkAPIInformation () {}; // call Release method to drop reference count + virtual ~IDeckLinkAPIInformation () {} // call Release method to drop reference count }; /* Interface IDeckLinkOutput - Created by QueryInterface from IDeckLink. */ @@ -522,7 +515,7 @@ public: virtual HRESULT GetFrameCompletionReferenceTimestamp (/* in */ IDeckLinkVideoFrame *theFrame, /* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *frameCompletionTimestamp) = 0; protected: - virtual ~IDeckLinkOutput () {}; // call Release method to drop reference count + virtual ~IDeckLinkOutput () {} // call Release method to drop reference count }; /* Interface IDeckLinkInput - Created by QueryInterface from IDeckLink. */ @@ -561,7 +554,7 @@ public: virtual HRESULT GetHardwareReferenceClock (/* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *hardwareTime, /* out */ BMDTimeValue *timeInFrame, /* out */ BMDTimeValue *ticksPerFrame) = 0; protected: - virtual ~IDeckLinkInput () {}; // call Release method to drop reference count + virtual ~IDeckLinkInput () {} // call Release method to drop reference count }; /* Interface IDeckLinkVideoFrame - Interface to encapsulate a video frame; can be caller-implemented. */ @@ -580,7 +573,7 @@ public: virtual HRESULT GetAncillaryData (/* out */ IDeckLinkVideoFrameAncillary **ancillary) = 0; protected: - virtual ~IDeckLinkVideoFrame () {}; // call Release method to drop reference count + virtual ~IDeckLinkVideoFrame () {} // call Release method to drop reference count }; /* Interface IDeckLinkMutableVideoFrame - Created by IDeckLinkOutput::CreateVideoFrame. */ @@ -596,7 +589,7 @@ public: virtual HRESULT SetTimecodeUserBits (/* in */ BMDTimecodeFormat format, /* in */ BMDTimecodeUserBits userBits) = 0; protected: - virtual ~IDeckLinkMutableVideoFrame () {}; // call Release method to drop reference count + virtual ~IDeckLinkMutableVideoFrame () {} // call Release method to drop reference count }; /* Interface IDeckLinkVideoFrame3DExtensions - Optional interface implemented on IDeckLinkVideoFrame to support 3D frames */ @@ -608,7 +601,7 @@ public: virtual HRESULT GetFrameForRightEye (/* out */ IDeckLinkVideoFrame* *rightEyeFrame) = 0; protected: - virtual ~IDeckLinkVideoFrame3DExtensions () {}; // call Release method to drop reference count + virtual ~IDeckLinkVideoFrame3DExtensions () {} // call Release method to drop reference count }; /* Interface IDeckLinkVideoInputFrame - Provided by the IDeckLinkVideoInput frame arrival callback. */ @@ -620,7 +613,7 @@ public: virtual HRESULT GetHardwareReferenceTimestamp (/* in */ BMDTimeScale timeScale, /* out */ BMDTimeValue *frameTime, /* out */ BMDTimeValue *frameDuration) = 0; protected: - virtual ~IDeckLinkVideoInputFrame () {}; // call Release method to drop reference count + virtual ~IDeckLinkVideoInputFrame () {} // call Release method to drop reference count }; /* Interface IDeckLinkVideoFrameAncillary - Obtained through QueryInterface() on an IDeckLinkVideoFrame object. */ @@ -634,7 +627,7 @@ public: virtual BMDDisplayMode GetDisplayMode (void) = 0; protected: - virtual ~IDeckLinkVideoFrameAncillary () {}; // call Release method to drop reference count + virtual ~IDeckLinkVideoFrameAncillary () {} // call Release method to drop reference count }; /* Interface IDeckLinkAudioInputPacket - Provided by the IDeckLinkInput callback. */ @@ -647,7 +640,7 @@ public: virtual HRESULT GetPacketTime (/* out */ BMDTimeValue *packetTime, /* in */ BMDTimeScale timeScale) = 0; protected: - virtual ~IDeckLinkAudioInputPacket () {}; // call Release method to drop reference count + virtual ~IDeckLinkAudioInputPacket () {} // call Release method to drop reference count }; /* Interface IDeckLinkScreenPreviewCallback - Screen preview callback */ @@ -658,7 +651,7 @@ public: virtual HRESULT DrawFrame (/* in */ IDeckLinkVideoFrame *theFrame) = 0; protected: - virtual ~IDeckLinkScreenPreviewCallback () {}; // call Release method to drop reference count + virtual ~IDeckLinkScreenPreviewCallback () {} // call Release method to drop reference count }; /* Interface IDeckLinkCocoaScreenPreviewCallback - Screen preview callback for Cocoa-based applications */ @@ -668,7 +661,7 @@ class IDeckLinkCocoaScreenPreviewCallback : public IDeckLinkScreenPreviewCallbac public: protected: - virtual ~IDeckLinkCocoaScreenPreviewCallback () {}; // call Release method to drop reference count + virtual ~IDeckLinkCocoaScreenPreviewCallback () {} // call Release method to drop reference count }; /* Interface IDeckLinkGLScreenPreviewHelper - Created with CoCreateInstance(). */ @@ -685,7 +678,7 @@ public: virtual HRESULT Set3DPreviewFormat (/* in */ BMD3DPreviewFormat previewFormat) = 0; protected: - virtual ~IDeckLinkGLScreenPreviewHelper () {}; // call Release method to drop reference count + virtual ~IDeckLinkGLScreenPreviewHelper () {} // call Release method to drop reference count }; /* Interface IDeckLinkNotificationCallback - DeckLink Notification Callback Interface */ @@ -716,7 +709,7 @@ public: virtual HRESULT GetString (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ CFStringRef *value) = 0; protected: - virtual ~IDeckLinkAttributes () {}; // call Release method to drop reference count + virtual ~IDeckLinkAttributes () {} // call Release method to drop reference count }; /* Interface IDeckLinkKeyer - DeckLink Keyer interface */ @@ -731,7 +724,7 @@ public: virtual HRESULT Disable (void) = 0; protected: - virtual ~IDeckLinkKeyer () {}; // call Release method to drop reference count + virtual ~IDeckLinkKeyer () {} // call Release method to drop reference count }; /* Interface IDeckLinkVideoConversion - Created with CoCreateInstance(). */ @@ -742,7 +735,7 @@ public: virtual HRESULT ConvertFrame (/* in */ IDeckLinkVideoFrame* srcFrame, /* in */ IDeckLinkVideoFrame* dstFrame) = 0; protected: - virtual ~IDeckLinkVideoConversion () {}; // call Release method to drop reference count + virtual ~IDeckLinkVideoConversion () {} // call Release method to drop reference count }; /* Interface IDeckLinkDeviceNotificationCallback - DeckLink device arrival/removal notification callbacks */ @@ -754,7 +747,7 @@ public: virtual HRESULT DeckLinkDeviceRemoved (/* in */ IDeckLink* deckLinkDevice) = 0; protected: - virtual ~IDeckLinkDeviceNotificationCallback () {}; // call Release method to drop reference count + virtual ~IDeckLinkDeviceNotificationCallback () {} // call Release method to drop reference count }; /* Interface IDeckLinkDiscovery - DeckLink device discovery */ @@ -766,7 +759,7 @@ public: virtual HRESULT UninstallDeviceNotifications (void) = 0; protected: - virtual ~IDeckLinkDiscovery () {}; // call Release method to drop reference count + virtual ~IDeckLinkDiscovery () {} // call Release method to drop reference count }; /* Functions */ @@ -780,7 +773,7 @@ extern "C" { IDeckLinkCocoaScreenPreviewCallback* CreateCocoaScreenPreview (void* /* (NSView*) */ parentView); IDeckLinkVideoConversion* CreateVideoConversionInstance (void); -}; +} #endif // defined(__cplusplus) diff --git a/third_party/decklink/mac/include/DeckLinkAPIConfiguration.h b/third_party/decklink/mac/include/DeckLinkAPIConfiguration.h index 7e8343d..693fa38 100644 --- a/third_party/decklink/mac/include/DeckLinkAPIConfiguration.h +++ b/third_party/decklink/mac/include/DeckLinkAPIConfiguration.h @@ -42,7 +42,7 @@ // Interface ID Declarations -BMD_CONST REFIID IID_IDeckLinkConfiguration = /* C679A35B-610C-4D09-B748-1D0478100FC0 */ {0xC6,0x79,0xA3,0x5B,0x61,0x0C,0x4D,0x09,0xB7,0x48,0x1D,0x04,0x78,0x10,0x0F,0xC0}; +BMD_CONST REFIID IID_IDeckLinkConfiguration = /* 1E69FCF6-4203-4936-8076-2A9F4CFD50CB */ {0x1E,0x69,0xFC,0xF6,0x42,0x03,0x49,0x36,0x80,0x76,0x2A,0x9F,0x4C,0xFD,0x50,0xCB}; /* Enum BMDDeckLinkConfigurationID - DeckLink Configuration ID */ @@ -72,7 +72,7 @@ enum _BMDDeckLinkConfigurationID { bmdDeckLinkConfigFieldFlickerRemoval = 'fdfr', bmdDeckLinkConfigHD1080p24ToHD1080i5994Conversion = 'to59', bmdDeckLinkConfig444SDIVideoOutput = '444o', - bmdDeckLinkConfig3GBpsVideoOutput = '3gbs', + bmdDeckLinkConfigSingleLinkVideoOutput = 'sglo', bmdDeckLinkConfigBlackVideoOutputDuringCapture = 'bvoc', bmdDeckLinkConfigLowLatencyVideoOutput = 'llvo', @@ -167,7 +167,7 @@ public: virtual HRESULT WriteConfigurationToPreferences (void) = 0; protected: - virtual ~IDeckLinkConfiguration () {}; // call Release method to drop reference count + virtual ~IDeckLinkConfiguration () {} // call Release method to drop reference count }; /* Functions */ @@ -175,7 +175,7 @@ protected: extern "C" { -}; +} #endif /* defined(BMD_DECKLINKAPICONFIGURATION_H) */ diff --git a/third_party/decklink/mac/include/DeckLinkAPIConfiguration_v10_2.h b/third_party/decklink/mac/include/DeckLinkAPIConfiguration_v10_2.h new file mode 100644 index 0000000..2c989a0 --- /dev/null +++ b/third_party/decklink/mac/include/DeckLinkAPIConfiguration_v10_2.h @@ -0,0 +1,60 @@ +/* -LICENSE-START- +** Copyright (c) 2014 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 +** this license (the "Software") to use, reproduce, display, distribute, +** 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 +** SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +** FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +** ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +** DEALINGS IN THE SOFTWARE. +** -LICENSE-END- +*/ + +#ifndef BMD_DECKLINKAPICONFIGURATION_v10_2_H +#define BMD_DECKLINKAPICONFIGURATION_v10_2_H + +#include "DeckLinkAPIConfiguration.h" + +// Interface ID Declarations + +BMD_CONST REFIID IID_IDeckLinkConfiguration_v10_2 = /* C679A35B-610C-4D09-B748-1D0478100FC0 */ {0xC6,0x79,0xA3,0x5B,0x61,0x0C,0x4D,0x09,0xB7,0x48,0x1D,0x04,0x78,0x10,0x0F,0xC0}; + +// Forward Declarations + +class IDeckLinkConfiguration_v10_2; + +/* Interface IDeckLinkConfiguration_v10_2 - DeckLink Configuration interface */ + +class IDeckLinkConfiguration_v10_2 : public IUnknown +{ +public: + virtual HRESULT SetFlag (/* in */ BMDDeckLinkConfigurationID cfgID, /* in */ bool value) = 0; + virtual HRESULT GetFlag (/* in */ BMDDeckLinkConfigurationID cfgID, /* out */ bool *value) = 0; + virtual HRESULT SetInt (/* in */ BMDDeckLinkConfigurationID cfgID, /* in */ int64_t value) = 0; + virtual HRESULT GetInt (/* in */ BMDDeckLinkConfigurationID cfgID, /* out */ int64_t *value) = 0; + virtual HRESULT SetFloat (/* in */ BMDDeckLinkConfigurationID cfgID, /* in */ double value) = 0; + virtual HRESULT GetFloat (/* in */ BMDDeckLinkConfigurationID cfgID, /* out */ double *value) = 0; + virtual HRESULT SetString (/* in */ BMDDeckLinkConfigurationID cfgID, /* in */ CFStringRef value) = 0; + virtual HRESULT GetString (/* in */ BMDDeckLinkConfigurationID cfgID, /* out */ CFStringRef *value) = 0; + virtual HRESULT WriteConfigurationToPreferences (void) = 0; + +protected: + virtual ~IDeckLinkConfiguration_v10_2 () {} // call Release method to drop reference count +}; + +#endif /* defined(BMD_DECKLINKAPICONFIGURATION_v10_2_H) */ diff --git a/third_party/decklink/mac/include/DeckLinkAPIDeckControl.h b/third_party/decklink/mac/include/DeckLinkAPIDeckControl.h index ba9f99d..4075f32 100644 --- a/third_party/decklink/mac/include/DeckLinkAPIDeckControl.h +++ b/third_party/decklink/mac/include/DeckLinkAPIDeckControl.h @@ -158,7 +158,7 @@ public: virtual HRESULT DeckControlStatusChanged (/* in */ BMDDeckControlStatusFlags flags, /* in */ uint32_t mask) = 0; protected: - virtual ~IDeckLinkDeckControlStatusCallback () {}; // call Release method to drop reference count + virtual ~IDeckLinkDeckControlStatusCallback () {} // call Release method to drop reference count }; /* Interface IDeckLinkDeckControl - Deck Control main interface */ @@ -201,7 +201,7 @@ public: virtual HRESULT SetCallback (/* in */ IDeckLinkDeckControlStatusCallback *callback) = 0; protected: - virtual ~IDeckLinkDeckControl () {}; // call Release method to drop reference count + virtual ~IDeckLinkDeckControl () {} // call Release method to drop reference count }; /* Functions */ @@ -209,7 +209,7 @@ protected: extern "C" { -}; +} #endif /* defined(BMD_DECKLINKAPIDECKCONTROL_H) */ diff --git a/third_party/decklink/mac/include/DeckLinkAPIDiscovery.h b/third_party/decklink/mac/include/DeckLinkAPIDiscovery.h index 18845dc..adbde29 100644 --- a/third_party/decklink/mac/include/DeckLinkAPIDiscovery.h +++ b/third_party/decklink/mac/include/DeckLinkAPIDiscovery.h @@ -57,7 +57,7 @@ public: virtual HRESULT GetDisplayName (/* out */ CFStringRef *displayName) = 0; protected: - virtual ~IDeckLink () {}; // call Release method to drop reference count + virtual ~IDeckLink () {} // call Release method to drop reference count }; /* Functions */ @@ -65,7 +65,7 @@ protected: extern "C" { -}; +} #endif /* defined(BMD_DECKLINKAPIDISCOVERY_H) */ diff --git a/third_party/decklink/mac/include/DeckLinkAPIModes.h b/third_party/decklink/mac/include/DeckLinkAPIModes.h index f49b5f5..478a2fd 100644 --- a/third_party/decklink/mac/include/DeckLinkAPIModes.h +++ b/third_party/decklink/mac/include/DeckLinkAPIModes.h @@ -97,6 +97,9 @@ enum _BMDDisplayMode { bmdMode4K2160p25 = '4k25', bmdMode4K2160p2997 = '4k29', bmdMode4K2160p30 = '4k30', + bmdMode4K2160p50 = '4k50', + bmdMode4K2160p5994 = '4k59', + bmdMode4K2160p60 = '4k60', /* DCI Modes (output only) */ @@ -129,6 +132,8 @@ enum _BMDPixelFormat { bmdFormat8BitARGB = 32, bmdFormat8BitBGRA = 'BGRA', bmdFormat10BitRGB = 'r210', // Big-endian RGB 10-bit per component with SMPTE video levels (64-960). Packed as 2:10:10:10 + bmdFormat12BitRGB = 'R12B', // Big-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component + bmdFormat12BitRGBLE = 'R12L', // Little-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component bmdFormat10BitRGBXLE = 'R10l', // Little-endian 10-bit RGB with SMPTE video levels (64-940) bmdFormat10BitRGBX = 'R10b' // Big-endian 10-bit RGB with SMPTE video levels (64-940) }; @@ -155,7 +160,7 @@ public: virtual HRESULT Next (/* out */ IDeckLinkDisplayMode **deckLinkDisplayMode) = 0; protected: - virtual ~IDeckLinkDisplayModeIterator () {}; // call Release method to drop reference count + virtual ~IDeckLinkDisplayModeIterator () {} // call Release method to drop reference count }; /* Interface IDeckLinkDisplayMode - represents a display mode */ @@ -172,7 +177,7 @@ public: virtual BMDDisplayModeFlags GetFlags (void) = 0; protected: - virtual ~IDeckLinkDisplayMode () {}; // call Release method to drop reference count + virtual ~IDeckLinkDisplayMode () {} // call Release method to drop reference count }; /* Functions */ @@ -180,7 +185,7 @@ protected: extern "C" { -}; +} #endif /* defined(BMD_DECKLINKAPIMODES_H) */ diff --git a/third_party/decklink/mac/include/DeckLinkAPIStreaming.h b/third_party/decklink/mac/include/DeckLinkAPIStreaming.h index 0735389..725c187 100644 --- a/third_party/decklink/mac/include/DeckLinkAPIStreaming.h +++ b/third_party/decklink/mac/include/DeckLinkAPIStreaming.h @@ -196,7 +196,7 @@ public: virtual HRESULT StreamingDeviceModeChanged (/* in */ IDeckLink* device, /* in */ BMDStreamingDeviceMode mode) = 0; protected: - virtual ~IBMDStreamingDeviceNotificationCallback () {}; // call Release method to drop reference count + virtual ~IBMDStreamingDeviceNotificationCallback () {} // call Release method to drop reference count }; /* Interface IBMDStreamingH264InputCallback - H264 input callbacks. */ @@ -212,7 +212,7 @@ public: virtual HRESULT H264VideoInputModeChanged (void) = 0; protected: - virtual ~IBMDStreamingH264InputCallback () {}; // call Release method to drop reference count + virtual ~IBMDStreamingH264InputCallback () {} // call Release method to drop reference count }; /* Interface IBMDStreamingDiscovery - Installs device notifications */ @@ -224,7 +224,7 @@ public: virtual HRESULT UninstallDeviceNotifications (void) = 0; protected: - virtual ~IBMDStreamingDiscovery () {}; // call Release method to drop reference count + virtual ~IBMDStreamingDiscovery () {} // call Release method to drop reference count }; /* Interface IBMDStreamingVideoEncodingMode - Represents an encoded video mode. */ @@ -247,7 +247,7 @@ public: virtual HRESULT CreateMutableVideoEncodingMode (/* out */ IBMDStreamingMutableVideoEncodingMode** newEncodingMode) = 0; // Creates a mutable copy of the encoding mode protected: - virtual ~IBMDStreamingVideoEncodingMode () {}; // call Release method to drop reference count + virtual ~IBMDStreamingVideoEncodingMode () {} // call Release method to drop reference count }; /* Interface IBMDStreamingMutableVideoEncodingMode - Represents a mutable encoded video mode. */ @@ -263,7 +263,7 @@ public: virtual HRESULT SetString (/* in */ BMDStreamingEncodingModePropertyID cfgID, /* in */ CFStringRef value) = 0; protected: - virtual ~IBMDStreamingMutableVideoEncodingMode () {}; // call Release method to drop reference count + virtual ~IBMDStreamingMutableVideoEncodingMode () {} // call Release method to drop reference count }; /* Interface IBMDStreamingVideoEncodingModePresetIterator - Enumerates encoding mode presets */ @@ -274,7 +274,7 @@ public: virtual HRESULT Next (/* out */ IBMDStreamingVideoEncodingMode** videoEncodingMode) = 0; protected: - virtual ~IBMDStreamingVideoEncodingModePresetIterator () {}; // call Release method to drop reference count + virtual ~IBMDStreamingVideoEncodingModePresetIterator () {} // call Release method to drop reference count }; /* Interface IBMDStreamingDeviceInput - Created by QueryInterface from IDeckLink */ @@ -304,7 +304,7 @@ public: virtual HRESULT SetCallback (/* in */ IUnknown* theCallback) = 0; protected: - virtual ~IBMDStreamingDeviceInput () {}; // call Release method to drop reference count + virtual ~IBMDStreamingDeviceInput () {} // call Release method to drop reference count }; /* Interface IBMDStreamingH264NALPacket - Represent an H.264 NAL packet */ @@ -319,7 +319,7 @@ public: virtual HRESULT GetPacketIndex (/* out */ uint32_t* packetIndex) = 0; // Deprecated protected: - virtual ~IBMDStreamingH264NALPacket () {}; // call Release method to drop reference count + virtual ~IBMDStreamingH264NALPacket () {} // call Release method to drop reference count }; /* Interface IBMDStreamingAudioPacket - Represents a chunk of audio data */ @@ -334,7 +334,7 @@ public: virtual HRESULT GetPacketIndex (/* out */ uint32_t* packetIndex) = 0; // Deprecated protected: - virtual ~IBMDStreamingAudioPacket () {}; // call Release method to drop reference count + virtual ~IBMDStreamingAudioPacket () {} // call Release method to drop reference count }; /* Interface IBMDStreamingMPEG2TSPacket - Represent an MPEG2 Transport Stream packet */ @@ -346,7 +346,7 @@ public: virtual HRESULT GetBytes (/* out */ void** buffer) = 0; protected: - virtual ~IBMDStreamingMPEG2TSPacket () {}; // call Release method to drop reference count + virtual ~IBMDStreamingMPEG2TSPacket () {} // call Release method to drop reference count }; /* Interface IBMDStreamingH264NALParser - For basic NAL parsing */ @@ -359,7 +359,7 @@ public: virtual HRESULT GetProfileAndLevelFromSPS (/* in */ IBMDStreamingH264NALPacket* nal, /* out */ uint32_t* profileIdc, /* out */ uint32_t* profileCompatability, /* out */ uint32_t* levelIdc) = 0; protected: - virtual ~IBMDStreamingH264NALParser () {}; // call Release method to drop reference count + virtual ~IBMDStreamingH264NALParser () {} // call Release method to drop reference count }; /* Functions */ @@ -369,7 +369,7 @@ extern "C" { IBMDStreamingDiscovery* CreateBMDStreamingDiscoveryInstance (void); IBMDStreamingH264NALParser* CreateBMDStreamingH264NALParser (void); -}; +} #endif /* defined(BMD_DECKLINKAPISTREAMING_H) */ diff --git a/third_party/decklink/mac/include/DeckLinkAPITypes.h b/third_party/decklink/mac/include/DeckLinkAPITypes.h index d747cdf..396680c 100644 --- a/third_party/decklink/mac/include/DeckLinkAPITypes.h +++ b/third_party/decklink/mac/include/DeckLinkAPITypes.h @@ -53,7 +53,8 @@ BMD_CONST REFIID IID_IDeckLinkTimecode = /* BC6CFBD3- typedef uint32_t BMDTimecodeFlags; enum _BMDTimecodeFlags { bmdTimecodeFlagDefault = 0, - bmdTimecodeIsDropFrame = 1 << 0 + bmdTimecodeIsDropFrame = 1 << 0, + bmdTimecodeFieldMark = 1 << 1 }; /* Enum BMDVideoConnection - Video connection types */ @@ -68,6 +69,17 @@ enum _BMDVideoConnection { bmdVideoConnectionSVideo = 1 << 5 }; +/* Enum BMDAudioConnection - Audio connection types */ + +typedef uint32_t BMDAudioConnection; +enum _BMDAudioConnection { + bmdAudioConnectionEmbedded = 1 << 0, + bmdAudioConnectionAESEBU = 1 << 1, + bmdAudioConnectionAnalog = 1 << 2, + bmdAudioConnectionAnalogXLR = 1 << 3, + bmdAudioConnectionAnalogRCA = 1 << 4 +}; + // Forward Declarations class IDeckLinkTimecode; @@ -84,7 +96,7 @@ public: virtual HRESULT GetTimecodeUserBits (/* out */ BMDTimecodeUserBits *userBits) = 0; protected: - virtual ~IDeckLinkTimecode () {}; // call Release method to drop reference count + virtual ~IDeckLinkTimecode () {} // call Release method to drop reference count }; /* Functions */ @@ -92,7 +104,7 @@ protected: extern "C" { -}; +} #endif /* defined(BMD_DECKLINKAPITYPES_H) */ diff --git a/third_party/decklink/mac/include/DeckLinkAPIVersion.h b/third_party/decklink/mac/include/DeckLinkAPIVersion.h index 1084b02..4e41492 100644 --- a/third_party/decklink/mac/include/DeckLinkAPIVersion.h +++ b/third_party/decklink/mac/include/DeckLinkAPIVersion.h @@ -27,11 +27,11 @@ /* DeckLinkAPIVersion.h */ -#ifndef __DeckLink_API_Verison_h__ +#ifndef __DeckLink_API_Version_h__ #define __DeckLink_API_Version_h__ -#define BLACKMAGIC_DECKLINK_API_VERSION 0x0a010400 -#define BLACKMAGIC_DECKLINK_API_VERSION_STRING "10.1.4" +#define BLACKMAGIC_DECKLINK_API_VERSION 0x0a030100 +#define BLACKMAGIC_DECKLINK_API_VERSION_STRING "10.3.1" #endif // __DeckLink_API_Version_h__ diff --git a/third_party/decklink/mac/include/DeckLinkAPI_v10_2.h b/third_party/decklink/mac/include/DeckLinkAPI_v10_2.h new file mode 100644 index 0000000..e5c95e4 --- /dev/null +++ b/third_party/decklink/mac/include/DeckLinkAPI_v10_2.h @@ -0,0 +1,55 @@ +/* -LICENSE-START- +** Copyright (c) 2014 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 +** this license (the "Software") to use, reproduce, display, distribute, +** 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 +** SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +** FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +** ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +** DEALINGS IN THE SOFTWARE. +** -LICENSE-END- +*/ + +#ifndef BMD_DECKLINKAPI_v10_2_H +#define BMD_DECKLINKAPI_v10_2_H + +#include "DeckLinkAPI.h" + +// Type Declarations + +/* Enum BMDDeckLinkConfigurationID - DeckLink Configuration ID */ + +typedef uint32_t BMDDeckLinkConfigurationID_v10_2; +enum _BMDDeckLinkConfigurationID_v10_2 { + /* Video output flags */ + + bmdDeckLinkConfig3GBpsVideoOutput_v10_2 = '3gbs', +}; + +/* Enum BMDAudioConnection_v10_2 - Audio connection types */ + +typedef uint32_t BMDAudioConnection_v10_2; +enum _BMDAudioConnection_v10_2 { + bmdAudioConnectionEmbedded_v10_2 = 'embd', + bmdAudioConnectionAESEBU_v10_2 = 'aes ', + bmdAudioConnectionAnalog_v10_2 = 'anlg', + bmdAudioConnectionAnalogXLR_v10_2 = 'axlr', + bmdAudioConnectionAnalogRCA_v10_2 = 'arca' +}; + +#endif /* defined(BMD_DECKLINKAPI_v10_2_H) */ |