DeckLinkAPI.idl 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327
  1. /* -LICENSE-START-
  2. ** Copyright (c) 2020 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. bmdVideoOutputSynchronizeToPlaybackGroup = 1 << 6
  72. } BMDVideoOutputFlags;
  73. /* Enum BMDSupportedVideoModeFlags - Flags to describe supported video modes */
  74. typedef [v1_enum] enum _BMDSupportedVideoModeFlags {
  75. bmdSupportedVideoModeDefault = 0,
  76. bmdSupportedVideoModeKeying = 1 << 0,
  77. bmdSupportedVideoModeDualStream3D = 1 << 1,
  78. bmdSupportedVideoModeSDISingleLink = 1 << 2,
  79. bmdSupportedVideoModeSDIDualLink = 1 << 3,
  80. bmdSupportedVideoModeSDIQuadLink = 1 << 4,
  81. bmdSupportedVideoModeInAnyProfile = 1 << 5
  82. } BMDSupportedVideoModeFlags;
  83. /* Enum BMDPacketType - Type of packet */
  84. typedef [v1_enum] enum _BMDPacketType {
  85. bmdPacketTypeStreamInterruptedMarker = /* 'sint' */ 0x73696E74, // A packet of this type marks the time when a video stream was interrupted, for example by a disconnected cable
  86. bmdPacketTypeStreamData = /* 'sdat' */ 0x73646174 // Regular stream data
  87. } BMDPacketType;
  88. /* Enum BMDFrameFlags - Frame flags */
  89. [v1_enum] enum _BMDFrameFlags {
  90. bmdFrameFlagDefault = 0,
  91. bmdFrameFlagFlipVertical = 1 << 0,
  92. bmdFrameContainsHDRMetadata = 1 << 1,
  93. /* Flags that are applicable only to instances of IDeckLinkVideoInputFrame */
  94. bmdFrameCapturedAsPsF = 1 << 30,
  95. bmdFrameHasNoInputSource = 1 << 31
  96. };
  97. /* Enum BMDVideoInputFlags - Flags applicable to video input */
  98. [v1_enum] enum _BMDVideoInputFlags {
  99. bmdVideoInputFlagDefault = 0,
  100. bmdVideoInputEnableFormatDetection = 1 << 0,
  101. bmdVideoInputDualStream3D = 1 << 1,
  102. bmdVideoInputSynchronizeToCaptureGroup = 1 << 2
  103. };
  104. /* Enum BMDVideoInputFormatChangedEvents - Bitmask passed to the VideoInputFormatChanged notification to identify the properties of the input signal that have changed */
  105. [v1_enum] enum _BMDVideoInputFormatChangedEvents {
  106. bmdVideoInputDisplayModeChanged = 1 << 0,
  107. bmdVideoInputFieldDominanceChanged = 1 << 1,
  108. bmdVideoInputColorspaceChanged = 1 << 2
  109. };
  110. /* Enum BMDDetectedVideoInputFormatFlags - Flags passed to the VideoInputFormatChanged notification to describe the detected video input signal */
  111. [v1_enum] enum _BMDDetectedVideoInputFormatFlags {
  112. bmdDetectedVideoInputYCbCr422 = 1 << 0,
  113. bmdDetectedVideoInputRGB444 = 1 << 1,
  114. bmdDetectedVideoInputDualStream3D = 1 << 2,
  115. bmdDetectedVideoInput12BitDepth = 1 << 3,
  116. bmdDetectedVideoInput10BitDepth = 1 << 4,
  117. bmdDetectedVideoInput8BitDepth = 1 << 5
  118. };
  119. /* Enum BMDDeckLinkCapturePassthroughMode - Enumerates whether the video output is electrically connected to the video input or if the clean switching mode is enabled */
  120. [v1_enum] enum _BMDDeckLinkCapturePassthroughMode {
  121. bmdDeckLinkCapturePassthroughModeDisabled = /* 'pdis' */ 0x70646973,
  122. bmdDeckLinkCapturePassthroughModeDirect = /* 'pdir' */ 0x70646972,
  123. bmdDeckLinkCapturePassthroughModeCleanSwitch = /* 'pcln' */ 0x70636C6E
  124. };
  125. /* Enum BMDOutputFrameCompletionResult - Frame Completion Callback */
  126. typedef [v1_enum] enum _BMDOutputFrameCompletionResult {
  127. bmdOutputFrameCompleted,
  128. bmdOutputFrameDisplayedLate,
  129. bmdOutputFrameDropped,
  130. bmdOutputFrameFlushed
  131. } BMDOutputFrameCompletionResult;
  132. /* Enum BMDReferenceStatus - GenLock input status */
  133. typedef [v1_enum] enum _BMDReferenceStatus {
  134. bmdReferenceNotSupportedByHardware = 1 << 0,
  135. bmdReferenceLocked = 1 << 1
  136. } BMDReferenceStatus;
  137. /* Enum BMDAudioFormat - Audio Format */
  138. typedef [v1_enum] enum _BMDAudioFormat {
  139. bmdAudioFormatPCM = /* 'lpcm' */ 0x6C70636D // Linear signed PCM samples
  140. } BMDAudioFormat;
  141. /* Enum BMDAudioSampleRate - Audio sample rates supported for output/input */
  142. typedef [v1_enum] enum _BMDAudioSampleRate {
  143. bmdAudioSampleRate48kHz = 48000
  144. } BMDAudioSampleRate;
  145. /* Enum BMDAudioSampleType - Audio sample sizes supported for output/input */
  146. typedef [v1_enum] enum _BMDAudioSampleType {
  147. bmdAudioSampleType16bitInteger = 16,
  148. bmdAudioSampleType32bitInteger = 32
  149. } BMDAudioSampleType;
  150. /* Enum BMDAudioOutputStreamType - Audio output stream type */
  151. typedef [v1_enum] enum _BMDAudioOutputStreamType {
  152. bmdAudioOutputStreamContinuous,
  153. bmdAudioOutputStreamContinuousDontResample,
  154. bmdAudioOutputStreamTimestamped
  155. } BMDAudioOutputStreamType;
  156. /* Enum BMDAncillaryPacketFormat - Ancillary packet format */
  157. typedef [v1_enum] enum _BMDAncillaryPacketFormat {
  158. bmdAncillaryPacketFormatUInt8 = /* 'ui08' */ 0x75693038,
  159. bmdAncillaryPacketFormatUInt16 = /* 'ui16' */ 0x75693136,
  160. bmdAncillaryPacketFormatYCbCr10 = /* 'v210' */ 0x76323130
  161. } BMDAncillaryPacketFormat;
  162. /* Enum BMDTimecodeFormat - Timecode formats for frame metadata */
  163. typedef [v1_enum] enum _BMDTimecodeFormat {
  164. bmdTimecodeRP188VITC1 = /* 'rpv1' */ 0x72707631, // RP188 timecode where DBB1 equals VITC1 (line 9)
  165. bmdTimecodeRP188VITC2 = /* 'rp12' */ 0x72703132, // RP188 timecode where DBB1 equals VITC2 (line 9 for progressive or line 571 for interlaced/PsF)
  166. bmdTimecodeRP188LTC = /* 'rplt' */ 0x72706C74, // RP188 timecode where DBB1 equals LTC (line 10)
  167. bmdTimecodeRP188HighFrameRate = /* 'rphr' */ 0x72706872, // RP188 timecode where DBB1 is an HFRTC (SMPTE ST 12-3), the only timecode allowing the frame value to go above 30
  168. bmdTimecodeRP188Any = /* 'rp18' */ 0x72703138, // Convenience for capture, returning the first valid timecode in {HFRTC (if supported), VITC1, LTC, VITC2}
  169. bmdTimecodeVITC = /* 'vitc' */ 0x76697463,
  170. bmdTimecodeVITCField2 = /* 'vit2' */ 0x76697432,
  171. bmdTimecodeSerial = /* 'seri' */ 0x73657269
  172. } BMDTimecodeFormat;
  173. /* Enum BMDAnalogVideoFlags - Analog video display flags */
  174. [v1_enum] enum _BMDAnalogVideoFlags {
  175. bmdAnalogVideoFlagCompositeSetup75 = 1 << 0,
  176. bmdAnalogVideoFlagComponentBetacamLevels = 1 << 1
  177. };
  178. /* Enum BMDAudioOutputAnalogAESSwitch - Audio output Analog/AESEBU switch */
  179. typedef [v1_enum] enum _BMDAudioOutputAnalogAESSwitch {
  180. bmdAudioOutputSwitchAESEBU = /* 'aes ' */ 0x61657320,
  181. bmdAudioOutputSwitchAnalog = /* 'anlg' */ 0x616E6C67
  182. } BMDAudioOutputAnalogAESSwitch;
  183. /* Enum BMDVideoOutputConversionMode - Video/audio conversion mode */
  184. typedef [v1_enum] enum _BMDVideoOutputConversionMode {
  185. bmdNoVideoOutputConversion = /* 'none' */ 0x6E6F6E65,
  186. bmdVideoOutputLetterboxDownconversion = /* 'ltbx' */ 0x6C746278,
  187. bmdVideoOutputAnamorphicDownconversion = /* 'amph' */ 0x616D7068,
  188. bmdVideoOutputHD720toHD1080Conversion = /* '720c' */ 0x37323063,
  189. bmdVideoOutputHardwareLetterboxDownconversion = /* 'HWlb' */ 0x48576C62,
  190. bmdVideoOutputHardwareAnamorphicDownconversion = /* 'HWam' */ 0x4857616D,
  191. bmdVideoOutputHardwareCenterCutDownconversion = /* 'HWcc' */ 0x48576363,
  192. bmdVideoOutputHardware720p1080pCrossconversion = /* 'xcap' */ 0x78636170,
  193. bmdVideoOutputHardwareAnamorphic720pUpconversion = /* 'ua7p' */ 0x75613770,
  194. bmdVideoOutputHardwareAnamorphic1080iUpconversion = /* 'ua1i' */ 0x75613169,
  195. bmdVideoOutputHardwareAnamorphic149To720pUpconversion = /* 'u47p' */ 0x75343770,
  196. bmdVideoOutputHardwareAnamorphic149To1080iUpconversion = /* 'u41i' */ 0x75343169,
  197. bmdVideoOutputHardwarePillarbox720pUpconversion = /* 'up7p' */ 0x75703770,
  198. bmdVideoOutputHardwarePillarbox1080iUpconversion = /* 'up1i' */ 0x75703169
  199. } BMDVideoOutputConversionMode;
  200. /* Enum BMDVideoInputConversionMode - Video input conversion mode */
  201. typedef [v1_enum] enum _BMDVideoInputConversionMode {
  202. bmdNoVideoInputConversion = /* 'none' */ 0x6E6F6E65,
  203. bmdVideoInputLetterboxDownconversionFromHD1080 = /* '10lb' */ 0x31306C62,
  204. bmdVideoInputAnamorphicDownconversionFromHD1080 = /* '10am' */ 0x3130616D,
  205. bmdVideoInputLetterboxDownconversionFromHD720 = /* '72lb' */ 0x37326C62,
  206. bmdVideoInputAnamorphicDownconversionFromHD720 = /* '72am' */ 0x3732616D,
  207. bmdVideoInputLetterboxUpconversion = /* 'lbup' */ 0x6C627570,
  208. bmdVideoInputAnamorphicUpconversion = /* 'amup' */ 0x616D7570
  209. } BMDVideoInputConversionMode;
  210. /* Enum BMDVideo3DPackingFormat - Video 3D packing format */
  211. typedef [v1_enum] enum _BMDVideo3DPackingFormat {
  212. bmdVideo3DPackingSidebySideHalf = /* 'sbsh' */ 0x73627368,
  213. bmdVideo3DPackingLinebyLine = /* 'lbyl' */ 0x6C62796C,
  214. bmdVideo3DPackingTopAndBottom = /* 'tabo' */ 0x7461626F,
  215. bmdVideo3DPackingFramePacking = /* 'frpk' */ 0x6672706B,
  216. bmdVideo3DPackingLeftOnly = /* 'left' */ 0x6C656674,
  217. bmdVideo3DPackingRightOnly = /* 'righ' */ 0x72696768
  218. } BMDVideo3DPackingFormat;
  219. /* Enum BMDIdleVideoOutputOperation - Video output operation when not playing video */
  220. typedef [v1_enum] enum _BMDIdleVideoOutputOperation {
  221. bmdIdleVideoOutputBlack = /* 'blac' */ 0x626C6163,
  222. bmdIdleVideoOutputLastFrame = /* 'lafa' */ 0x6C616661
  223. } BMDIdleVideoOutputOperation;
  224. /* Enum BMDVideoEncoderFrameCodingMode - Video frame coding mode */
  225. typedef [v1_enum] enum _BMDVideoEncoderFrameCodingMode {
  226. bmdVideoEncoderFrameCodingModeInter = /* 'inte' */ 0x696E7465,
  227. bmdVideoEncoderFrameCodingModeIntra = /* 'intr' */ 0x696E7472
  228. } BMDVideoEncoderFrameCodingMode;
  229. /* Enum BMDDNxHRLevel - DNxHR Levels */
  230. typedef [v1_enum] enum _BMDDNxHRLevel {
  231. bmdDNxHRLevelSQ = /* 'dnsq' */ 0x646E7371,
  232. bmdDNxHRLevelLB = /* 'dnlb' */ 0x646E6C62,
  233. bmdDNxHRLevelHQ = /* 'dnhq' */ 0x646E6871,
  234. bmdDNxHRLevelHQX = /* 'dhqx' */ 0x64687178,
  235. bmdDNxHRLevel444 = /* 'd444' */ 0x64343434
  236. } BMDDNxHRLevel;
  237. /* Enum BMDLinkConfiguration - Video link configuration */
  238. typedef [v1_enum] enum _BMDLinkConfiguration {
  239. bmdLinkConfigurationSingleLink = /* 'lcsl' */ 0x6C63736C,
  240. bmdLinkConfigurationDualLink = /* 'lcdl' */ 0x6C63646C,
  241. bmdLinkConfigurationQuadLink = /* 'lcql' */ 0x6C63716C
  242. } BMDLinkConfiguration;
  243. /* Enum BMDDeviceInterface - Device interface type */
  244. typedef [v1_enum] enum _BMDDeviceInterface {
  245. bmdDeviceInterfacePCI = /* 'pci ' */ 0x70636920,
  246. bmdDeviceInterfaceUSB = /* 'usb ' */ 0x75736220,
  247. bmdDeviceInterfaceThunderbolt = /* 'thun' */ 0x7468756E
  248. } BMDDeviceInterface;
  249. /* Enum BMDColorspace - Colorspace */
  250. typedef [v1_enum] enum _BMDColorspace {
  251. bmdColorspaceRec601 = /* 'r601' */ 0x72363031,
  252. bmdColorspaceRec709 = /* 'r709' */ 0x72373039,
  253. bmdColorspaceRec2020 = /* '2020' */ 0x32303230
  254. } BMDColorspace;
  255. /* Enum BMDDynamicRange - SDR or HDR */
  256. typedef [v1_enum] enum _BMDDynamicRange {
  257. bmdDynamicRangeSDR = 0, // Standard Dynamic Range in accordance with SMPTE ST 2036-1
  258. bmdDynamicRangeHDRStaticPQ = 1 << 29, // High Dynamic Range PQ in accordance with SMPTE ST 2084
  259. bmdDynamicRangeHDRStaticHLG = 1 << 30 // High Dynamic Range HLG in accordance with ITU-R BT.2100-0
  260. } BMDDynamicRange;
  261. /* Enum BMDDeckLinkHDMIInputEDIDID - DeckLink HDMI Input EDID ID */
  262. typedef [v1_enum] enum _BMDDeckLinkHDMIInputEDIDID {
  263. /* Integers */
  264. bmdDeckLinkHDMIInputEDIDDynamicRange = /* 'HIDy' */ 0x48494479 // Parameter is of type BMDDynamicRange. Default is (bmdDynamicRangeSDR|bmdDynamicRangeHDRStaticPQ)
  265. } BMDDeckLinkHDMIInputEDIDID;
  266. /* Enum BMDDeckLinkFrameMetadataID - DeckLink Frame Metadata ID */
  267. typedef [v1_enum] enum _BMDDeckLinkFrameMetadataID {
  268. /* Colorspace Metadata - Integers */
  269. bmdDeckLinkFrameMetadataColorspace = /* 'cspc' */ 0x63737063, // Colorspace of video frame (see BMDColorspace)
  270. /* HDR Metadata - Integers */
  271. bmdDeckLinkFrameMetadataHDRElectroOpticalTransferFunc = /* 'eotf' */ 0x656F7466, // EOTF in range 0-7 as per CEA 861.3
  272. /* HDR Metadata - Floats */
  273. bmdDeckLinkFrameMetadataHDRDisplayPrimariesRedX = /* 'hdrx' */ 0x68647278, // Red display primaries in range 0.0 - 1.0
  274. bmdDeckLinkFrameMetadataHDRDisplayPrimariesRedY = /* 'hdry' */ 0x68647279, // Red display primaries in range 0.0 - 1.0
  275. bmdDeckLinkFrameMetadataHDRDisplayPrimariesGreenX = /* 'hdgx' */ 0x68646778, // Green display primaries in range 0.0 - 1.0
  276. bmdDeckLinkFrameMetadataHDRDisplayPrimariesGreenY = /* 'hdgy' */ 0x68646779, // Green display primaries in range 0.0 - 1.0
  277. bmdDeckLinkFrameMetadataHDRDisplayPrimariesBlueX = /* 'hdbx' */ 0x68646278, // Blue display primaries in range 0.0 - 1.0
  278. bmdDeckLinkFrameMetadataHDRDisplayPrimariesBlueY = /* 'hdby' */ 0x68646279, // Blue display primaries in range 0.0 - 1.0
  279. bmdDeckLinkFrameMetadataHDRWhitePointX = /* 'hdwx' */ 0x68647778, // White point in range 0.0 - 1.0
  280. bmdDeckLinkFrameMetadataHDRWhitePointY = /* 'hdwy' */ 0x68647779, // White point in range 0.0 - 1.0
  281. bmdDeckLinkFrameMetadataHDRMaxDisplayMasteringLuminance = /* 'hdml' */ 0x68646D6C, // Max display mastering luminance in range 1 cd/m2 - 65535 cd/m2
  282. bmdDeckLinkFrameMetadataHDRMinDisplayMasteringLuminance = /* 'hmil' */ 0x686D696C, // Min display mastering luminance in range 0.0001 cd/m2 - 6.5535 cd/m2
  283. bmdDeckLinkFrameMetadataHDRMaximumContentLightLevel = /* 'mcll' */ 0x6D636C6C, // Maximum Content Light Level in range 1 cd/m2 - 65535 cd/m2
  284. bmdDeckLinkFrameMetadataHDRMaximumFrameAverageLightLevel = /* 'fall' */ 0x66616C6C // Maximum Frame Average Light Level in range 1 cd/m2 - 65535 cd/m2
  285. } BMDDeckLinkFrameMetadataID;
  286. /* Enum BMDProfileID - Identifies a profile */
  287. typedef [v1_enum] enum _BMDProfileID {
  288. bmdProfileOneSubDeviceFullDuplex = /* '1dfd' */ 0x31646664,
  289. bmdProfileOneSubDeviceHalfDuplex = /* '1dhd' */ 0x31646864,
  290. bmdProfileTwoSubDevicesFullDuplex = /* '2dfd' */ 0x32646664,
  291. bmdProfileTwoSubDevicesHalfDuplex = /* '2dhd' */ 0x32646864,
  292. bmdProfileFourSubDevicesHalfDuplex = /* '4dhd' */ 0x34646864
  293. } BMDProfileID;
  294. /* Enum BMDHDMITimecodePacking - Packing form of timecode on HDMI */
  295. typedef [v1_enum] enum _BMDHDMITimecodePacking {
  296. bmdHDMITimecodePackingIEEEOUI000085 = 0x00008500,
  297. bmdHDMITimecodePackingIEEEOUI080046 = 0x08004601,
  298. bmdHDMITimecodePackingIEEEOUI5CF9F0 = 0x5CF9F003
  299. } BMDHDMITimecodePacking;
  300. /* Enum BMDInternalKeyingAncillaryDataSource - Source for VANC and timecode data when performing internal keying */
  301. typedef [v1_enum] enum _BMDInternalKeyingAncillaryDataSource {
  302. bmdInternalKeyingUsesAncillaryDataFromInputSignal = /* 'ikai' */ 0x696B6169,
  303. bmdInternalKeyingUsesAncillaryDataFromKeyFrame = /* 'ikak' */ 0x696B616B
  304. } BMDInternalKeyingAncillaryDataSource;
  305. /* Enum BMDDeckLinkAttributeID - DeckLink Attribute ID */
  306. typedef [v1_enum] enum _BMDDeckLinkAttributeID {
  307. /* Flags */
  308. BMDDeckLinkSupportsInternalKeying = /* 'keyi' */ 0x6B657969,
  309. BMDDeckLinkSupportsExternalKeying = /* 'keye' */ 0x6B657965,
  310. BMDDeckLinkSupportsInputFormatDetection = /* 'infd' */ 0x696E6664,
  311. BMDDeckLinkHasReferenceInput = /* 'hrin' */ 0x6872696E,
  312. BMDDeckLinkHasSerialPort = /* 'hspt' */ 0x68737074,
  313. BMDDeckLinkHasAnalogVideoOutputGain = /* 'avog' */ 0x61766F67,
  314. BMDDeckLinkCanOnlyAdjustOverallVideoOutputGain = /* 'ovog' */ 0x6F766F67,
  315. BMDDeckLinkHasVideoInputAntiAliasingFilter = /* 'aafl' */ 0x6161666C,
  316. BMDDeckLinkHasBypass = /* 'byps' */ 0x62797073,
  317. BMDDeckLinkSupportsClockTimingAdjustment = /* 'ctad' */ 0x63746164,
  318. BMDDeckLinkSupportsFullFrameReferenceInputTimingOffset = /* 'frin' */ 0x6672696E,
  319. BMDDeckLinkSupportsSMPTELevelAOutput = /* 'lvla' */ 0x6C766C61,
  320. BMDDeckLinkSupportsAutoSwitchingPPsFOnInput = /* 'apsf' */ 0x61707366,
  321. BMDDeckLinkSupportsDualLinkSDI = /* 'sdls' */ 0x73646C73,
  322. BMDDeckLinkSupportsQuadLinkSDI = /* 'sqls' */ 0x73716C73,
  323. BMDDeckLinkSupportsIdleOutput = /* 'idou' */ 0x69646F75,
  324. BMDDeckLinkVANCRequires10BitYUVVideoFrames = /* 'vioY' */ 0x76696F59, // Legacy product requires v210 active picture for IDeckLinkVideoFrameAncillaryPackets or 10-bit VANC
  325. BMDDeckLinkHasLTCTimecodeInput = /* 'hltc' */ 0x686C7463,
  326. BMDDeckLinkSupportsHDRMetadata = /* 'hdrm' */ 0x6864726D,
  327. BMDDeckLinkSupportsColorspaceMetadata = /* 'cmet' */ 0x636D6574,
  328. BMDDeckLinkSupportsHDMITimecode = /* 'htim' */ 0x6874696D,
  329. BMDDeckLinkSupportsHighFrameRateTimecode = /* 'HFRT' */ 0x48465254,
  330. BMDDeckLinkSupportsSynchronizeToCaptureGroup = /* 'stcg' */ 0x73746367,
  331. BMDDeckLinkSupportsSynchronizeToPlaybackGroup = /* 'stpg' */ 0x73747067,
  332. /* Integers */
  333. BMDDeckLinkMaximumAudioChannels = /* 'mach' */ 0x6D616368,
  334. BMDDeckLinkMaximumAnalogAudioInputChannels = /* 'iach' */ 0x69616368,
  335. BMDDeckLinkMaximumAnalogAudioOutputChannels = /* 'aach' */ 0x61616368,
  336. BMDDeckLinkNumberOfSubDevices = /* 'nsbd' */ 0x6E736264,
  337. BMDDeckLinkSubDeviceIndex = /* 'subi' */ 0x73756269,
  338. BMDDeckLinkPersistentID = /* 'peid' */ 0x70656964,
  339. BMDDeckLinkDeviceGroupID = /* 'dgid' */ 0x64676964,
  340. BMDDeckLinkTopologicalID = /* 'toid' */ 0x746F6964,
  341. BMDDeckLinkVideoOutputConnections = /* 'vocn' */ 0x766F636E, // Returns a BMDVideoConnection bit field
  342. BMDDeckLinkVideoInputConnections = /* 'vicn' */ 0x7669636E, // Returns a BMDVideoConnection bit field
  343. BMDDeckLinkAudioOutputConnections = /* 'aocn' */ 0x616F636E, // Returns a BMDAudioConnection bit field
  344. BMDDeckLinkAudioInputConnections = /* 'aicn' */ 0x6169636E, // Returns a BMDAudioConnection bit field
  345. BMDDeckLinkVideoIOSupport = /* 'vios' */ 0x76696F73, // Returns a BMDVideoIOSupport bit field
  346. BMDDeckLinkDeckControlConnections = /* 'dccn' */ 0x6463636E, // Returns a BMDDeckControlConnection bit field
  347. BMDDeckLinkDeviceInterface = /* 'dbus' */ 0x64627573, // Returns a BMDDeviceInterface
  348. BMDDeckLinkAudioInputRCAChannelCount = /* 'airc' */ 0x61697263,
  349. BMDDeckLinkAudioInputXLRChannelCount = /* 'aixc' */ 0x61697863,
  350. BMDDeckLinkAudioOutputRCAChannelCount = /* 'aorc' */ 0x616F7263,
  351. BMDDeckLinkAudioOutputXLRChannelCount = /* 'aoxc' */ 0x616F7863,
  352. BMDDeckLinkProfileID = /* 'prid' */ 0x70726964, // Returns a BMDProfileID
  353. BMDDeckLinkDuplex = /* 'dupx' */ 0x64757078,
  354. BMDDeckLinkMinimumPrerollFrames = /* 'mprf' */ 0x6D707266,
  355. BMDDeckLinkSupportedDynamicRange = /* 'sudr' */ 0x73756472,
  356. /* Floats */
  357. BMDDeckLinkVideoInputGainMinimum = /* 'vigm' */ 0x7669676D,
  358. BMDDeckLinkVideoInputGainMaximum = /* 'vigx' */ 0x76696778,
  359. BMDDeckLinkVideoOutputGainMinimum = /* 'vogm' */ 0x766F676D,
  360. BMDDeckLinkVideoOutputGainMaximum = /* 'vogx' */ 0x766F6778,
  361. BMDDeckLinkMicrophoneInputGainMinimum = /* 'migm' */ 0x6D69676D,
  362. BMDDeckLinkMicrophoneInputGainMaximum = /* 'migx' */ 0x6D696778,
  363. /* Strings */
  364. BMDDeckLinkSerialPortDeviceName = /* 'slpn' */ 0x736C706E,
  365. BMDDeckLinkVendorName = /* 'vndr' */ 0x766E6472,
  366. BMDDeckLinkDisplayName = /* 'dspn' */ 0x6473706E,
  367. BMDDeckLinkModelName = /* 'mdln' */ 0x6D646C6E,
  368. BMDDeckLinkDeviceHandle = /* 'devh' */ 0x64657668
  369. } BMDDeckLinkAttributeID;
  370. /* Enum BMDDeckLinkAPIInformationID - DeckLinkAPI information ID */
  371. typedef [v1_enum] enum _BMDDeckLinkAPIInformationID {
  372. /* Integer or String */
  373. BMDDeckLinkAPIVersion = /* 'vers' */ 0x76657273
  374. } BMDDeckLinkAPIInformationID;
  375. /* Enum BMDDeckLinkStatusID - DeckLink Status ID */
  376. typedef [v1_enum] enum _BMDDeckLinkStatusID {
  377. /* Integers */
  378. bmdDeckLinkStatusDetectedVideoInputMode = /* 'dvim' */ 0x6476696D,
  379. bmdDeckLinkStatusDetectedVideoInputFormatFlags = /* 'dvff' */ 0x64766666,
  380. bmdDeckLinkStatusDetectedVideoInputFieldDominance = /* 'dvfd' */ 0x64766664,
  381. bmdDeckLinkStatusDetectedVideoInputColorspace = /* 'dscl' */ 0x6473636C,
  382. bmdDeckLinkStatusDetectedVideoInputDynamicRange = /* 'dsdr' */ 0x64736472,
  383. bmdDeckLinkStatusDetectedSDILinkConfiguration = /* 'dslc' */ 0x64736C63,
  384. bmdDeckLinkStatusCurrentVideoInputMode = /* 'cvim' */ 0x6376696D,
  385. bmdDeckLinkStatusCurrentVideoInputPixelFormat = /* 'cvip' */ 0x63766970,
  386. bmdDeckLinkStatusCurrentVideoInputFlags = /* 'cvif' */ 0x63766966,
  387. bmdDeckLinkStatusCurrentVideoOutputMode = /* 'cvom' */ 0x63766F6D,
  388. bmdDeckLinkStatusCurrentVideoOutputFlags = /* 'cvof' */ 0x63766F66,
  389. bmdDeckLinkStatusPCIExpressLinkWidth = /* 'pwid' */ 0x70776964,
  390. bmdDeckLinkStatusPCIExpressLinkSpeed = /* 'plnk' */ 0x706C6E6B,
  391. bmdDeckLinkStatusLastVideoOutputPixelFormat = /* 'opix' */ 0x6F706978,
  392. bmdDeckLinkStatusReferenceSignalMode = /* 'refm' */ 0x7265666D,
  393. bmdDeckLinkStatusReferenceSignalFlags = /* 'reff' */ 0x72656666,
  394. bmdDeckLinkStatusBusy = /* 'busy' */ 0x62757379,
  395. bmdDeckLinkStatusInterchangeablePanelType = /* 'icpt' */ 0x69637074,
  396. bmdDeckLinkStatusDeviceTemperature = /* 'dtmp' */ 0x64746D70,
  397. /* Flags */
  398. bmdDeckLinkStatusVideoInputSignalLocked = /* 'visl' */ 0x7669736C,
  399. bmdDeckLinkStatusReferenceSignalLocked = /* 'refl' */ 0x7265666C,
  400. /* Bytes */
  401. bmdDeckLinkStatusReceivedEDID = /* 'edid' */ 0x65646964
  402. } BMDDeckLinkStatusID;
  403. /* Enum BMDDeckLinkVideoStatusFlags - */
  404. typedef [v1_enum] enum _BMDDeckLinkVideoStatusFlags {
  405. bmdDeckLinkVideoStatusPsF = 1 << 0,
  406. bmdDeckLinkVideoStatusDualStream3D = 1 << 1
  407. } BMDDeckLinkVideoStatusFlags;
  408. /* Enum BMDDuplexMode - Duplex of the device */
  409. typedef [v1_enum] enum _BMDDuplexMode {
  410. bmdDuplexFull = /* 'dxfu' */ 0x64786675,
  411. bmdDuplexHalf = /* 'dxha' */ 0x64786861,
  412. bmdDuplexSimplex = /* 'dxsp' */ 0x64787370,
  413. bmdDuplexInactive = /* 'dxin' */ 0x6478696E
  414. } BMDDuplexMode;
  415. /* Enum BMDPanelType - The type of interchangeable panel */
  416. typedef [v1_enum] enum _BMDPanelType {
  417. bmdPanelNotDetected = /* 'npnl' */ 0x6E706E6C,
  418. bmdPanelTeranexMiniSmartPanel = /* 'tmsm' */ 0x746D736D
  419. } BMDPanelType;
  420. /* Enum BMDDeviceBusyState - Current device busy state */
  421. [v1_enum] enum _BMDDeviceBusyState {
  422. bmdDeviceCaptureBusy = 1 << 0,
  423. bmdDevicePlaybackBusy = 1 << 1,
  424. bmdDeviceSerialPortBusy = 1 << 2
  425. };
  426. /* Enum BMDVideoIOSupport - Device video input/output support */
  427. typedef [v1_enum] enum _BMDVideoIOSupport {
  428. bmdDeviceSupportsCapture = 1 << 0,
  429. bmdDeviceSupportsPlayback = 1 << 1
  430. } BMDVideoIOSupport;
  431. /* Enum BMD3DPreviewFormat - Linked Frame preview format */
  432. typedef [v1_enum] enum _BMD3DPreviewFormat {
  433. bmd3DPreviewFormatDefault = /* 'defa' */ 0x64656661,
  434. bmd3DPreviewFormatLeftOnly = /* 'left' */ 0x6C656674,
  435. bmd3DPreviewFormatRightOnly = /* 'righ' */ 0x72696768,
  436. bmd3DPreviewFormatSideBySide = /* 'side' */ 0x73696465,
  437. bmd3DPreviewFormatTopBottom = /* 'topb' */ 0x746F7062
  438. } BMD3DPreviewFormat;
  439. /* Enum BMDNotifications - Events that can be subscribed through IDeckLinkNotification */
  440. typedef [v1_enum] enum _BMDNotifications {
  441. bmdPreferencesChanged = /* 'pref' */ 0x70726566,
  442. bmdStatusChanged = /* 'stat' */ 0x73746174
  443. } BMDNotifications;
  444. // Forward Declarations
  445. interface IDeckLinkVideoOutputCallback;
  446. interface IDeckLinkInputCallback;
  447. interface IDeckLinkEncoderInputCallback;
  448. interface IDeckLinkMemoryAllocator;
  449. interface IDeckLinkAudioOutputCallback;
  450. interface IDeckLinkIterator;
  451. interface IDeckLinkAPIInformation;
  452. interface IDeckLinkOutput;
  453. interface IDeckLinkInput;
  454. interface IDeckLinkHDMIInputEDID;
  455. interface IDeckLinkEncoderInput;
  456. interface IDeckLinkVideoFrame;
  457. interface IDeckLinkMutableVideoFrame;
  458. interface IDeckLinkVideoFrame3DExtensions;
  459. interface IDeckLinkVideoFrameMetadataExtensions;
  460. interface IDeckLinkVideoInputFrame;
  461. interface IDeckLinkAncillaryPacket;
  462. interface IDeckLinkAncillaryPacketIterator;
  463. interface IDeckLinkVideoFrameAncillaryPackets;
  464. interface IDeckLinkVideoFrameAncillary;
  465. interface IDeckLinkEncoderPacket;
  466. interface IDeckLinkEncoderVideoPacket;
  467. interface IDeckLinkEncoderAudioPacket;
  468. interface IDeckLinkH265NALPacket;
  469. interface IDeckLinkAudioInputPacket;
  470. interface IDeckLinkScreenPreviewCallback;
  471. interface IDeckLinkGLScreenPreviewHelper;
  472. interface IDeckLinkDX9ScreenPreviewHelper;
  473. interface IDeckLinkNotificationCallback;
  474. interface IDeckLinkNotification;
  475. interface IDeckLinkProfileAttributes;
  476. interface IDeckLinkProfileIterator;
  477. interface IDeckLinkProfile;
  478. interface IDeckLinkProfileCallback;
  479. interface IDeckLinkProfileManager;
  480. interface IDeckLinkStatus;
  481. interface IDeckLinkKeyer;
  482. interface IDeckLinkVideoConversion;
  483. interface IDeckLinkDeviceNotificationCallback;
  484. interface IDeckLinkDiscovery;
  485. /* Interface IDeckLinkVideoOutputCallback - Frame completion callback. */
  486. [
  487. object,
  488. uuid(20AA5225-1958-47CB-820B-80A8D521A6EE),
  489. helpstring("Frame completion callback.")
  490. ] interface IDeckLinkVideoOutputCallback : IUnknown
  491. {
  492. HRESULT ScheduledFrameCompleted ([in] IDeckLinkVideoFrame* completedFrame, [in] BMDOutputFrameCompletionResult result);
  493. HRESULT ScheduledPlaybackHasStopped (void);
  494. };
  495. /* Interface IDeckLinkInputCallback - Frame arrival callback. */
  496. [
  497. object,
  498. uuid(C6FCE4C9-C4E4-4047-82FB-5D238232A902),
  499. helpstring("Frame arrival callback.")
  500. ] interface IDeckLinkInputCallback : IUnknown
  501. {
  502. HRESULT VideoInputFormatChanged ([in] BMDVideoInputFormatChangedEvents notificationEvents, [in] IDeckLinkDisplayMode* newDisplayMode, [in] BMDDetectedVideoInputFormatFlags detectedSignalFlags);
  503. HRESULT VideoInputFrameArrived ([in] IDeckLinkVideoInputFrame* videoFrame, [in] IDeckLinkAudioInputPacket* audioPacket);
  504. };
  505. /* Interface IDeckLinkEncoderInputCallback - Frame arrival callback. */
  506. [
  507. object,
  508. uuid(ACF13E61-F4A0-4974-A6A7-59AFF6268B31),
  509. helpstring("Frame arrival callback.")
  510. ] interface IDeckLinkEncoderInputCallback : IUnknown
  511. {
  512. HRESULT VideoInputSignalChanged ([in] BMDVideoInputFormatChangedEvents notificationEvents, [in] IDeckLinkDisplayMode* newDisplayMode, [in] BMDDetectedVideoInputFormatFlags detectedSignalFlags);
  513. HRESULT VideoPacketArrived ([in] IDeckLinkEncoderVideoPacket* videoPacket);
  514. HRESULT AudioPacketArrived ([in] IDeckLinkEncoderAudioPacket* audioPacket);
  515. };
  516. /* Interface IDeckLinkMemoryAllocator - Memory allocator for video frames. */
  517. [
  518. object,
  519. uuid(B36EB6E7-9D29-4AA8-92EF-843B87A289E8),
  520. local,
  521. helpstring("Memory allocator for video frames.")
  522. ] interface IDeckLinkMemoryAllocator : IUnknown
  523. {
  524. HRESULT AllocateBuffer ([in] unsigned int bufferSize, [out] void** allocatedBuffer);
  525. HRESULT ReleaseBuffer ([in] void* buffer);
  526. HRESULT Commit (void);
  527. HRESULT Decommit (void);
  528. };
  529. /* Interface IDeckLinkAudioOutputCallback - Optional callback to allow audio samples to be pulled as required. */
  530. [
  531. object,
  532. uuid(403C681B-7F46-4A12-B993-2BB127084EE6),
  533. local,
  534. helpstring("Optional callback to allow audio samples to be pulled as required.")
  535. ] interface IDeckLinkAudioOutputCallback : IUnknown
  536. {
  537. HRESULT RenderAudioSamples ([in] BOOL preroll);
  538. };
  539. /* Interface IDeckLinkIterator - Enumerates installed DeckLink hardware */
  540. [
  541. object,
  542. uuid(50FB36CD-3063-4B73-BDBB-958087F2D8BA),
  543. helpstring("Enumerates installed DeckLink hardware")
  544. ] interface IDeckLinkIterator : IUnknown
  545. {
  546. HRESULT Next ([out] IDeckLink** deckLinkInstance);
  547. };
  548. /* Interface IDeckLinkAPIInformation - DeckLinkAPI attribute interface */
  549. [
  550. object,
  551. uuid(7BEA3C68-730D-4322-AF34-8A7152B532A4),
  552. helpstring("DeckLinkAPI attribute interface")
  553. ] interface IDeckLinkAPIInformation : IUnknown
  554. {
  555. HRESULT GetFlag ([in] BMDDeckLinkAPIInformationID cfgID, [out] BOOL* value);
  556. HRESULT GetInt ([in] BMDDeckLinkAPIInformationID cfgID, [out] LONGLONG* value);
  557. HRESULT GetFloat ([in] BMDDeckLinkAPIInformationID cfgID, [out] double* value);
  558. HRESULT GetString ([in] BMDDeckLinkAPIInformationID cfgID, [out] BSTR* value);
  559. };
  560. /* Interface IDeckLinkOutput - Created by QueryInterface from IDeckLink. */
  561. [
  562. object,
  563. uuid(BE2D9020-461E-442F-84B7-E949CB953B9D),
  564. local,
  565. helpstring("Created by QueryInterface from IDeckLink.")
  566. ] interface IDeckLinkOutput : IUnknown
  567. {
  568. HRESULT DoesSupportVideoMode ([in] BMDVideoConnection connection /* If a value of bmdVideoConnectionUnspecified is specified, the caller does not care about the connection */, [in] BMDDisplayMode requestedMode, [in] BMDPixelFormat requestedPixelFormat, [in] BMDVideoOutputConversionMode conversionMode, [in] BMDSupportedVideoModeFlags flags, [out] BMDDisplayMode* actualMode, [out] BOOL* supported);
  569. HRESULT GetDisplayMode ([in] BMDDisplayMode displayMode, [out] IDeckLinkDisplayMode** resultDisplayMode);
  570. HRESULT GetDisplayModeIterator ([out] IDeckLinkDisplayModeIterator** iterator);
  571. HRESULT SetScreenPreviewCallback ([in] IDeckLinkScreenPreviewCallback* previewCallback);
  572. /* Video Output */
  573. HRESULT EnableVideoOutput ([in] BMDDisplayMode displayMode, [in] BMDVideoOutputFlags flags);
  574. HRESULT DisableVideoOutput (void);
  575. HRESULT SetVideoOutputFrameMemoryAllocator ([in] IDeckLinkMemoryAllocator* theAllocator);
  576. HRESULT CreateVideoFrame ([in] int width, [in] int height, [in] int rowBytes, [in] BMDPixelFormat pixelFormat, [in] BMDFrameFlags flags, [out] IDeckLinkMutableVideoFrame** outFrame);
  577. HRESULT CreateAncillaryData ([in] BMDPixelFormat pixelFormat, [out] IDeckLinkVideoFrameAncillary** outBuffer); // Use of IDeckLinkVideoFrameAncillaryPackets is preferred
  578. HRESULT DisplayVideoFrameSync ([in] IDeckLinkVideoFrame* theFrame);
  579. HRESULT ScheduleVideoFrame ([in] IDeckLinkVideoFrame* theFrame, [in] BMDTimeValue displayTime, [in] BMDTimeValue displayDuration, [in] BMDTimeScale timeScale);
  580. HRESULT SetScheduledFrameCompletionCallback ([in] IDeckLinkVideoOutputCallback* theCallback);
  581. HRESULT GetBufferedVideoFrameCount ([out] unsigned int* bufferedFrameCount);
  582. /* Audio Output */
  583. HRESULT EnableAudioOutput ([in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount, [in] BMDAudioOutputStreamType streamType);
  584. HRESULT DisableAudioOutput (void);
  585. HRESULT WriteAudioSamplesSync ([in] void* buffer, [in] unsigned int sampleFrameCount, [out] unsigned int* sampleFramesWritten);
  586. HRESULT BeginAudioPreroll (void);
  587. HRESULT EndAudioPreroll (void);
  588. HRESULT ScheduleAudioSamples ([in] void* buffer, [in] unsigned int sampleFrameCount, [in] BMDTimeValue streamTime, [in] BMDTimeScale timeScale, [out] unsigned int* sampleFramesWritten);
  589. HRESULT GetBufferedAudioSampleFrameCount ([out] unsigned int* bufferedSampleFrameCount);
  590. HRESULT FlushBufferedAudioSamples (void);
  591. HRESULT SetAudioCallback ([in] IDeckLinkAudioOutputCallback* theCallback);
  592. /* Output Control */
  593. HRESULT StartScheduledPlayback ([in] BMDTimeValue playbackStartTime, [in] BMDTimeScale timeScale, [in] double playbackSpeed);
  594. HRESULT StopScheduledPlayback ([in] BMDTimeValue stopPlaybackAtTime, [out] BMDTimeValue* actualStopTime, [in] BMDTimeScale timeScale);
  595. HRESULT IsScheduledPlaybackRunning ([out] BOOL* active);
  596. HRESULT GetScheduledStreamTime ([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue* streamTime, [out] double* playbackSpeed);
  597. HRESULT GetReferenceStatus ([out] BMDReferenceStatus* referenceStatus);
  598. /* Hardware Timing */
  599. HRESULT GetHardwareReferenceClock ([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue* hardwareTime, [out] BMDTimeValue* timeInFrame, [out] BMDTimeValue* ticksPerFrame);
  600. HRESULT GetFrameCompletionReferenceTimestamp ([in] IDeckLinkVideoFrame* theFrame, [in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue* frameCompletionTimestamp);
  601. };
  602. /* Interface IDeckLinkInput - Created by QueryInterface from IDeckLink. */
  603. [
  604. object,
  605. uuid(C21CDB6E-F414-46E4-A636-80A566E0ED37),
  606. helpstring("Created by QueryInterface from IDeckLink.")
  607. ] interface IDeckLinkInput : IUnknown
  608. {
  609. HRESULT DoesSupportVideoMode ([in] BMDVideoConnection connection /* If a value of bmdVideoConnectionUnspecified is specified, the caller does not care about the connection */, [in] BMDDisplayMode requestedMode, [in] BMDPixelFormat requestedPixelFormat, [in] BMDVideoInputConversionMode conversionMode, [in] BMDSupportedVideoModeFlags flags, [out] BMDDisplayMode* actualMode, [out] BOOL* supported);
  610. HRESULT GetDisplayMode ([in] BMDDisplayMode displayMode, [out] IDeckLinkDisplayMode** resultDisplayMode);
  611. HRESULT GetDisplayModeIterator ([out] IDeckLinkDisplayModeIterator** iterator);
  612. HRESULT SetScreenPreviewCallback ([in] IDeckLinkScreenPreviewCallback* previewCallback);
  613. /* Video Input */
  614. HRESULT EnableVideoInput ([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags);
  615. HRESULT DisableVideoInput (void);
  616. HRESULT GetAvailableVideoFrameCount ([out] unsigned int* availableFrameCount);
  617. HRESULT SetVideoInputFrameMemoryAllocator ([in] IDeckLinkMemoryAllocator* theAllocator);
  618. /* Audio Input */
  619. HRESULT EnableAudioInput ([in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount);
  620. HRESULT DisableAudioInput (void);
  621. HRESULT GetAvailableAudioSampleFrameCount ([out] unsigned int* availableSampleFrameCount);
  622. /* Input Control */
  623. HRESULT StartStreams (void);
  624. HRESULT StopStreams (void);
  625. HRESULT PauseStreams (void);
  626. HRESULT FlushStreams (void);
  627. HRESULT SetCallback ([in] IDeckLinkInputCallback* theCallback);
  628. /* Hardware Timing */
  629. HRESULT GetHardwareReferenceClock ([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue* hardwareTime, [out] BMDTimeValue* timeInFrame, [out] BMDTimeValue* ticksPerFrame);
  630. };
  631. /* Interface IDeckLinkHDMIInputEDID - Created by QueryInterface from IDeckLink. Releasing all references will restore EDID to default */
  632. [
  633. object,
  634. uuid(ABBBACBC-45BC-4665-9D92-ACE6E5A97902),
  635. helpstring("Created by QueryInterface from IDeckLink. Releasing all references will restore EDID to default")
  636. ] interface IDeckLinkHDMIInputEDID : IUnknown
  637. {
  638. HRESULT SetInt ([in] BMDDeckLinkHDMIInputEDIDID cfgID, [in] LONGLONG value);
  639. HRESULT GetInt ([in] BMDDeckLinkHDMIInputEDIDID cfgID, [out] LONGLONG* value);
  640. HRESULT WriteToEDID (void);
  641. };
  642. /* Interface IDeckLinkEncoderInput - Created by QueryInterface from IDeckLink. */
  643. [
  644. object,
  645. uuid(F222551D-13DF-4FD8-B587-9D4F19EC12C9),
  646. helpstring("Created by QueryInterface from IDeckLink.")
  647. ] interface IDeckLinkEncoderInput : IUnknown
  648. {
  649. HRESULT DoesSupportVideoMode ([in] BMDVideoConnection connection /* If a value of bmdVideoConnectionUnspecified is specified, the caller does not care about the connection */, [in] BMDDisplayMode requestedMode, [in] BMDPixelFormat requestedCodec, [in] unsigned int requestedCodecProfile, [in] BMDSupportedVideoModeFlags flags, [out] BOOL* supported);
  650. HRESULT GetDisplayMode ([in] BMDDisplayMode displayMode, [out] IDeckLinkDisplayMode** resultDisplayMode);
  651. HRESULT GetDisplayModeIterator ([out] IDeckLinkDisplayModeIterator** iterator);
  652. /* Video Input */
  653. HRESULT EnableVideoInput ([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags);
  654. HRESULT DisableVideoInput (void);
  655. HRESULT GetAvailablePacketsCount ([out] unsigned int* availablePacketsCount);
  656. HRESULT SetMemoryAllocator ([in] IDeckLinkMemoryAllocator* theAllocator);
  657. /* Audio Input */
  658. HRESULT EnableAudioInput ([in] BMDAudioFormat audioFormat, [in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount);
  659. HRESULT DisableAudioInput (void);
  660. HRESULT GetAvailableAudioSampleFrameCount ([out] unsigned int* availableSampleFrameCount);
  661. /* Input Control */
  662. HRESULT StartStreams (void);
  663. HRESULT StopStreams (void);
  664. HRESULT PauseStreams (void);
  665. HRESULT FlushStreams (void);
  666. HRESULT SetCallback ([in] IDeckLinkEncoderInputCallback* theCallback);
  667. /* Hardware Timing */
  668. HRESULT GetHardwareReferenceClock ([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue* hardwareTime, [out] BMDTimeValue* timeInFrame, [out] BMDTimeValue* ticksPerFrame);
  669. };
  670. /* Interface IDeckLinkVideoFrame - Interface to encapsulate a video frame; can be caller-implemented. */
  671. [
  672. object,
  673. uuid(3F716FE0-F023-4111-BE5D-EF4414C05B17),
  674. local,
  675. helpstring("Interface to encapsulate a video frame; can be caller-implemented.")
  676. ] interface IDeckLinkVideoFrame : IUnknown
  677. {
  678. long GetWidth (void);
  679. long GetHeight (void);
  680. long GetRowBytes (void);
  681. BMDPixelFormat GetPixelFormat (void);
  682. BMDFrameFlags GetFlags (void);
  683. HRESULT GetBytes ([out] void** buffer);
  684. HRESULT GetTimecode ([in] BMDTimecodeFormat format, [out] IDeckLinkTimecode** timecode);
  685. HRESULT GetAncillaryData ([out] IDeckLinkVideoFrameAncillary** ancillary); // Use of IDeckLinkVideoFrameAncillaryPackets is preferred
  686. };
  687. /* Interface IDeckLinkMutableVideoFrame - Created by IDeckLinkOutput::CreateVideoFrame. */
  688. [
  689. object,
  690. uuid(69E2639F-40DA-4E19-B6F2-20ACE815C390),
  691. local,
  692. helpstring("Created by IDeckLinkOutput::CreateVideoFrame.")
  693. ] interface IDeckLinkMutableVideoFrame : IDeckLinkVideoFrame
  694. {
  695. HRESULT SetFlags ([in] BMDFrameFlags newFlags);
  696. HRESULT SetTimecode ([in] BMDTimecodeFormat format, [in] IDeckLinkTimecode* timecode);
  697. HRESULT SetTimecodeFromComponents ([in] BMDTimecodeFormat format, [in] unsigned char hours, [in] unsigned char minutes, [in] unsigned char seconds, [in] unsigned char frames, [in] BMDTimecodeFlags flags);
  698. HRESULT SetAncillaryData ([in] IDeckLinkVideoFrameAncillary* ancillary);
  699. HRESULT SetTimecodeUserBits ([in] BMDTimecodeFormat format, [in] BMDTimecodeUserBits userBits);
  700. };
  701. /* Interface IDeckLinkVideoFrame3DExtensions - Optional interface implemented on IDeckLinkVideoFrame to support 3D frames */
  702. [
  703. object,
  704. uuid(DA0F7E4A-EDC7-48A8-9CDD-2DB51C729CD7),
  705. local,
  706. helpstring("Optional interface implemented on IDeckLinkVideoFrame to support 3D frames")
  707. ] interface IDeckLinkVideoFrame3DExtensions : IUnknown
  708. {
  709. BMDVideo3DPackingFormat Get3DPackingFormat (void);
  710. HRESULT GetFrameForRightEye ([out] IDeckLinkVideoFrame** rightEyeFrame);
  711. };
  712. /* Interface IDeckLinkVideoFrameMetadataExtensions - Optional interface implemented on IDeckLinkVideoFrame to support frame metadata such as HDR information */
  713. [
  714. object,
  715. uuid(E232A5B7-4DB4-44C9-9152-F47C12E5F051),
  716. local,
  717. helpstring("Optional interface implemented on IDeckLinkVideoFrame to support frame metadata such as HDR information")
  718. ] interface IDeckLinkVideoFrameMetadataExtensions : IUnknown
  719. {
  720. HRESULT GetInt ([in] BMDDeckLinkFrameMetadataID metadataID, [out] LONGLONG* value);
  721. HRESULT GetFloat ([in] BMDDeckLinkFrameMetadataID metadataID, [out] double* value);
  722. HRESULT GetFlag ([in] BMDDeckLinkFrameMetadataID metadataID, [out] BOOL* value);
  723. HRESULT GetString ([in] BMDDeckLinkFrameMetadataID metadataID, [out] BSTR* value);
  724. HRESULT GetBytes ([in] BMDDeckLinkFrameMetadataID metadataID, [out] void* buffer /* optional */, [in, out] unsigned int* bufferSize);
  725. };
  726. /* Interface IDeckLinkVideoInputFrame - Provided by the IDeckLinkVideoInput frame arrival callback. */
  727. [
  728. object,
  729. uuid(05CFE374-537C-4094-9A57-680525118F44),
  730. local,
  731. helpstring("Provided by the IDeckLinkVideoInput frame arrival callback.")
  732. ] interface IDeckLinkVideoInputFrame : IDeckLinkVideoFrame
  733. {
  734. HRESULT GetStreamTime ([out] BMDTimeValue* frameTime, [out] BMDTimeValue* frameDuration, [in] BMDTimeScale timeScale);
  735. HRESULT GetHardwareReferenceTimestamp ([in] BMDTimeScale timeScale, [out] BMDTimeValue* frameTime, [out] BMDTimeValue* frameDuration);
  736. };
  737. /* Interface IDeckLinkAncillaryPacket - On output, user needs to implement this interface */
  738. [
  739. object,
  740. uuid(CC5BBF7E-029C-4D3B-9158-6000EF5E3670),
  741. helpstring("On output, user needs to implement this interface")
  742. ] interface IDeckLinkAncillaryPacket : IUnknown
  743. {
  744. HRESULT GetBytes ([in] BMDAncillaryPacketFormat format /* For output, only one format need be offered */, [out] const void** data /* Optional */, [out] unsigned int* size /* Optional */);
  745. unsigned char GetDID (void);
  746. unsigned char GetSDID (void);
  747. unsigned int GetLineNumber (void); // On output, zero is auto
  748. unsigned char GetDataStreamIndex (void); // Usually zero. Can only be 1 if non-SD and the first data stream is completely full
  749. };
  750. /* Interface IDeckLinkAncillaryPacketIterator - Enumerates ancillary packets */
  751. [
  752. object,
  753. uuid(3FC8994B-88FB-4C17-968F-9AAB69D964A7),
  754. helpstring("Enumerates ancillary packets")
  755. ] interface IDeckLinkAncillaryPacketIterator : IUnknown
  756. {
  757. HRESULT Next ([out] IDeckLinkAncillaryPacket** packet);
  758. };
  759. /* Interface IDeckLinkVideoFrameAncillaryPackets - Obtained through QueryInterface on an IDeckLinkVideoFrame object. */
  760. [
  761. object,
  762. uuid(6C186C0F-459E-41D8-AEE2-4812D81AEE68),
  763. local,
  764. helpstring("Obtained through QueryInterface on an IDeckLinkVideoFrame object.")
  765. ] interface IDeckLinkVideoFrameAncillaryPackets : IUnknown
  766. {
  767. HRESULT GetPacketIterator ([out] IDeckLinkAncillaryPacketIterator** iterator);
  768. HRESULT GetFirstPacketByID ([in] unsigned char DID, [in] unsigned char SDID, [out] IDeckLinkAncillaryPacket** packet);
  769. HRESULT AttachPacket ([in] IDeckLinkAncillaryPacket* packet); // Implement IDeckLinkAncillaryPacket to output your own
  770. HRESULT DetachPacket ([in] IDeckLinkAncillaryPacket* packet);
  771. HRESULT DetachAllPackets (void);
  772. };
  773. /* Interface IDeckLinkVideoFrameAncillary - Use of IDeckLinkVideoFrameAncillaryPackets is preferred. Obtained through QueryInterface on an IDeckLinkVideoFrame object. */
  774. [
  775. object,
  776. uuid(732E723C-D1A4-4E29-9E8E-4A88797A0004),
  777. local,
  778. helpstring("Use of IDeckLinkVideoFrameAncillaryPackets is preferred. Obtained through QueryInterface on an IDeckLinkVideoFrame object.")
  779. ] interface IDeckLinkVideoFrameAncillary : IUnknown
  780. {
  781. 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
  782. BMDPixelFormat GetPixelFormat (void);
  783. BMDDisplayMode GetDisplayMode (void);
  784. };
  785. /* Interface IDeckLinkEncoderPacket - Interface to encapsulate an encoded packet. */
  786. [
  787. object,
  788. uuid(B693F36C-316E-4AF1-B6C2-F389A4BCA620),
  789. local,
  790. helpstring("Interface to encapsulate an encoded packet.")
  791. ] interface IDeckLinkEncoderPacket : IUnknown
  792. {
  793. HRESULT GetBytes ([out] void** buffer);
  794. long GetSize (void);
  795. HRESULT GetStreamTime ([out] BMDTimeValue* frameTime, [in] BMDTimeScale timeScale);
  796. BMDPacketType GetPacketType (void);
  797. };
  798. /* Interface IDeckLinkEncoderVideoPacket - Provided by the IDeckLinkEncoderInput video packet arrival callback. */
  799. [
  800. object,
  801. uuid(4E7FD944-E8C7-4EAC-B8C0-7B77F80F5AE0),
  802. local,
  803. helpstring("Provided by the IDeckLinkEncoderInput video packet arrival callback.")
  804. ] interface IDeckLinkEncoderVideoPacket : IDeckLinkEncoderPacket
  805. {
  806. BMDPixelFormat GetPixelFormat (void);
  807. HRESULT GetHardwareReferenceTimestamp ([in] BMDTimeScale timeScale, [out] BMDTimeValue* frameTime, [out] BMDTimeValue* frameDuration);
  808. HRESULT GetTimecode ([in] BMDTimecodeFormat format, [out] IDeckLinkTimecode** timecode);
  809. };
  810. /* Interface IDeckLinkEncoderAudioPacket - Provided by the IDeckLinkEncoderInput audio packet arrival callback. */
  811. [
  812. object,
  813. uuid(49E8EDC8-693B-4E14-8EF6-12C658F5A07A),
  814. local,
  815. helpstring("Provided by the IDeckLinkEncoderInput audio packet arrival callback.")
  816. ] interface IDeckLinkEncoderAudioPacket : IDeckLinkEncoderPacket
  817. {
  818. BMDAudioFormat GetAudioFormat (void);
  819. };
  820. /* Interface IDeckLinkH265NALPacket - Obtained through QueryInterface on an IDeckLinkEncoderVideoPacket object */
  821. [
  822. object,
  823. uuid(639C8E0B-68D5-4BDE-A6D4-95F3AEAFF2E7),
  824. local,
  825. helpstring("Obtained through QueryInterface on an IDeckLinkEncoderVideoPacket object")
  826. ] interface IDeckLinkH265NALPacket : IDeckLinkEncoderVideoPacket
  827. {
  828. HRESULT GetUnitType ([out] unsigned char* unitType);
  829. HRESULT GetBytesNoPrefix ([out] void** buffer);
  830. long GetSizeNoPrefix (void);
  831. };
  832. /* Interface IDeckLinkAudioInputPacket - Provided by the IDeckLinkInput callback. */
  833. [
  834. object,
  835. uuid(E43D5870-2894-11DE-8C30-0800200C9A66),
  836. local,
  837. helpstring("Provided by the IDeckLinkInput callback.")
  838. ] interface IDeckLinkAudioInputPacket : IUnknown
  839. {
  840. long GetSampleFrameCount (void);
  841. HRESULT GetBytes ([out] void** buffer);
  842. HRESULT GetPacketTime ([out] BMDTimeValue* packetTime, [in] BMDTimeScale timeScale);
  843. };
  844. /* Interface IDeckLinkScreenPreviewCallback - Screen preview callback */
  845. [
  846. object,
  847. uuid(B1D3F49A-85FE-4C5D-95C8-0B5D5DCCD438),
  848. local,
  849. helpstring("Screen preview callback")
  850. ] interface IDeckLinkScreenPreviewCallback : IUnknown
  851. {
  852. HRESULT DrawFrame ([in] IDeckLinkVideoFrame* theFrame);
  853. };
  854. /* Interface IDeckLinkGLScreenPreviewHelper - Created with CoCreateInstance on platforms with native COM support or from CreateOpenGLScreenPreviewHelper on other platforms. */
  855. [
  856. object,
  857. uuid(504E2209-CAC7-4C1A-9FB4-C5BB6274D22F),
  858. local,
  859. helpstring("Created with CoCreateInstance on platforms with native COM support or from CreateOpenGLScreenPreviewHelper on other platforms.")
  860. ] interface IDeckLinkGLScreenPreviewHelper : IUnknown
  861. {
  862. /* Methods must be called with OpenGL context set */
  863. HRESULT InitializeGL (void);
  864. HRESULT PaintGL (void);
  865. HRESULT SetFrame ([in] IDeckLinkVideoFrame* theFrame);
  866. HRESULT Set3DPreviewFormat ([in] BMD3DPreviewFormat previewFormat);
  867. };
  868. /* Interface IDeckLinkDX9ScreenPreviewHelper - Created with CoCreateInstance. */
  869. [
  870. object,
  871. uuid(2094B522-D1A1-40C0-9AC7-1C012218EF02),
  872. local,
  873. helpstring("Created with CoCreateInstance.")
  874. ] interface IDeckLinkDX9ScreenPreviewHelper : IUnknown
  875. {
  876. HRESULT Initialize ([in] void* device);
  877. HRESULT Render ([in] RECT* rc);
  878. HRESULT SetFrame ([in] IDeckLinkVideoFrame* theFrame);
  879. HRESULT Set3DPreviewFormat ([in] BMD3DPreviewFormat previewFormat);
  880. };
  881. /* Interface IDeckLinkNotificationCallback - DeckLink Notification Callback Interface */
  882. [
  883. object,
  884. uuid(b002a1ec-070d-4288-8289-bd5d36e5ff0d),
  885. local,
  886. helpstring("DeckLink Notification Callback Interface")
  887. ] interface IDeckLinkNotificationCallback : IUnknown
  888. {
  889. HRESULT Notify ([in] BMDNotifications topic, [in] ULONGLONG param1, [in] ULONGLONG param2);
  890. };
  891. /* Interface IDeckLinkNotification - DeckLink Notification interface */
  892. [
  893. object,
  894. uuid(b85df4c8-bdf5-47c1-8064-28162ebdd4eb),
  895. local,
  896. helpstring("DeckLink Notification interface")
  897. ] interface IDeckLinkNotification : IUnknown
  898. {
  899. HRESULT Subscribe ([in] BMDNotifications topic, [in] IDeckLinkNotificationCallback* theCallback);
  900. HRESULT Unsubscribe ([in] BMDNotifications topic, [in] IDeckLinkNotificationCallback* theCallback);
  901. };
  902. /* Interface IDeckLinkProfileAttributes - Created by QueryInterface from an IDeckLinkProfile, or from IDeckLink. When queried from IDeckLink, interrogates the active profile */
  903. [
  904. object,
  905. uuid(17D4BF8E-4911-473A-80A0-731CF6FF345B),
  906. local,
  907. helpstring("Created by QueryInterface from an IDeckLinkProfile, or from IDeckLink. When queried from IDeckLink, interrogates the active profile")
  908. ] interface IDeckLinkProfileAttributes : IUnknown
  909. {
  910. HRESULT GetFlag ([in] BMDDeckLinkAttributeID cfgID, [out] BOOL* value);
  911. HRESULT GetInt ([in] BMDDeckLinkAttributeID cfgID, [out] LONGLONG* value);
  912. HRESULT GetFloat ([in] BMDDeckLinkAttributeID cfgID, [out] double* value);
  913. HRESULT GetString ([in] BMDDeckLinkAttributeID cfgID, [out] BSTR* value);
  914. };
  915. /* Interface IDeckLinkProfileIterator - Enumerates IDeckLinkProfile interfaces */
  916. [
  917. object,
  918. uuid(29E5A8C0-8BE4-46EB-93AC-31DAAB5B7BF2),
  919. helpstring("Enumerates IDeckLinkProfile interfaces")
  920. ] interface IDeckLinkProfileIterator : IUnknown
  921. {
  922. HRESULT Next ([out] IDeckLinkProfile** profile);
  923. };
  924. /* Interface IDeckLinkProfile - Represents the active profile when queried from IDeckLink */
  925. [
  926. object,
  927. uuid(16093466-674A-432B-9DA0-1AC2C5A8241C),
  928. local,
  929. helpstring("Represents the active profile when queried from IDeckLink")
  930. ] interface IDeckLinkProfile : IUnknown
  931. {
  932. HRESULT GetDevice ([out] IDeckLink** device); // Device affected when this profile becomes active
  933. HRESULT IsActive ([out] BOOL* isActive);
  934. HRESULT SetActive (void); // Activating a profile will also change the profile on all devices enumerated by GetPeers. Activation is not complete until IDeckLinkProfileCallback::ProfileActivated is called
  935. HRESULT GetPeers ([out] IDeckLinkProfileIterator** profileIterator); // Profiles of other devices activated with this profile
  936. };
  937. /* Interface IDeckLinkProfileCallback - Receive notifications about profiles related to this device */
  938. [
  939. object,
  940. uuid(A4F9341E-97AA-4E04-8935-15F809898CEA),
  941. helpstring("Receive notifications about profiles related to this device")
  942. ] interface IDeckLinkProfileCallback : IUnknown
  943. {
  944. HRESULT ProfileChanging ([in] IDeckLinkProfile* profileToBeActivated, [in] BOOL streamsWillBeForcedToStop); // Called before this device changes profile. User has an opportunity for teardown if streamsWillBeForcedToStop
  945. HRESULT ProfileActivated ([in] IDeckLinkProfile* activatedProfile); // Called after this device has been activated with a new profile
  946. };
  947. /* Interface IDeckLinkProfileManager - Created by QueryInterface from IDeckLink when a device has multiple optional profiles */
  948. [
  949. object,
  950. uuid(30D41429-3998-4B6D-84F8-78C94A797C6E),
  951. helpstring("Created by QueryInterface from IDeckLink when a device has multiple optional profiles")
  952. ] interface IDeckLinkProfileManager : IUnknown
  953. {
  954. HRESULT GetProfiles ([out] IDeckLinkProfileIterator** profileIterator); // All available profiles for this device
  955. HRESULT GetProfile ([in] BMDProfileID profileID, [out] IDeckLinkProfile** profile);
  956. HRESULT SetCallback ([in] IDeckLinkProfileCallback* callback);
  957. };
  958. /* Interface IDeckLinkStatus - DeckLink Status interface */
  959. [
  960. object,
  961. uuid(5F558200-4028-49BC-BEAC-DB3FA4A96E46),
  962. local,
  963. helpstring("DeckLink Status interface")
  964. ] interface IDeckLinkStatus : IUnknown
  965. {
  966. HRESULT GetFlag ([in] BMDDeckLinkStatusID statusID, [out] BOOL* value);
  967. HRESULT GetInt ([in] BMDDeckLinkStatusID statusID, [out] LONGLONG* value);
  968. HRESULT GetFloat ([in] BMDDeckLinkStatusID statusID, [out] double* value);
  969. HRESULT GetString ([in] BMDDeckLinkStatusID statusID, [out] BSTR* value);
  970. HRESULT GetBytes ([in] BMDDeckLinkStatusID statusID, [out] void* buffer, [in, out] unsigned int* bufferSize);
  971. };
  972. /* Interface IDeckLinkKeyer - DeckLink Keyer interface */
  973. [
  974. object,
  975. uuid(89AFCAF5-65F8-421E-98F7-96FE5F5BFBA3),
  976. local,
  977. helpstring("DeckLink Keyer interface")
  978. ] interface IDeckLinkKeyer : IUnknown
  979. {
  980. HRESULT Enable ([in] BOOL isExternal);
  981. HRESULT SetLevel ([in] unsigned char level);
  982. HRESULT RampUp ([in] unsigned int numberOfFrames);
  983. HRESULT RampDown ([in] unsigned int numberOfFrames);
  984. HRESULT Disable (void);
  985. };
  986. /* Interface IDeckLinkVideoConversion - Created with CoCreateInstance. */
  987. [
  988. object,
  989. uuid(3BBCB8A2-DA2C-42D9-B5D8-88083644E99A),
  990. local,
  991. helpstring("Created with CoCreateInstance.")
  992. ] interface IDeckLinkVideoConversion : IUnknown
  993. {
  994. HRESULT ConvertFrame ([in] IDeckLinkVideoFrame* srcFrame, [in] IDeckLinkVideoFrame* dstFrame);
  995. };
  996. /* Interface IDeckLinkDeviceNotificationCallback - DeckLink device arrival/removal notification callbacks */
  997. [
  998. object,
  999. uuid(4997053B-0ADF-4CC8-AC70-7A50C4BE728F),
  1000. helpstring("DeckLink device arrival/removal notification callbacks")
  1001. ] interface IDeckLinkDeviceNotificationCallback : IUnknown
  1002. {
  1003. HRESULT DeckLinkDeviceArrived ([in] IDeckLink* deckLinkDevice);
  1004. HRESULT DeckLinkDeviceRemoved ([in] IDeckLink* deckLinkDevice);
  1005. };
  1006. /* Interface IDeckLinkDiscovery - DeckLink device discovery */
  1007. [
  1008. object,
  1009. uuid(CDBF631C-BC76-45FA-B44D-C55059BC6101),
  1010. helpstring("DeckLink device discovery")
  1011. ] interface IDeckLinkDiscovery : IUnknown
  1012. {
  1013. HRESULT InstallDeviceNotifications ([in] IDeckLinkDeviceNotificationCallback* deviceNotificationCallback);
  1014. HRESULT UninstallDeviceNotifications (void);
  1015. };
  1016. /* Coclasses */
  1017. importlib("stdole2.tlb");
  1018. [
  1019. uuid(BA6C6F44-6DA5-4DCE-94AA-EE2D1372A676),
  1020. helpstring("CDeckLinkIterator Class")
  1021. ] coclass CDeckLinkIterator
  1022. {
  1023. [default] interface IDeckLinkIterator;
  1024. };
  1025. [
  1026. uuid(263CA19F-ED09-482E-9F9D-84005783A237),
  1027. helpstring("CDeckLinkAPIInformation Class")
  1028. ] coclass CDeckLinkAPIInformation
  1029. {
  1030. [default] interface IDeckLinkAPIInformation;
  1031. };
  1032. [
  1033. uuid(F63E77C7-B655-4A4A-9AD0-3CA85D394343),
  1034. helpstring("CDeckLinkGLScreenPreviewHelper Class")
  1035. ] coclass CDeckLinkGLScreenPreviewHelper
  1036. {
  1037. [default] interface IDeckLinkGLScreenPreviewHelper;
  1038. };
  1039. [
  1040. uuid(CC010023-E01D-4525-9D59-80C8AB3DC7A0),
  1041. helpstring("CDeckLinkDX9ScreenPreviewHelper Class")
  1042. ] coclass CDeckLinkDX9ScreenPreviewHelper
  1043. {
  1044. [default] interface IDeckLinkDX9ScreenPreviewHelper;
  1045. };
  1046. [
  1047. uuid(7DBBBB11-5B7B-467D-AEA4-CEA468FD368C),
  1048. helpstring("CDeckLinkVideoConversion Class")
  1049. ] coclass CDeckLinkVideoConversion
  1050. {
  1051. [default] interface IDeckLinkVideoConversion;
  1052. };
  1053. [
  1054. uuid(22FBFC33-8D07-495C-A5BF-DAB5EA9B82DB),
  1055. helpstring("CDeckLinkDiscovery Class")
  1056. ] coclass CDeckLinkDiscovery
  1057. {
  1058. [default] interface IDeckLinkDiscovery;
  1059. };
  1060. [
  1061. uuid(F891AD29-D0C2-46E9-A926-4E2D0DD8CFAD),
  1062. helpstring("CDeckLinkVideoFrameAncillaryPackets Class")
  1063. ] coclass CDeckLinkVideoFrameAncillaryPackets
  1064. {
  1065. [default] interface IDeckLinkVideoFrameAncillaryPackets;
  1066. };
  1067. // import deprecated interfaces
  1068. #include "DeckLinkAPI_v11_4.idl"
  1069. #include "DeckLinkAPI_v10_11.idl"
  1070. #include "DeckLinkAPI_v11_5_1.idl"
  1071. #include "DeckLinkAPI_v11_5.idl"
  1072. #include "DeckLinkAPI_v10_9.idl"
  1073. #include "DeckLinkAPIStreaming_v10_8.idl"
  1074. #include "DeckLinkAPI_v10_8.idl"
  1075. #include "DeckLinkAPI_v10_6.idl"
  1076. #include "DeckLinkAPI_v10_5.idl"
  1077. #include "DeckLinkAPI_v10_4.idl"
  1078. #include "DeckLinkAPI_v10_2.idl"
  1079. #include "DeckLinkAPI_v9_9.idl"
  1080. #include "DeckLinkAPI_v9_2.idl"
  1081. #include "DeckLinkAPI_v8_1.idl"
  1082. #include "DeckLinkAPI_v8_0.idl"
  1083. #include "DeckLinkAPI_v7_9.idl"
  1084. #include "DeckLinkAPI_v7_6.idl"
  1085. #include "DeckLinkAPI_v7_3.idl"
  1086. #include "DeckLinkAPI_v7_1.idl"
  1087. };