DeckLinkAPI.idl 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265
  1. /* -LICENSE-START-
  2. ** Copyright (c) 2018 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. #ifndef BMD_CONST
  28. #if defined(_MSC_VER)
  29. #define BMD_CONST __declspec(selectany) static const
  30. #else
  31. #define BMD_CONST static const
  32. #endif
  33. #endif
  34. /* DeckLink API */
  35. import "unknwn.idl";
  36. [uuid(D864517A-EDD5-466D-867D-C819F1C052BB),
  37. version(1.0), helpstring("DeckLink API Library")]
  38. library DeckLinkAPI
  39. {
  40. #include "DeckLinkAPITypes.idl"
  41. #include "DeckLinkAPIModes.idl"
  42. #include "DeckLinkAPIDiscovery.idl"
  43. #include "DeckLinkAPIConfiguration.idl"
  44. #include "DeckLinkAPIDeckControl.idl"
  45. #include "DeckLinkAPIStreaming.idl"
  46. // Type Declarations
  47. // Enumeration Mapping
  48. cpp_quote("typedef unsigned int BMDFrameFlags;")
  49. cpp_quote("typedef unsigned int BMDVideoInputFlags;")
  50. cpp_quote("typedef unsigned int BMDVideoInputFormatChangedEvents;")
  51. cpp_quote("typedef unsigned int BMDDetectedVideoInputFormatFlags;")
  52. cpp_quote("typedef unsigned int BMDDeckLinkCapturePassthroughMode;")
  53. cpp_quote("typedef unsigned int BMDAnalogVideoFlags;")
  54. cpp_quote("typedef unsigned int BMDDeviceBusyState;")
  55. cpp_quote("#if 0")
  56. typedef enum _BMDFrameFlags BMDFrameFlags;
  57. typedef enum _BMDVideoInputFlags BMDVideoInputFlags;
  58. typedef enum _BMDVideoInputFormatChangedEvents BMDVideoInputFormatChangedEvents;
  59. typedef enum _BMDDetectedVideoInputFormatFlags BMDDetectedVideoInputFormatFlags;
  60. typedef enum _BMDDeckLinkCapturePassthroughMode BMDDeckLinkCapturePassthroughMode;
  61. typedef enum _BMDAnalogVideoFlags BMDAnalogVideoFlags;
  62. typedef enum _BMDDeviceBusyState BMDDeviceBusyState;
  63. cpp_quote("#endif")
  64. /* Enum BMDVideoOutputFlags - Flags to control the output of ancillary data along with video. */
  65. typedef [v1_enum] enum _BMDVideoOutputFlags {
  66. bmdVideoOutputFlagDefault = 0,
  67. bmdVideoOutputVANC = 1 << 0,
  68. bmdVideoOutputVITC = 1 << 1,
  69. bmdVideoOutputRP188 = 1 << 2,
  70. bmdVideoOutputDualStream3D = 1 << 4
  71. } BMDVideoOutputFlags;
  72. /* Enum BMDPacketType - Type of packet */
  73. typedef [v1_enum] enum _BMDPacketType {
  74. bmdPacketTypeStreamInterruptedMarker = /* 'sint' */ 0x73696E74, // A packet of this type marks the time when a video stream was interrupted, for example by a disconnected cable
  75. bmdPacketTypeStreamData = /* 'sdat' */ 0x73646174 // Regular stream data
  76. } BMDPacketType;
  77. /* Enum BMDFrameFlags - Frame flags */
  78. [v1_enum] enum _BMDFrameFlags {
  79. bmdFrameFlagDefault = 0,
  80. bmdFrameFlagFlipVertical = 1 << 0,
  81. bmdFrameContainsHDRMetadata = 1 << 1,
  82. bmdFrameContainsCintelMetadata = 1 << 2,
  83. /* Flags that are applicable only to instances of IDeckLinkVideoInputFrame */
  84. bmdFrameCapturedAsPsF = 1 << 30,
  85. bmdFrameHasNoInputSource = 1 << 31
  86. };
  87. /* Enum BMDVideoInputFlags - Flags applicable to video input */
  88. [v1_enum] enum _BMDVideoInputFlags {
  89. bmdVideoInputFlagDefault = 0,
  90. bmdVideoInputEnableFormatDetection = 1 << 0,
  91. bmdVideoInputDualStream3D = 1 << 1
  92. };
  93. /* Enum BMDVideoInputFormatChangedEvents - Bitmask passed to the VideoInputFormatChanged notification to identify the properties of the input signal that have changed */
  94. [v1_enum] enum _BMDVideoInputFormatChangedEvents {
  95. bmdVideoInputDisplayModeChanged = 1 << 0,
  96. bmdVideoInputFieldDominanceChanged = 1 << 1,
  97. bmdVideoInputColorspaceChanged = 1 << 2
  98. };
  99. /* Enum BMDDetectedVideoInputFormatFlags - Flags passed to the VideoInputFormatChanged notification to describe the detected video input signal */
  100. [v1_enum] enum _BMDDetectedVideoInputFormatFlags {
  101. bmdDetectedVideoInputYCbCr422 = 1 << 0,
  102. bmdDetectedVideoInputRGB444 = 1 << 1,
  103. bmdDetectedVideoInputDualStream3D = 1 << 2
  104. };
  105. /* Enum BMDDeckLinkCapturePassthroughMode - Enumerates whether the video output is electrically connected to the video input or if the clean switching mode is enabled */
  106. [v1_enum] enum _BMDDeckLinkCapturePassthroughMode {
  107. bmdDeckLinkCapturePassthroughModeDisabled = /* 'pdis' */ 0x70646973,
  108. bmdDeckLinkCapturePassthroughModeDirect = /* 'pdir' */ 0x70646972,
  109. bmdDeckLinkCapturePassthroughModeCleanSwitch = /* 'pcln' */ 0x70636C6E
  110. };
  111. /* Enum BMDOutputFrameCompletionResult - Frame Completion Callback */
  112. typedef [v1_enum] enum _BMDOutputFrameCompletionResult {
  113. bmdOutputFrameCompleted,
  114. bmdOutputFrameDisplayedLate,
  115. bmdOutputFrameDropped,
  116. bmdOutputFrameFlushed
  117. } BMDOutputFrameCompletionResult;
  118. /* Enum BMDReferenceStatus - GenLock input status */
  119. typedef [v1_enum] enum _BMDReferenceStatus {
  120. bmdReferenceNotSupportedByHardware = 1 << 0,
  121. bmdReferenceLocked = 1 << 1
  122. } BMDReferenceStatus;
  123. /* Enum BMDAudioFormat - Audio Format */
  124. typedef [v1_enum] enum _BMDAudioFormat {
  125. bmdAudioFormatPCM = /* 'lpcm' */ 0x6C70636D // Linear signed PCM samples
  126. } BMDAudioFormat;
  127. /* Enum BMDAudioSampleRate - Audio sample rates supported for output/input */
  128. typedef [v1_enum] enum _BMDAudioSampleRate {
  129. bmdAudioSampleRate48kHz = 48000
  130. } BMDAudioSampleRate;
  131. /* Enum BMDAudioSampleType - Audio sample sizes supported for output/input */
  132. typedef [v1_enum] enum _BMDAudioSampleType {
  133. bmdAudioSampleType16bitInteger = 16,
  134. bmdAudioSampleType32bitInteger = 32
  135. } BMDAudioSampleType;
  136. /* Enum BMDAudioOutputStreamType - Audio output stream type */
  137. typedef [v1_enum] enum _BMDAudioOutputStreamType {
  138. bmdAudioOutputStreamContinuous,
  139. bmdAudioOutputStreamContinuousDontResample,
  140. bmdAudioOutputStreamTimestamped
  141. } BMDAudioOutputStreamType;
  142. /* Enum BMDDisplayModeSupport - Output mode supported flags */
  143. typedef [v1_enum] enum _BMDDisplayModeSupport {
  144. bmdDisplayModeNotSupported = 0,
  145. bmdDisplayModeSupported,
  146. bmdDisplayModeSupportedWithConversion
  147. } BMDDisplayModeSupport;
  148. /* Enum BMDAncillaryPacketFormat - Ancillary packet format */
  149. typedef [v1_enum] enum _BMDAncillaryPacketFormat {
  150. bmdAncillaryPacketFormatUInt8 = /* 'ui08' */ 0x75693038,
  151. bmdAncillaryPacketFormatUInt16 = /* 'ui16' */ 0x75693136,
  152. bmdAncillaryPacketFormatYCbCr10 = /* 'v210' */ 0x76323130
  153. } BMDAncillaryPacketFormat;
  154. /* Enum BMDTimecodeFormat - Timecode formats for frame metadata */
  155. typedef [v1_enum] enum _BMDTimecodeFormat {
  156. bmdTimecodeRP188VITC1 = /* 'rpv1' */ 0x72707631, // RP188 timecode where DBB1 equals VITC1 (line 9)
  157. bmdTimecodeRP188VITC2 = /* 'rp12' */ 0x72703132, // RP188 timecode where DBB1 equals VITC2 (line 9 for progressive or line 571 for interlaced/PsF)
  158. bmdTimecodeRP188LTC = /* 'rplt' */ 0x72706C74, // RP188 timecode where DBB1 equals LTC (line 10)
  159. bmdTimecodeRP188Any = /* 'rp18' */ 0x72703138, // For capture: return the first valid timecode in {VITC1, LTC ,VITC2} - For playback: set the timecode as VITC1
  160. bmdTimecodeVITC = /* 'vitc' */ 0x76697463,
  161. bmdTimecodeVITCField2 = /* 'vit2' */ 0x76697432,
  162. bmdTimecodeSerial = /* 'seri' */ 0x73657269
  163. } BMDTimecodeFormat;
  164. /* Enum BMDAnalogVideoFlags - Analog video display flags */
  165. [v1_enum] enum _BMDAnalogVideoFlags {
  166. bmdAnalogVideoFlagCompositeSetup75 = 1 << 0,
  167. bmdAnalogVideoFlagComponentBetacamLevels = 1 << 1
  168. };
  169. /* Enum BMDAudioOutputAnalogAESSwitch - Audio output Analog/AESEBU switch */
  170. typedef [v1_enum] enum _BMDAudioOutputAnalogAESSwitch {
  171. bmdAudioOutputSwitchAESEBU = /* 'aes ' */ 0x61657320,
  172. bmdAudioOutputSwitchAnalog = /* 'anlg' */ 0x616E6C67
  173. } BMDAudioOutputAnalogAESSwitch;
  174. /* Enum BMDVideoOutputConversionMode - Video/audio conversion mode */
  175. typedef [v1_enum] enum _BMDVideoOutputConversionMode {
  176. bmdNoVideoOutputConversion = /* 'none' */ 0x6E6F6E65,
  177. bmdVideoOutputLetterboxDownconversion = /* 'ltbx' */ 0x6C746278,
  178. bmdVideoOutputAnamorphicDownconversion = /* 'amph' */ 0x616D7068,
  179. bmdVideoOutputHD720toHD1080Conversion = /* '720c' */ 0x37323063,
  180. bmdVideoOutputHardwareLetterboxDownconversion = /* 'HWlb' */ 0x48576C62,
  181. bmdVideoOutputHardwareAnamorphicDownconversion = /* 'HWam' */ 0x4857616D,
  182. bmdVideoOutputHardwareCenterCutDownconversion = /* 'HWcc' */ 0x48576363,
  183. bmdVideoOutputHardware720p1080pCrossconversion = /* 'xcap' */ 0x78636170,
  184. bmdVideoOutputHardwareAnamorphic720pUpconversion = /* 'ua7p' */ 0x75613770,
  185. bmdVideoOutputHardwareAnamorphic1080iUpconversion = /* 'ua1i' */ 0x75613169,
  186. bmdVideoOutputHardwareAnamorphic149To720pUpconversion = /* 'u47p' */ 0x75343770,
  187. bmdVideoOutputHardwareAnamorphic149To1080iUpconversion = /* 'u41i' */ 0x75343169,
  188. bmdVideoOutputHardwarePillarbox720pUpconversion = /* 'up7p' */ 0x75703770,
  189. bmdVideoOutputHardwarePillarbox1080iUpconversion = /* 'up1i' */ 0x75703169
  190. } BMDVideoOutputConversionMode;
  191. /* Enum BMDVideoInputConversionMode - Video input conversion mode */
  192. typedef [v1_enum] enum _BMDVideoInputConversionMode {
  193. bmdNoVideoInputConversion = /* 'none' */ 0x6E6F6E65,
  194. bmdVideoInputLetterboxDownconversionFromHD1080 = /* '10lb' */ 0x31306C62,
  195. bmdVideoInputAnamorphicDownconversionFromHD1080 = /* '10am' */ 0x3130616D,
  196. bmdVideoInputLetterboxDownconversionFromHD720 = /* '72lb' */ 0x37326C62,
  197. bmdVideoInputAnamorphicDownconversionFromHD720 = /* '72am' */ 0x3732616D,
  198. bmdVideoInputLetterboxUpconversion = /* 'lbup' */ 0x6C627570,
  199. bmdVideoInputAnamorphicUpconversion = /* 'amup' */ 0x616D7570
  200. } BMDVideoInputConversionMode;
  201. /* Enum BMDVideo3DPackingFormat - Video 3D packing format */
  202. typedef [v1_enum] enum _BMDVideo3DPackingFormat {
  203. bmdVideo3DPackingSidebySideHalf = /* 'sbsh' */ 0x73627368,
  204. bmdVideo3DPackingLinebyLine = /* 'lbyl' */ 0x6C62796C,
  205. bmdVideo3DPackingTopAndBottom = /* 'tabo' */ 0x7461626F,
  206. bmdVideo3DPackingFramePacking = /* 'frpk' */ 0x6672706B,
  207. bmdVideo3DPackingLeftOnly = /* 'left' */ 0x6C656674,
  208. bmdVideo3DPackingRightOnly = /* 'righ' */ 0x72696768
  209. } BMDVideo3DPackingFormat;
  210. /* Enum BMDIdleVideoOutputOperation - Video output operation when not playing video */
  211. typedef [v1_enum] enum _BMDIdleVideoOutputOperation {
  212. bmdIdleVideoOutputBlack = /* 'blac' */ 0x626C6163,
  213. bmdIdleVideoOutputLastFrame = /* 'lafa' */ 0x6C616661
  214. } BMDIdleVideoOutputOperation;
  215. /* Enum BMDVideoEncoderFrameCodingMode - Video frame coding mode */
  216. typedef [v1_enum] enum _BMDVideoEncoderFrameCodingMode {
  217. bmdVideoEncoderFrameCodingModeInter = /* 'inte' */ 0x696E7465,
  218. bmdVideoEncoderFrameCodingModeIntra = /* 'intr' */ 0x696E7472
  219. } BMDVideoEncoderFrameCodingMode;
  220. /* Enum BMDDNxHRLevel - DNxHR Levels */
  221. typedef [v1_enum] enum _BMDDNxHRLevel {
  222. bmdDNxHRLevelSQ = /* 'dnsq' */ 0x646E7371,
  223. bmdDNxHRLevelLB = /* 'dnlb' */ 0x646E6C62,
  224. bmdDNxHRLevelHQ = /* 'dnhq' */ 0x646E6871,
  225. bmdDNxHRLevelHQX = /* 'dhqx' */ 0x64687178,
  226. bmdDNxHRLevel444 = /* 'd444' */ 0x64343434
  227. } BMDDNxHRLevel;
  228. /* Enum BMDLinkConfiguration - Video link configuration */
  229. typedef [v1_enum] enum _BMDLinkConfiguration {
  230. bmdLinkConfigurationSingleLink = /* 'lcsl' */ 0x6C63736C,
  231. bmdLinkConfigurationDualLink = /* 'lcdl' */ 0x6C63646C,
  232. bmdLinkConfigurationQuadLink = /* 'lcql' */ 0x6C63716C
  233. } BMDLinkConfiguration;
  234. /* Enum BMDDeviceInterface - Device interface type */
  235. typedef [v1_enum] enum _BMDDeviceInterface {
  236. bmdDeviceInterfacePCI = /* 'pci ' */ 0x70636920,
  237. bmdDeviceInterfaceUSB = /* 'usb ' */ 0x75736220,
  238. bmdDeviceInterfaceThunderbolt = /* 'thun' */ 0x7468756E
  239. } BMDDeviceInterface;
  240. /* Enum BMDColorspace - Colorspace */
  241. typedef [v1_enum] enum _BMDColorspace {
  242. bmdColorspaceRec601 = /* 'r601' */ 0x72363031,
  243. bmdColorspaceRec709 = /* 'r709' */ 0x72373039,
  244. bmdColorspaceRec2020 = /* '2020' */ 0x32303230
  245. } BMDColorspace;
  246. /* Enum BMDDynamicRange - SDR or HDR */
  247. typedef [v1_enum] enum _BMDDynamicRange {
  248. bmdDynamicRangeSDR = 0,
  249. bmdDynamicRangeHDRStaticPQ = 1 << 29, // SMPTE ST 2084
  250. bmdDynamicRangeHDRStaticHLG = 1 << 30 // ITU-R BT.2100-0
  251. } BMDDynamicRange;
  252. /* Enum BMDDeckLinkHDMIInputEDIDID - DeckLink HDMI Input EDID ID */
  253. typedef [v1_enum] enum _BMDDeckLinkHDMIInputEDIDID {
  254. bmdDeckLinkHDMIInputEDIDDynamicRange = /* 'HIDy' */ 0x48494479 // Parameter is of type BMDDynamicRange. Default is (bmdDynamicRangeSDR|bmdDynamicRangeHDRStaticPQ)
  255. } BMDDeckLinkHDMIInputEDIDID;
  256. /* Enum BMDDeckLinkFrameMetadataID - DeckLink Frame Metadata ID */
  257. typedef [v1_enum] enum _BMDDeckLinkFrameMetadataID {
  258. bmdDeckLinkFrameMetadataColorspace = /* 'cspc' */ 0x63737063, // Colorspace of video frame (see BMDColorspace)
  259. bmdDeckLinkFrameMetadataHDRElectroOpticalTransferFunc = /* 'eotf' */ 0x656F7466, // EOTF in range 0-7 as per CEA 861.3
  260. bmdDeckLinkFrameMetadataCintelFilmType = /* 'cfty' */ 0x63667479, // Current film type
  261. bmdDeckLinkFrameMetadataCintelFilmGauge = /* 'cfga' */ 0x63666761, // Current film gauge
  262. bmdDeckLinkFrameMetadataCintelOffsetDetectedHorizontal = /* 'odfh' */ 0x6F646668, // Horizontal offset (pixels) detected in image
  263. bmdDeckLinkFrameMetadataCintelOffsetDetectedVertical = /* 'odfv' */ 0x6F646676, // Vertical offset (pixels) detected in image
  264. bmdDeckLinkFrameMetadataCintelKeykodeLow = /* 'ckkl' */ 0x636B6B6C, // Raw keykode value - low 64 bits
  265. bmdDeckLinkFrameMetadataCintelKeykodeHigh = /* 'ckkh' */ 0x636B6B68, // Raw keykode value - high 64 bits
  266. bmdDeckLinkFrameMetadataCintelTile1Size = /* 'ct1s' */ 0x63743173, // Size in bytes of compressed raw tile 1
  267. bmdDeckLinkFrameMetadataCintelTile2Size = /* 'ct2s' */ 0x63743273, // Size in bytes of compressed raw tile 2
  268. bmdDeckLinkFrameMetadataCintelTile3Size = /* 'ct3s' */ 0x63743373, // Size in bytes of compressed raw tile 3
  269. bmdDeckLinkFrameMetadataCintelTile4Size = /* 'ct4s' */ 0x63743473, // Size in bytes of compressed raw tile 4
  270. bmdDeckLinkFrameMetadataCintelImageWidth = /* 'IWPx' */ 0x49575078, // Width in pixels of image
  271. bmdDeckLinkFrameMetadataCintelImageHeight = /* 'IHPx' */ 0x49485078, // Height in pixels of image
  272. bmdDeckLinkFrameMetadataCintelLinearMaskingRedInRed = /* 'mrir' */ 0x6D726972, // Red in red linear masking parameter
  273. bmdDeckLinkFrameMetadataCintelLinearMaskingGreenInRed = /* 'mgir' */ 0x6D676972, // Green in red linear masking parameter
  274. bmdDeckLinkFrameMetadataCintelLinearMaskingBlueInRed = /* 'mbir' */ 0x6D626972, // Blue in red linear masking parameter
  275. bmdDeckLinkFrameMetadataCintelLinearMaskingRedInGreen = /* 'mrig' */ 0x6D726967, // Red in green linear masking parameter
  276. bmdDeckLinkFrameMetadataCintelLinearMaskingGreenInGreen = /* 'mgig' */ 0x6D676967, // Green in green linear masking parameter
  277. bmdDeckLinkFrameMetadataCintelLinearMaskingBlueInGreen = /* 'mbig' */ 0x6D626967, // Blue in green linear masking parameter
  278. bmdDeckLinkFrameMetadataCintelLinearMaskingRedInBlue = /* 'mrib' */ 0x6D726962, // Red in blue linear masking parameter
  279. bmdDeckLinkFrameMetadataCintelLinearMaskingGreenInBlue = /* 'mgib' */ 0x6D676962, // Green in blue linear masking parameter
  280. bmdDeckLinkFrameMetadataCintelLinearMaskingBlueInBlue = /* 'mbib' */ 0x6D626962, // Blue in blue linear masking parameter
  281. bmdDeckLinkFrameMetadataCintelLogMaskingRedInRed = /* 'mlrr' */ 0x6D6C7272, // Red in red log masking parameter
  282. bmdDeckLinkFrameMetadataCintelLogMaskingGreenInRed = /* 'mlgr' */ 0x6D6C6772, // Green in red log masking parameter
  283. bmdDeckLinkFrameMetadataCintelLogMaskingBlueInRed = /* 'mlbr' */ 0x6D6C6272, // Blue in red log masking parameter
  284. bmdDeckLinkFrameMetadataCintelLogMaskingRedInGreen = /* 'mlrg' */ 0x6D6C7267, // Red in green log masking parameter
  285. bmdDeckLinkFrameMetadataCintelLogMaskingGreenInGreen = /* 'mlgg' */ 0x6D6C6767, // Green in green log masking parameter
  286. bmdDeckLinkFrameMetadataCintelLogMaskingBlueInGreen = /* 'mlbg' */ 0x6D6C6267, // Blue in green log masking parameter
  287. bmdDeckLinkFrameMetadataCintelLogMaskingRedInBlue = /* 'mlrb' */ 0x6D6C7262, // Red in blue log masking parameter
  288. bmdDeckLinkFrameMetadataCintelLogMaskingGreenInBlue = /* 'mlgb' */ 0x6D6C6762, // Green in blue log masking parameter
  289. bmdDeckLinkFrameMetadataCintelLogMaskingBlueInBlue = /* 'mlbb' */ 0x6D6C6262, // Blue in blue log masking parameter
  290. bmdDeckLinkFrameMetadataCintelFilmFrameRate = /* 'cffr' */ 0x63666672, // Film frame rate
  291. bmdDeckLinkFrameMetadataHDRDisplayPrimariesRedX = /* 'hdrx' */ 0x68647278, // Red display primaries in range 0.0 - 1.0
  292. bmdDeckLinkFrameMetadataHDRDisplayPrimariesRedY = /* 'hdry' */ 0x68647279, // Red display primaries in range 0.0 - 1.0
  293. bmdDeckLinkFrameMetadataHDRDisplayPrimariesGreenX = /* 'hdgx' */ 0x68646778, // Green display primaries in range 0.0 - 1.0
  294. bmdDeckLinkFrameMetadataHDRDisplayPrimariesGreenY = /* 'hdgy' */ 0x68646779, // Green display primaries in range 0.0 - 1.0
  295. bmdDeckLinkFrameMetadataHDRDisplayPrimariesBlueX = /* 'hdbx' */ 0x68646278, // Blue display primaries in range 0.0 - 1.0
  296. bmdDeckLinkFrameMetadataHDRDisplayPrimariesBlueY = /* 'hdby' */ 0x68646279, // Blue display primaries in range 0.0 - 1.0
  297. bmdDeckLinkFrameMetadataHDRWhitePointX = /* 'hdwx' */ 0x68647778, // White point in range 0.0 - 1.0
  298. bmdDeckLinkFrameMetadataHDRWhitePointY = /* 'hdwy' */ 0x68647779, // White point in range 0.0 - 1.0
  299. bmdDeckLinkFrameMetadataHDRMaxDisplayMasteringLuminance = /* 'hdml' */ 0x68646D6C, // Max display mastering luminance in range 1 cd/m2 - 65535 cd/m2
  300. bmdDeckLinkFrameMetadataHDRMinDisplayMasteringLuminance = /* 'hmil' */ 0x686D696C, // Min display mastering luminance in range 0.0001 cd/m2 - 6.5535 cd/m2
  301. bmdDeckLinkFrameMetadataHDRMaximumContentLightLevel = /* 'mcll' */ 0x6D636C6C, // Maximum Content Light Level in range 1 cd/m2 - 65535 cd/m2
  302. bmdDeckLinkFrameMetadataHDRMaximumFrameAverageLightLevel = /* 'fall' */ 0x66616C6C, // Maximum Frame Average Light Level in range 1 cd/m2 - 65535 cd/m2
  303. bmdDeckLinkFrameMetadataCintelOffsetToApplyHorizontal = /* 'otah' */ 0x6F746168, // Horizontal offset (pixels) to be applied to image
  304. bmdDeckLinkFrameMetadataCintelOffsetToApplyVertical = /* 'otav' */ 0x6F746176, // Vertical offset (pixels) to be applied to image
  305. bmdDeckLinkFrameMetadataCintelGainRed = /* 'LfRd' */ 0x4C665264, // Red gain parameter to apply after log
  306. bmdDeckLinkFrameMetadataCintelGainGreen = /* 'LfGr' */ 0x4C664772, // Green gain parameter to apply after log
  307. bmdDeckLinkFrameMetadataCintelGainBlue = /* 'LfBl' */ 0x4C66426C, // Blue gain parameter to apply after log
  308. bmdDeckLinkFrameMetadataCintelLiftRed = /* 'GnRd' */ 0x476E5264, // Red lift parameter to apply after log and gain
  309. bmdDeckLinkFrameMetadataCintelLiftGreen = /* 'GnGr' */ 0x476E4772, // Green lift parameter to apply after log and gain
  310. bmdDeckLinkFrameMetadataCintelLiftBlue = /* 'GnBl' */ 0x476E426C // Blue lift parameter to apply after log and gain
  311. } BMDDeckLinkFrameMetadataID;
  312. /* Enum BMDDuplexMode - Duplex for configurable ports */
  313. typedef [v1_enum] enum _BMDDuplexMode {
  314. bmdDuplexModeFull = /* 'fdup' */ 0x66647570,
  315. bmdDuplexModeHalf = /* 'hdup' */ 0x68647570
  316. } BMDDuplexMode;
  317. /* Enum BMDDeckLinkAttributeID - DeckLink Attribute ID */
  318. typedef [v1_enum] enum _BMDDeckLinkAttributeID {
  319. /* Flags */
  320. BMDDeckLinkSupportsInternalKeying = /* 'keyi' */ 0x6B657969,
  321. BMDDeckLinkSupportsExternalKeying = /* 'keye' */ 0x6B657965,
  322. BMDDeckLinkSupportsHDKeying = /* 'keyh' */ 0x6B657968,
  323. BMDDeckLinkSupportsInputFormatDetection = /* 'infd' */ 0x696E6664,
  324. BMDDeckLinkHasReferenceInput = /* 'hrin' */ 0x6872696E,
  325. BMDDeckLinkHasSerialPort = /* 'hspt' */ 0x68737074,
  326. BMDDeckLinkHasAnalogVideoOutputGain = /* 'avog' */ 0x61766F67,
  327. BMDDeckLinkCanOnlyAdjustOverallVideoOutputGain = /* 'ovog' */ 0x6F766F67,
  328. BMDDeckLinkHasVideoInputAntiAliasingFilter = /* 'aafl' */ 0x6161666C,
  329. BMDDeckLinkHasBypass = /* 'byps' */ 0x62797073,
  330. BMDDeckLinkSupportsClockTimingAdjustment = /* 'ctad' */ 0x63746164,
  331. BMDDeckLinkSupportsFullDuplex = /* 'fdup' */ 0x66647570,
  332. BMDDeckLinkSupportsFullFrameReferenceInputTimingOffset = /* 'frin' */ 0x6672696E,
  333. BMDDeckLinkSupportsSMPTELevelAOutput = /* 'lvla' */ 0x6C766C61,
  334. BMDDeckLinkSupportsDualLinkSDI = /* 'sdls' */ 0x73646C73,
  335. BMDDeckLinkSupportsQuadLinkSDI = /* 'sqls' */ 0x73716C73,
  336. BMDDeckLinkSupportsIdleOutput = /* 'idou' */ 0x69646F75,
  337. BMDDeckLinkHasLTCTimecodeInput = /* 'hltc' */ 0x686C7463,
  338. BMDDeckLinkSupportsDuplexModeConfiguration = /* 'dupx' */ 0x64757078,
  339. BMDDeckLinkSupportsHDRMetadata = /* 'hdrm' */ 0x6864726D,
  340. BMDDeckLinkSupportsColorspaceMetadata = /* 'cmet' */ 0x636D6574,
  341. /* Integers */
  342. BMDDeckLinkMaximumAudioChannels = /* 'mach' */ 0x6D616368,
  343. BMDDeckLinkMaximumAnalogAudioInputChannels = /* 'iach' */ 0x69616368,
  344. BMDDeckLinkMaximumAnalogAudioOutputChannels = /* 'aach' */ 0x61616368,
  345. BMDDeckLinkNumberOfSubDevices = /* 'nsbd' */ 0x6E736264,
  346. BMDDeckLinkSubDeviceIndex = /* 'subi' */ 0x73756269,
  347. BMDDeckLinkPersistentID = /* 'peid' */ 0x70656964,
  348. BMDDeckLinkDeviceGroupID = /* 'dgid' */ 0x64676964,
  349. BMDDeckLinkTopologicalID = /* 'toid' */ 0x746F6964,
  350. BMDDeckLinkVideoOutputConnections = /* 'vocn' */ 0x766F636E, // Returns a BMDVideoConnection bit field
  351. BMDDeckLinkVideoInputConnections = /* 'vicn' */ 0x7669636E, // Returns a BMDVideoConnection bit field
  352. BMDDeckLinkAudioOutputConnections = /* 'aocn' */ 0x616F636E, // Returns a BMDAudioConnection bit field
  353. BMDDeckLinkAudioInputConnections = /* 'aicn' */ 0x6169636E, // Returns a BMDAudioConnection bit field
  354. BMDDeckLinkVideoIOSupport = /* 'vios' */ 0x76696F73, // Returns a BMDVideoIOSupport bit field
  355. BMDDeckLinkDeckControlConnections = /* 'dccn' */ 0x6463636E, // Returns a BMDDeckControlConnection bit field
  356. BMDDeckLinkDeviceInterface = /* 'dbus' */ 0x64627573, // Returns a BMDDeviceInterface
  357. BMDDeckLinkAudioInputRCAChannelCount = /* 'airc' */ 0x61697263,
  358. BMDDeckLinkAudioInputXLRChannelCount = /* 'aixc' */ 0x61697863,
  359. BMDDeckLinkAudioOutputRCAChannelCount = /* 'aorc' */ 0x616F7263,
  360. BMDDeckLinkAudioOutputXLRChannelCount = /* 'aoxc' */ 0x616F7863,
  361. BMDDeckLinkPairedDevicePersistentID = /* 'ppid' */ 0x70706964,
  362. /* Floats */
  363. BMDDeckLinkVideoInputGainMinimum = /* 'vigm' */ 0x7669676D,
  364. BMDDeckLinkVideoInputGainMaximum = /* 'vigx' */ 0x76696778,
  365. BMDDeckLinkVideoOutputGainMinimum = /* 'vogm' */ 0x766F676D,
  366. BMDDeckLinkVideoOutputGainMaximum = /* 'vogx' */ 0x766F6778,
  367. BMDDeckLinkMicrophoneInputGainMinimum = /* 'migm' */ 0x6D69676D,
  368. BMDDeckLinkMicrophoneInputGainMaximum = /* 'migx' */ 0x6D696778,
  369. /* Strings */
  370. BMDDeckLinkSerialPortDeviceName = /* 'slpn' */ 0x736C706E,
  371. BMDDeckLinkVendorName = /* 'vndr' */ 0x766E6472,
  372. BMDDeckLinkDisplayName = /* 'dspn' */ 0x6473706E,
  373. BMDDeckLinkModelName = /* 'mdln' */ 0x6D646C6E,
  374. BMDDeckLinkDeviceHandle = /* 'devh' */ 0x64657668
  375. } BMDDeckLinkAttributeID;
  376. /* Enum BMDDeckLinkAPIInformationID - DeckLinkAPI information ID */
  377. typedef [v1_enum] enum _BMDDeckLinkAPIInformationID {
  378. BMDDeckLinkAPIVersion = /* 'vers' */ 0x76657273
  379. } BMDDeckLinkAPIInformationID;
  380. /* Enum BMDDeckLinkStatusID - DeckLink Status ID */
  381. typedef [v1_enum] enum _BMDDeckLinkStatusID {
  382. /* Integers */
  383. bmdDeckLinkStatusDetectedVideoInputMode = /* 'dvim' */ 0x6476696D,
  384. bmdDeckLinkStatusDetectedVideoInputFlags = /* 'dvif' */ 0x64766966,
  385. bmdDeckLinkStatusCurrentVideoInputMode = /* 'cvim' */ 0x6376696D,
  386. bmdDeckLinkStatusCurrentVideoInputPixelFormat = /* 'cvip' */ 0x63766970,
  387. bmdDeckLinkStatusCurrentVideoInputFlags = /* 'cvif' */ 0x63766966,
  388. bmdDeckLinkStatusCurrentVideoOutputMode = /* 'cvom' */ 0x63766F6D,
  389. bmdDeckLinkStatusCurrentVideoOutputFlags = /* 'cvof' */ 0x63766F66,
  390. bmdDeckLinkStatusPCIExpressLinkWidth = /* 'pwid' */ 0x70776964,
  391. bmdDeckLinkStatusPCIExpressLinkSpeed = /* 'plnk' */ 0x706C6E6B,
  392. bmdDeckLinkStatusLastVideoOutputPixelFormat = /* 'opix' */ 0x6F706978,
  393. bmdDeckLinkStatusReferenceSignalMode = /* 'refm' */ 0x7265666D,
  394. bmdDeckLinkStatusReferenceSignalFlags = /* 'reff' */ 0x72656666,
  395. bmdDeckLinkStatusDuplexMode = /* 'dupx' */ 0x64757078,
  396. bmdDeckLinkStatusBusy = /* 'busy' */ 0x62757379,
  397. bmdDeckLinkStatusInterchangeablePanelType = /* 'icpt' */ 0x69637074,
  398. bmdDeckLinkStatusDeviceTemperature = /* 'dtmp' */ 0x64746D70,
  399. /* Flags */
  400. bmdDeckLinkStatusVideoInputSignalLocked = /* 'visl' */ 0x7669736C,
  401. bmdDeckLinkStatusReferenceSignalLocked = /* 'refl' */ 0x7265666C,
  402. bmdDeckLinkStatusReceivedEDID = /* 'edid' */ 0x65646964
  403. } BMDDeckLinkStatusID;
  404. /* Enum BMDDeckLinkVideoStatusFlags - */
  405. typedef [v1_enum] enum _BMDDeckLinkVideoStatusFlags {
  406. bmdDeckLinkVideoStatusPsF = 1 << 0,
  407. bmdDeckLinkVideoStatusDualStream3D = 1 << 1
  408. } BMDDeckLinkVideoStatusFlags;
  409. /* Enum BMDDuplexStatus - Duplex status of the device */
  410. typedef [v1_enum] enum _BMDDuplexStatus {
  411. bmdDuplexStatusFullDuplex = /* 'fdup' */ 0x66647570,
  412. bmdDuplexStatusHalfDuplex = /* 'hdup' */ 0x68647570,
  413. bmdDuplexStatusSimplex = /* 'splx' */ 0x73706C78,
  414. bmdDuplexStatusInactive = /* 'inac' */ 0x696E6163
  415. } BMDDuplexStatus;
  416. /* Enum BMDPanelType - The type of interchangeable panel */
  417. typedef [v1_enum] enum _BMDPanelType {
  418. bmdPanelNotDetected = /* 'npnl' */ 0x6E706E6C,
  419. bmdPanelTeranexMiniSmartPanel = /* 'tmsm' */ 0x746D736D
  420. } BMDPanelType;
  421. /* Enum BMDDeviceBusyState - Current device busy state */
  422. [v1_enum] enum _BMDDeviceBusyState {
  423. bmdDeviceCaptureBusy = 1 << 0,
  424. bmdDevicePlaybackBusy = 1 << 1,
  425. bmdDeviceSerialPortBusy = 1 << 2
  426. };
  427. /* Enum BMDVideoIOSupport - Device video input/output support */
  428. typedef [v1_enum] enum _BMDVideoIOSupport {
  429. bmdDeviceSupportsCapture = 1 << 0,
  430. bmdDeviceSupportsPlayback = 1 << 1
  431. } BMDVideoIOSupport;
  432. /* Enum BMD3DPreviewFormat - Linked Frame preview format */
  433. typedef [v1_enum] enum _BMD3DPreviewFormat {
  434. bmd3DPreviewFormatDefault = /* 'defa' */ 0x64656661,
  435. bmd3DPreviewFormatLeftOnly = /* 'left' */ 0x6C656674,
  436. bmd3DPreviewFormatRightOnly = /* 'righ' */ 0x72696768,
  437. bmd3DPreviewFormatSideBySide = /* 'side' */ 0x73696465,
  438. bmd3DPreviewFormatTopBottom = /* 'topb' */ 0x746F7062
  439. } BMD3DPreviewFormat;
  440. /* Enum BMDNotifications - Events that can be subscribed through IDeckLinkNotification */
  441. typedef [v1_enum] enum _BMDNotifications {
  442. bmdPreferencesChanged = /* 'pref' */ 0x70726566,
  443. bmdStatusChanged = /* 'stat' */ 0x73746174
  444. } BMDNotifications;
  445. // Forward Declarations
  446. interface IDeckLinkVideoOutputCallback;
  447. interface IDeckLinkInputCallback;
  448. interface IDeckLinkEncoderInputCallback;
  449. interface IDeckLinkMemoryAllocator;
  450. interface IDeckLinkAudioOutputCallback;
  451. interface IDeckLinkIterator;
  452. interface IDeckLinkAPIInformation;
  453. interface IDeckLinkOutput;
  454. interface IDeckLinkInput;
  455. interface IDeckLinkHDMIInputEDID;
  456. interface IDeckLinkEncoderInput;
  457. interface IDeckLinkVideoFrame;
  458. interface IDeckLinkMutableVideoFrame;
  459. interface IDeckLinkVideoFrame3DExtensions;
  460. interface IDeckLinkVideoFrameMetadataExtensions;
  461. interface IDeckLinkVideoInputFrame;
  462. interface IDeckLinkAncillaryPacket;
  463. interface IDeckLinkAncillaryPacketIterator;
  464. interface IDeckLinkVideoFrameAncillaryPackets;
  465. interface IDeckLinkVideoFrameAncillary;
  466. interface IDeckLinkEncoderPacket;
  467. interface IDeckLinkEncoderVideoPacket;
  468. interface IDeckLinkEncoderAudioPacket;
  469. interface IDeckLinkH265NALPacket;
  470. interface IDeckLinkAudioInputPacket;
  471. interface IDeckLinkScreenPreviewCallback;
  472. interface IDeckLinkGLScreenPreviewHelper;
  473. interface IDeckLinkDX9ScreenPreviewHelper;
  474. interface IDeckLinkNotificationCallback;
  475. interface IDeckLinkNotification;
  476. interface IDeckLinkAttributes;
  477. interface IDeckLinkStatus;
  478. interface IDeckLinkKeyer;
  479. interface IDeckLinkVideoConversion;
  480. interface IDeckLinkDeviceNotificationCallback;
  481. interface IDeckLinkDiscovery;
  482. /* Interface IDeckLinkVideoOutputCallback - Frame completion callback. */
  483. [
  484. object,
  485. uuid(20AA5225-1958-47CB-820B-80A8D521A6EE),
  486. helpstring("Frame completion callback.")
  487. ] interface IDeckLinkVideoOutputCallback : IUnknown
  488. {
  489. HRESULT ScheduledFrameCompleted([in] IDeckLinkVideoFrame *completedFrame, [in] BMDOutputFrameCompletionResult result);
  490. HRESULT ScheduledPlaybackHasStopped(void);
  491. };
  492. /* Interface IDeckLinkInputCallback - Frame arrival callback. */
  493. [
  494. object,
  495. uuid(DD04E5EC-7415-42AB-AE4A-E80C4DFC044A),
  496. helpstring("Frame arrival callback.")
  497. ] interface IDeckLinkInputCallback : IUnknown
  498. {
  499. HRESULT VideoInputFormatChanged([in] BMDVideoInputFormatChangedEvents notificationEvents, [in] IDeckLinkDisplayMode *newDisplayMode, [in] BMDDetectedVideoInputFormatFlags detectedSignalFlags);
  500. HRESULT VideoInputFrameArrived([in] IDeckLinkVideoInputFrame* videoFrame, [in] IDeckLinkAudioInputPacket* audioPacket);
  501. };
  502. /* Interface IDeckLinkEncoderInputCallback - Frame arrival callback. */
  503. [
  504. object,
  505. uuid(ACF13E61-F4A0-4974-A6A7-59AFF6268B31),
  506. helpstring("Frame arrival callback.")
  507. ] interface IDeckLinkEncoderInputCallback : IUnknown
  508. {
  509. HRESULT VideoInputSignalChanged([in] BMDVideoInputFormatChangedEvents notificationEvents, [in] IDeckLinkDisplayMode *newDisplayMode, [in] BMDDetectedVideoInputFormatFlags detectedSignalFlags);
  510. HRESULT VideoPacketArrived([in] IDeckLinkEncoderVideoPacket* videoPacket);
  511. HRESULT AudioPacketArrived([in] IDeckLinkEncoderAudioPacket* audioPacket);
  512. };
  513. /* Interface IDeckLinkMemoryAllocator - Memory allocator for video frames. */
  514. [
  515. object,
  516. uuid(B36EB6E7-9D29-4AA8-92EF-843B87A289E8),
  517. local,
  518. helpstring("Memory allocator for video frames.")
  519. ] interface IDeckLinkMemoryAllocator : IUnknown
  520. {
  521. HRESULT AllocateBuffer([in] unsigned int bufferSize, [out] void **allocatedBuffer);
  522. HRESULT ReleaseBuffer([in] void *buffer);
  523. HRESULT Commit(void);
  524. HRESULT Decommit(void);
  525. };
  526. /* Interface IDeckLinkAudioOutputCallback - Optional callback to allow audio samples to be pulled as required. */
  527. [
  528. object,
  529. uuid(403C681B-7F46-4A12-B993-2BB127084EE6),
  530. local,
  531. helpstring("Optional callback to allow audio samples to be pulled as required.")
  532. ] interface IDeckLinkAudioOutputCallback : IUnknown
  533. {
  534. HRESULT RenderAudioSamples([in] BOOL preroll);
  535. };
  536. /* Interface IDeckLinkIterator - enumerates installed DeckLink hardware */
  537. [
  538. object,
  539. uuid(50FB36CD-3063-4B73-BDBB-958087F2D8BA),
  540. helpstring("enumerates installed DeckLink hardware")
  541. ] interface IDeckLinkIterator : IUnknown
  542. {
  543. HRESULT Next([out] IDeckLink **deckLinkInstance);
  544. };
  545. /* Interface IDeckLinkAPIInformation - DeckLinkAPI attribute interface */
  546. [
  547. object,
  548. uuid(7BEA3C68-730D-4322-AF34-8A7152B532A4),
  549. helpstring("DeckLinkAPI attribute interface")
  550. ] interface IDeckLinkAPIInformation : IUnknown
  551. {
  552. HRESULT GetFlag([in] BMDDeckLinkAPIInformationID cfgID, [out] BOOL *value);
  553. HRESULT GetInt([in] BMDDeckLinkAPIInformationID cfgID, [out] LONGLONG *value);
  554. HRESULT GetFloat([in] BMDDeckLinkAPIInformationID cfgID, [out] double *value);
  555. HRESULT GetString([in] BMDDeckLinkAPIInformationID cfgID, [out] BSTR *value);
  556. };
  557. /* Interface IDeckLinkOutput - Created by QueryInterface from IDeckLink. */
  558. [
  559. object,
  560. uuid(CC5C8A6E-3F2F-4B3A-87EA-FD78AF300564),
  561. local,
  562. helpstring("Created by QueryInterface from IDeckLink.")
  563. ] interface IDeckLinkOutput : IUnknown
  564. {
  565. HRESULT DoesSupportVideoMode([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoOutputFlags flags, [out] BMDDisplayModeSupport *result, [out] IDeckLinkDisplayMode **resultDisplayMode);
  566. HRESULT GetDisplayModeIterator([out] IDeckLinkDisplayModeIterator **iterator);
  567. HRESULT SetScreenPreviewCallback([in] IDeckLinkScreenPreviewCallback *previewCallback);
  568. /* Video Output */
  569. HRESULT EnableVideoOutput([in] BMDDisplayMode displayMode, [in] BMDVideoOutputFlags flags);
  570. HRESULT DisableVideoOutput(void);
  571. HRESULT SetVideoOutputFrameMemoryAllocator([in] IDeckLinkMemoryAllocator *theAllocator);
  572. HRESULT CreateVideoFrame([in] int width, [in] int height, [in] int rowBytes, [in] BMDPixelFormat pixelFormat, [in] BMDFrameFlags flags, [out] IDeckLinkMutableVideoFrame **outFrame);
  573. HRESULT CreateAncillaryData([in] BMDPixelFormat pixelFormat, [out] IDeckLinkVideoFrameAncillary **outBuffer); // Use of IDeckLinkVideoFrameAncillaryPackets is preferred
  574. HRESULT DisplayVideoFrameSync([in] IDeckLinkVideoFrame *theFrame);
  575. HRESULT ScheduleVideoFrame([in] IDeckLinkVideoFrame *theFrame, [in] BMDTimeValue displayTime, [in] BMDTimeValue displayDuration, [in] BMDTimeScale timeScale);
  576. HRESULT SetScheduledFrameCompletionCallback([in] IDeckLinkVideoOutputCallback *theCallback);
  577. HRESULT GetBufferedVideoFrameCount([out] unsigned int *bufferedFrameCount);
  578. /* Audio Output */
  579. HRESULT EnableAudioOutput([in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount, [in] BMDAudioOutputStreamType streamType);
  580. HRESULT DisableAudioOutput(void);
  581. HRESULT WriteAudioSamplesSync([in] void *buffer, [in] unsigned int sampleFrameCount, [out] unsigned int *sampleFramesWritten);
  582. HRESULT BeginAudioPreroll(void);
  583. HRESULT EndAudioPreroll(void);
  584. HRESULT ScheduleAudioSamples([in] void *buffer, [in] unsigned int sampleFrameCount, [in] BMDTimeValue streamTime, [in] BMDTimeScale timeScale, [out] unsigned int *sampleFramesWritten);
  585. HRESULT GetBufferedAudioSampleFrameCount([out] unsigned int *bufferedSampleFrameCount);
  586. HRESULT FlushBufferedAudioSamples(void);
  587. HRESULT SetAudioCallback([in] IDeckLinkAudioOutputCallback *theCallback);
  588. /* Output Control */
  589. HRESULT StartScheduledPlayback([in] BMDTimeValue playbackStartTime, [in] BMDTimeScale timeScale, [in] double playbackSpeed);
  590. HRESULT StopScheduledPlayback([in] BMDTimeValue stopPlaybackAtTime, [out] BMDTimeValue *actualStopTime, [in] BMDTimeScale timeScale);
  591. HRESULT IsScheduledPlaybackRunning([out] BOOL *active);
  592. HRESULT GetScheduledStreamTime([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *streamTime, [out] double *playbackSpeed);
  593. HRESULT GetReferenceStatus([out] BMDReferenceStatus *referenceStatus);
  594. /* Hardware Timing */
  595. HRESULT GetHardwareReferenceClock([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *hardwareTime, [out] BMDTimeValue *timeInFrame, [out] BMDTimeValue *ticksPerFrame);
  596. HRESULT GetFrameCompletionReferenceTimestamp([in] IDeckLinkVideoFrame *theFrame, [in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *frameCompletionTimestamp);
  597. };
  598. /* Interface IDeckLinkInput - Created by QueryInterface from IDeckLink. */
  599. [
  600. object,
  601. uuid(AF22762B-DFAC-4846-AA79-FA8883560995),
  602. helpstring("Created by QueryInterface from IDeckLink.")
  603. ] interface IDeckLinkInput : IUnknown
  604. {
  605. HRESULT DoesSupportVideoMode([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags, [out] BMDDisplayModeSupport *result, [out] IDeckLinkDisplayMode **resultDisplayMode);
  606. HRESULT GetDisplayModeIterator([out] IDeckLinkDisplayModeIterator **iterator);
  607. HRESULT SetScreenPreviewCallback([in] IDeckLinkScreenPreviewCallback *previewCallback);
  608. /* Video Input */
  609. HRESULT EnableVideoInput([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags);
  610. HRESULT DisableVideoInput(void);
  611. HRESULT GetAvailableVideoFrameCount([out] unsigned int *availableFrameCount);
  612. HRESULT SetVideoInputFrameMemoryAllocator([in] IDeckLinkMemoryAllocator *theAllocator);
  613. /* Audio Input */
  614. HRESULT EnableAudioInput([in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount);
  615. HRESULT DisableAudioInput(void);
  616. HRESULT GetAvailableAudioSampleFrameCount([out] unsigned int *availableSampleFrameCount);
  617. /* Input Control */
  618. HRESULT StartStreams(void);
  619. HRESULT StopStreams(void);
  620. HRESULT PauseStreams(void);
  621. HRESULT FlushStreams(void);
  622. HRESULT SetCallback([in] IDeckLinkInputCallback *theCallback);
  623. /* Hardware Timing */
  624. HRESULT GetHardwareReferenceClock([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *hardwareTime, [out] BMDTimeValue *timeInFrame, [out] BMDTimeValue *ticksPerFrame);
  625. };
  626. /* Interface IDeckLinkHDMIInputEDID - Created by QueryInterface from IDeckLink. Releasing all references will restore EDID to default */
  627. [
  628. object,
  629. uuid(ABBBACBC-45BC-4665-9D92-ACE6E5A97902),
  630. helpstring("Created by QueryInterface from IDeckLink. Releasing all references will restore EDID to default")
  631. ] interface IDeckLinkHDMIInputEDID : IUnknown
  632. {
  633. HRESULT SetInt([in] BMDDeckLinkHDMIInputEDIDID cfgID, [in] LONGLONG value);
  634. HRESULT GetInt([in] BMDDeckLinkHDMIInputEDIDID cfgID, [out] LONGLONG *value);
  635. HRESULT WriteToEDID(void);
  636. };
  637. /* Interface IDeckLinkEncoderInput - Created by QueryInterface from IDeckLink. */
  638. [
  639. object,
  640. uuid(270587DA-6B7D-42E7-A1F0-6D853F581185),
  641. helpstring("Created by QueryInterface from IDeckLink.")
  642. ] interface IDeckLinkEncoderInput : IUnknown
  643. {
  644. HRESULT DoesSupportVideoMode([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags, [out] BMDDisplayModeSupport *result, [out] IDeckLinkDisplayMode **resultDisplayMode);
  645. HRESULT GetDisplayModeIterator([out] IDeckLinkDisplayModeIterator **iterator);
  646. /* Video Input */
  647. HRESULT EnableVideoInput([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags);
  648. HRESULT DisableVideoInput(void);
  649. HRESULT GetAvailablePacketsCount([out] unsigned int *availablePacketsCount);
  650. HRESULT SetMemoryAllocator([in] IDeckLinkMemoryAllocator *theAllocator);
  651. /* Audio Input */
  652. HRESULT EnableAudioInput([in] BMDAudioFormat audioFormat, [in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount);
  653. HRESULT DisableAudioInput(void);
  654. HRESULT GetAvailableAudioSampleFrameCount([out] unsigned int *availableSampleFrameCount);
  655. /* Input Control */
  656. HRESULT StartStreams(void);
  657. HRESULT StopStreams(void);
  658. HRESULT PauseStreams(void);
  659. HRESULT FlushStreams(void);
  660. HRESULT SetCallback([in] IDeckLinkEncoderInputCallback *theCallback);
  661. /* Hardware Timing */
  662. HRESULT GetHardwareReferenceClock([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *hardwareTime, [out] BMDTimeValue *timeInFrame, [out] BMDTimeValue *ticksPerFrame);
  663. };
  664. /* Interface IDeckLinkVideoFrame - Interface to encapsulate a video frame; can be caller-implemented. */
  665. [
  666. object,
  667. uuid(3F716FE0-F023-4111-BE5D-EF4414C05B17),
  668. local,
  669. helpstring("Interface to encapsulate a video frame; can be caller-implemented.")
  670. ] interface IDeckLinkVideoFrame : IUnknown
  671. {
  672. long GetWidth(void);
  673. long GetHeight(void);
  674. long GetRowBytes(void);
  675. BMDPixelFormat GetPixelFormat(void);
  676. BMDFrameFlags GetFlags(void);
  677. HRESULT GetBytes([out] void **buffer);
  678. HRESULT GetTimecode([in] BMDTimecodeFormat format, [out] IDeckLinkTimecode **timecode);
  679. HRESULT GetAncillaryData([out] IDeckLinkVideoFrameAncillary **ancillary); // Use of IDeckLinkVideoFrameAncillaryPackets is preferred
  680. };
  681. /* Interface IDeckLinkMutableVideoFrame - Created by IDeckLinkOutput::CreateVideoFrame. */
  682. [
  683. object,
  684. uuid(69E2639F-40DA-4E19-B6F2-20ACE815C390),
  685. local,
  686. helpstring("Created by IDeckLinkOutput::CreateVideoFrame.")
  687. ] interface IDeckLinkMutableVideoFrame : IDeckLinkVideoFrame
  688. {
  689. HRESULT SetFlags([in] BMDFrameFlags newFlags);
  690. HRESULT SetTimecode([in] BMDTimecodeFormat format, [in] IDeckLinkTimecode *timecode);
  691. HRESULT SetTimecodeFromComponents([in] BMDTimecodeFormat format, [in] unsigned char hours, [in] unsigned char minutes, [in] unsigned char seconds, [in] unsigned char frames, [in] BMDTimecodeFlags flags);
  692. HRESULT SetAncillaryData([in] IDeckLinkVideoFrameAncillary *ancillary);
  693. HRESULT SetTimecodeUserBits([in] BMDTimecodeFormat format, [in] BMDTimecodeUserBits userBits);
  694. };
  695. /* Interface IDeckLinkVideoFrame3DExtensions - Optional interface implemented on IDeckLinkVideoFrame to support 3D frames */
  696. [
  697. object,
  698. uuid(DA0F7E4A-EDC7-48A8-9CDD-2DB51C729CD7),
  699. local,
  700. helpstring("Optional interface implemented on IDeckLinkVideoFrame to support 3D frames")
  701. ] interface IDeckLinkVideoFrame3DExtensions : IUnknown
  702. {
  703. BMDVideo3DPackingFormat Get3DPackingFormat(void);
  704. HRESULT GetFrameForRightEye([out] IDeckLinkVideoFrame* *rightEyeFrame);
  705. };
  706. /* Interface IDeckLinkVideoFrameMetadataExtensions - Optional interface implemented on IDeckLinkVideoFrame to support frame metadata such as HDMI HDR information */
  707. [
  708. object,
  709. uuid(D5973DC9-6432-46D0-8F0B-2496F8A1238F),
  710. local,
  711. helpstring("Optional interface implemented on IDeckLinkVideoFrame to support frame metadata such as HDMI HDR information")
  712. ] interface IDeckLinkVideoFrameMetadataExtensions : IUnknown
  713. {
  714. HRESULT GetInt([in] BMDDeckLinkFrameMetadataID metadataID, [out] LONGLONG *value);
  715. HRESULT GetFloat([in] BMDDeckLinkFrameMetadataID metadataID, [out] double *value);
  716. HRESULT GetFlag([in] BMDDeckLinkFrameMetadataID metadataID, [out] BOOL* value);
  717. HRESULT GetString([in] BMDDeckLinkFrameMetadataID metadataID, [out] BSTR *value);
  718. };
  719. /* Interface IDeckLinkVideoInputFrame - Provided by the IDeckLinkVideoInput frame arrival callback. */
  720. [
  721. object,
  722. uuid(05CFE374-537C-4094-9A57-680525118F44),
  723. local,
  724. helpstring("Provided by the IDeckLinkVideoInput frame arrival callback.")
  725. ] interface IDeckLinkVideoInputFrame : IDeckLinkVideoFrame
  726. {
  727. HRESULT GetStreamTime([out] BMDTimeValue *frameTime, [out] BMDTimeValue *frameDuration, [in] BMDTimeScale timeScale);
  728. HRESULT GetHardwareReferenceTimestamp([in] BMDTimeScale timeScale, [out] BMDTimeValue *frameTime, [out] BMDTimeValue *frameDuration);
  729. };
  730. /* Interface IDeckLinkAncillaryPacket - On output, user needs to implement this interface */
  731. [
  732. object,
  733. uuid(CC5BBF7E-029C-4D3B-9158-6000EF5E3670),
  734. helpstring("On output, user needs to implement this interface")
  735. ] interface IDeckLinkAncillaryPacket : IUnknown
  736. {
  737. HRESULT GetBytes([in] BMDAncillaryPacketFormat format /* For output, only one format need be offered */, [out] const void **data /* Optional */, [out] unsigned int *size /* Optional */);
  738. unsigned char GetDID(void);
  739. unsigned char GetSDID(void);
  740. unsigned int GetLineNumber(void); // On output, zero is auto
  741. unsigned char GetDataStreamIndex(void); // Usually zero. Can only be 1 if non-SD and the first data stream is completely full
  742. };
  743. /* Interface IDeckLinkAncillaryPacketIterator - Enumerates ancillary packets */
  744. [
  745. object,
  746. uuid(3FC8994B-88FB-4C17-968F-9AAB69D964A7),
  747. helpstring("Enumerates ancillary packets")
  748. ] interface IDeckLinkAncillaryPacketIterator : IUnknown
  749. {
  750. HRESULT Next([out] IDeckLinkAncillaryPacket **packet);
  751. };
  752. /* Interface IDeckLinkVideoFrameAncillaryPackets - Obtained through QueryInterface() on an IDeckLinkVideoFrame object. */
  753. [
  754. object,
  755. uuid(6C186C0F-459E-41D8-AEE2-4812D81AEE68),
  756. local,
  757. helpstring("Obtained through QueryInterface() on an IDeckLinkVideoFrame object.")
  758. ] interface IDeckLinkVideoFrameAncillaryPackets : IUnknown
  759. {
  760. HRESULT GetPacketIterator([out] IDeckLinkAncillaryPacketIterator **iterator);
  761. HRESULT GetFirstPacketByID([in] unsigned char DID, [in] unsigned char SDID, [out] IDeckLinkAncillaryPacket **packet);
  762. HRESULT AttachPacket([in] IDeckLinkAncillaryPacket *packet); // Implement IDeckLinkAncillaryPacket to output your own
  763. HRESULT DetachPacket([in] IDeckLinkAncillaryPacket *packet);
  764. HRESULT DetachAllPackets(void);
  765. };
  766. /* Interface IDeckLinkVideoFrameAncillary - Use of IDeckLinkVideoFrameAncillaryPackets is preferred. Obtained through QueryInterface() on an IDeckLinkVideoFrame object. */
  767. [
  768. object,
  769. uuid(732E723C-D1A4-4E29-9E8E-4A88797A0004),
  770. local,
  771. helpstring("Use of IDeckLinkVideoFrameAncillaryPackets is preferred. Obtained through QueryInterface() on an IDeckLinkVideoFrame object.")
  772. ] interface IDeckLinkVideoFrameAncillary : IUnknown
  773. {
  774. HRESULT GetBufferForVerticalBlankingLine([in] unsigned int lineNumber, [out] void **buffer); // Pixels/rowbytes is same as display mode, except for above HD where it's 1920 pixels for UHD modes and 2048 pixels for DCI modes
  775. BMDPixelFormat GetPixelFormat(void);
  776. BMDDisplayMode GetDisplayMode(void);
  777. };
  778. /* Interface IDeckLinkEncoderPacket - Interface to encapsulate an encoded packet. */
  779. [
  780. object,
  781. uuid(B693F36C-316E-4AF1-B6C2-F389A4BCA620),
  782. local,
  783. helpstring("Interface to encapsulate an encoded packet.")
  784. ] interface IDeckLinkEncoderPacket : IUnknown
  785. {
  786. HRESULT GetBytes([out] void **buffer);
  787. long GetSize(void);
  788. HRESULT GetStreamTime([out] BMDTimeValue *frameTime, [in] BMDTimeScale timeScale);
  789. BMDPacketType GetPacketType(void);
  790. };
  791. /* Interface IDeckLinkEncoderVideoPacket - Provided by the IDeckLinkEncoderInput video packet arrival callback. */
  792. [
  793. object,
  794. uuid(4E7FD944-E8C7-4EAC-B8C0-7B77F80F5AE0),
  795. local,
  796. helpstring("Provided by the IDeckLinkEncoderInput video packet arrival callback.")
  797. ] interface IDeckLinkEncoderVideoPacket : IDeckLinkEncoderPacket
  798. {
  799. BMDPixelFormat GetPixelFormat(void);
  800. HRESULT GetHardwareReferenceTimestamp([in] BMDTimeScale timeScale, [out] BMDTimeValue *frameTime, [out] BMDTimeValue *frameDuration);
  801. HRESULT GetTimecode([in] BMDTimecodeFormat format, [out] IDeckLinkTimecode **timecode);
  802. };
  803. /* Interface IDeckLinkEncoderAudioPacket - Provided by the IDeckLinkEncoderInput audio packet arrival callback. */
  804. [
  805. object,
  806. uuid(49E8EDC8-693B-4E14-8EF6-12C658F5A07A),
  807. local,
  808. helpstring("Provided by the IDeckLinkEncoderInput audio packet arrival callback.")
  809. ] interface IDeckLinkEncoderAudioPacket : IDeckLinkEncoderPacket
  810. {
  811. BMDAudioFormat GetAudioFormat(void);
  812. };
  813. /* Interface IDeckLinkH265NALPacket - Obtained through QueryInterface() on an IDeckLinkEncoderVideoPacket object */
  814. [
  815. object,
  816. uuid(639C8E0B-68D5-4BDE-A6D4-95F3AEAFF2E7),
  817. local,
  818. helpstring("Obtained through QueryInterface() on an IDeckLinkEncoderVideoPacket object")
  819. ] interface IDeckLinkH265NALPacket : IDeckLinkEncoderVideoPacket
  820. {
  821. HRESULT GetUnitType([out] unsigned char *unitType);
  822. HRESULT GetBytesNoPrefix([out] void **buffer);
  823. long GetSizeNoPrefix(void);
  824. };
  825. /* Interface IDeckLinkAudioInputPacket - Provided by the IDeckLinkInput callback. */
  826. [
  827. object,
  828. uuid(E43D5870-2894-11DE-8C30-0800200C9A66),
  829. local,
  830. helpstring("Provided by the IDeckLinkInput callback.")
  831. ] interface IDeckLinkAudioInputPacket : IUnknown
  832. {
  833. long GetSampleFrameCount(void);
  834. HRESULT GetBytes([out] void **buffer);
  835. HRESULT GetPacketTime([out] BMDTimeValue *packetTime, [in] BMDTimeScale timeScale);
  836. };
  837. /* Interface IDeckLinkScreenPreviewCallback - Screen preview callback */
  838. [
  839. object,
  840. uuid(B1D3F49A-85FE-4C5D-95C8-0B5D5DCCD438),
  841. local,
  842. helpstring("Screen preview callback")
  843. ] interface IDeckLinkScreenPreviewCallback : IUnknown
  844. {
  845. HRESULT DrawFrame([in] IDeckLinkVideoFrame *theFrame);
  846. };
  847. /* Interface IDeckLinkGLScreenPreviewHelper - Created with CoCreateInstance(). */
  848. [
  849. object,
  850. uuid(504E2209-CAC7-4C1A-9FB4-C5BB6274D22F),
  851. local,
  852. helpstring("Created with CoCreateInstance().")
  853. ] interface IDeckLinkGLScreenPreviewHelper : IUnknown
  854. {
  855. /* Methods must be called with OpenGL context set */
  856. HRESULT InitializeGL(void);
  857. HRESULT PaintGL(void);
  858. HRESULT SetFrame([in] IDeckLinkVideoFrame *theFrame);
  859. HRESULT Set3DPreviewFormat([in] BMD3DPreviewFormat previewFormat);
  860. };
  861. /* Interface IDeckLinkDX9ScreenPreviewHelper - Created with CoCreateInstance(). */
  862. [
  863. object,
  864. uuid(2094B522-D1A1-40C0-9AC7-1C012218EF02),
  865. local,
  866. helpstring("Created with CoCreateInstance().")
  867. ] interface IDeckLinkDX9ScreenPreviewHelper : IUnknown
  868. {
  869. HRESULT Initialize([in] void *device);
  870. HRESULT Render([in] RECT *rc);
  871. HRESULT SetFrame([in] IDeckLinkVideoFrame *theFrame);
  872. HRESULT Set3DPreviewFormat([in] BMD3DPreviewFormat previewFormat);
  873. };
  874. /* Interface IDeckLinkNotificationCallback - DeckLink Notification Callback Interface */
  875. [
  876. object,
  877. uuid(b002a1ec-070d-4288-8289-bd5d36e5ff0d),
  878. local,
  879. helpstring("DeckLink Notification Callback Interface")
  880. ] interface IDeckLinkNotificationCallback : IUnknown
  881. {
  882. HRESULT Notify([in] BMDNotifications topic, [in] ULONGLONG param1, [in] ULONGLONG param2);
  883. };
  884. /* Interface IDeckLinkNotification - DeckLink Notification interface */
  885. [
  886. object,
  887. uuid(0a1fb207-e215-441b-9b19-6fa1575946c5),
  888. local,
  889. helpstring("DeckLink Notification interface")
  890. ] interface IDeckLinkNotification : IUnknown
  891. {
  892. HRESULT Subscribe([in] BMDNotifications topic, [in] IDeckLinkNotificationCallback *theCallback);
  893. HRESULT Unsubscribe([in] BMDNotifications topic, [in] IDeckLinkNotificationCallback *theCallback);
  894. };
  895. /* Interface IDeckLinkAttributes - DeckLink Attribute interface */
  896. [
  897. object,
  898. uuid(ABC11843-D966-44CB-96E2-A1CB5D3135C4),
  899. local,
  900. helpstring("DeckLink Attribute interface")
  901. ] interface IDeckLinkAttributes : IUnknown
  902. {
  903. HRESULT GetFlag([in] BMDDeckLinkAttributeID cfgID, [out] BOOL *value);
  904. HRESULT GetInt([in] BMDDeckLinkAttributeID cfgID, [out] LONGLONG *value);
  905. HRESULT GetFloat([in] BMDDeckLinkAttributeID cfgID, [out] double *value);
  906. HRESULT GetString([in] BMDDeckLinkAttributeID cfgID, [out] BSTR *value);
  907. };
  908. /* Interface IDeckLinkStatus - DeckLink Status interface */
  909. [
  910. object,
  911. uuid(5F558200-4028-49BC-BEAC-DB3FA4A96E46),
  912. local,
  913. helpstring("DeckLink Status interface")
  914. ] interface IDeckLinkStatus : IUnknown
  915. {
  916. HRESULT GetFlag([in] BMDDeckLinkStatusID statusID, [out] BOOL *value);
  917. HRESULT GetInt([in] BMDDeckLinkStatusID statusID, [out] LONGLONG *value);
  918. HRESULT GetFloat([in] BMDDeckLinkStatusID statusID, [out] double *value);
  919. HRESULT GetString([in] BMDDeckLinkStatusID statusID, [out] BSTR *value);
  920. HRESULT GetBytes([in] BMDDeckLinkStatusID statusID, [out] void *buffer, [in, out] unsigned int *bufferSize);
  921. };
  922. /* Interface IDeckLinkKeyer - DeckLink Keyer interface */
  923. [
  924. object,
  925. uuid(89AFCAF5-65F8-421E-98F7-96FE5F5BFBA3),
  926. local,
  927. helpstring("DeckLink Keyer interface")
  928. ] interface IDeckLinkKeyer : IUnknown
  929. {
  930. HRESULT Enable([in] BOOL isExternal);
  931. HRESULT SetLevel([in] unsigned char level);
  932. HRESULT RampUp([in] unsigned int numberOfFrames);
  933. HRESULT RampDown([in] unsigned int numberOfFrames);
  934. HRESULT Disable(void);
  935. };
  936. /* Interface IDeckLinkVideoConversion - Created with CoCreateInstance(). */
  937. [
  938. object,
  939. uuid(3BBCB8A2-DA2C-42D9-B5D8-88083644E99A),
  940. local,
  941. helpstring("Created with CoCreateInstance().")
  942. ] interface IDeckLinkVideoConversion : IUnknown
  943. {
  944. HRESULT ConvertFrame([in] IDeckLinkVideoFrame* srcFrame, [in] IDeckLinkVideoFrame* dstFrame);
  945. };
  946. /* Interface IDeckLinkDeviceNotificationCallback - DeckLink device arrival/removal notification callbacks */
  947. [
  948. object,
  949. uuid(4997053B-0ADF-4CC8-AC70-7A50C4BE728F),
  950. helpstring("DeckLink device arrival/removal notification callbacks")
  951. ] interface IDeckLinkDeviceNotificationCallback : IUnknown
  952. {
  953. HRESULT DeckLinkDeviceArrived([in] IDeckLink* deckLinkDevice);
  954. HRESULT DeckLinkDeviceRemoved([in] IDeckLink* deckLinkDevice);
  955. };
  956. /* Interface IDeckLinkDiscovery - DeckLink device discovery */
  957. [
  958. object,
  959. uuid(CDBF631C-BC76-45FA-B44D-C55059BC6101),
  960. helpstring("DeckLink device discovery")
  961. ] interface IDeckLinkDiscovery : IUnknown
  962. {
  963. HRESULT InstallDeviceNotifications([in] IDeckLinkDeviceNotificationCallback* deviceNotificationCallback);
  964. HRESULT UninstallDeviceNotifications(void);
  965. };
  966. /* Coclasses */
  967. importlib("stdole2.tlb");
  968. [
  969. uuid(87D2693F-8D4A-45C7-B43F-10ACBA25E68F),
  970. helpstring("CDeckLinkIterator Class")
  971. ] coclass CDeckLinkIterator
  972. {
  973. [default] interface IDeckLinkIterator;
  974. };
  975. [
  976. uuid(263CA19F-ED09-482E-9F9D-84005783A237),
  977. helpstring("CDeckLinkAPIInformation Class")
  978. ] coclass CDeckLinkAPIInformation
  979. {
  980. [default] interface IDeckLinkAPIInformation;
  981. };
  982. [
  983. uuid(F63E77C7-B655-4A4A-9AD0-3CA85D394343),
  984. helpstring("CDeckLinkGLScreenPreviewHelper Class")
  985. ] coclass CDeckLinkGLScreenPreviewHelper
  986. {
  987. [default] interface IDeckLinkGLScreenPreviewHelper;
  988. };
  989. [
  990. uuid(CC010023-E01D-4525-9D59-80C8AB3DC7A0),
  991. helpstring("CDeckLinkDX9ScreenPreviewHelper Class")
  992. ] coclass CDeckLinkDX9ScreenPreviewHelper
  993. {
  994. [default] interface IDeckLinkDX9ScreenPreviewHelper;
  995. };
  996. [
  997. uuid(7DBBBB11-5B7B-467D-AEA4-CEA468FD368C),
  998. helpstring("CDeckLinkVideoConversion Class")
  999. ] coclass CDeckLinkVideoConversion
  1000. {
  1001. [default] interface IDeckLinkVideoConversion;
  1002. };
  1003. [
  1004. uuid(652615D4-26CD-4514-B161-2FD5072ED008),
  1005. helpstring("CDeckLinkDiscovery Class")
  1006. ] coclass CDeckLinkDiscovery
  1007. {
  1008. [default] interface IDeckLinkDiscovery;
  1009. };
  1010. [
  1011. uuid(F891AD29-D0C2-46E9-A926-4E2D0DD8CFAD),
  1012. helpstring("CDeckLinkVideoFrameAncillaryPackets Class")
  1013. ] coclass CDeckLinkVideoFrameAncillaryPackets
  1014. {
  1015. [default] interface IDeckLinkVideoFrameAncillaryPackets;
  1016. };
  1017. // import deprecated interfaces
  1018. #include "DeckLinkAPI_v10_9.idl"
  1019. #include "DeckLinkAPIStreaming_v10_8.idl"
  1020. #include "DeckLinkAPI_v10_8.idl"
  1021. #include "DeckLinkAPI_v10_6.idl"
  1022. #include "DeckLinkAPI_v10_5.idl"
  1023. #include "DeckLinkAPI_v10_4.idl"
  1024. #include "DeckLinkAPI_v10_2.idl"
  1025. #include "DeckLinkAPI_v9_9.idl"
  1026. #include "DeckLinkAPI_v9_2.idl"
  1027. #include "DeckLinkAPI_v8_1.idl"
  1028. #include "DeckLinkAPI_v8_0.idl"
  1029. #include "DeckLinkAPI_v7_9.idl"
  1030. #include "DeckLinkAPI_v7_6.idl"
  1031. #include "DeckLinkAPI_v7_3.idl"
  1032. #include "DeckLinkAPI_v7_1.idl"
  1033. };