DeckLinkAPI.idl 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227
  1. /* -LICENSE-START-
  2. ** Copyright (c) 2016 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 BMDDeckLinkFrameMetadataID - DeckLink Frame Metadata ID */
  241. typedef [v1_enum] enum _BMDDeckLinkFrameMetadataID {
  242. bmdDeckLinkFrameMetadataHDRElectroOpticalTransferFunc = /* 'eotf' */ 0x656F7466, // EOTF in range 0-7 as per CEA 861.3
  243. bmdDeckLinkFrameMetadataCintelFilmType = /* 'cfty' */ 0x63667479, // Current film type
  244. bmdDeckLinkFrameMetadataCintelFilmGauge = /* 'cfga' */ 0x63666761, // Current film gauge
  245. bmdDeckLinkFrameMetadataCintelOffsetDetectedHorizontal = /* 'odfh' */ 0x6F646668, // Horizontal offset (pixels) detected in image
  246. bmdDeckLinkFrameMetadataCintelOffsetDetectedVertical = /* 'odfv' */ 0x6F646676, // Vertical offset (pixels) detected in image
  247. bmdDeckLinkFrameMetadataCintelKeykodeLow = /* 'ckkl' */ 0x636B6B6C, // Raw keykode value - low 64 bits
  248. bmdDeckLinkFrameMetadataCintelKeykodeHigh = /* 'ckkh' */ 0x636B6B68, // Raw keykode value - high 64 bits
  249. bmdDeckLinkFrameMetadataCintelTile1Size = /* 'ct1s' */ 0x63743173, // Size in bytes of compressed raw tile 1
  250. bmdDeckLinkFrameMetadataCintelTile2Size = /* 'ct2s' */ 0x63743273, // Size in bytes of compressed raw tile 2
  251. bmdDeckLinkFrameMetadataCintelTile3Size = /* 'ct3s' */ 0x63743373, // Size in bytes of compressed raw tile 3
  252. bmdDeckLinkFrameMetadataCintelTile4Size = /* 'ct4s' */ 0x63743473, // Size in bytes of compressed raw tile 4
  253. bmdDeckLinkFrameMetadataCintelImageWidth = /* 'IWPx' */ 0x49575078, // Width in pixels of image
  254. bmdDeckLinkFrameMetadataCintelImageHeight = /* 'IHPx' */ 0x49485078, // Height in pixels of image
  255. bmdDeckLinkFrameMetadataCintelLinearMaskingRedInRed = /* 'mrir' */ 0x6D726972, // Red in red linear masking parameter
  256. bmdDeckLinkFrameMetadataCintelLinearMaskingGreenInRed = /* 'mgir' */ 0x6D676972, // Green in red linear masking parameter
  257. bmdDeckLinkFrameMetadataCintelLinearMaskingBlueInRed = /* 'mbir' */ 0x6D626972, // Blue in red linear masking parameter
  258. bmdDeckLinkFrameMetadataCintelLinearMaskingRedInGreen = /* 'mrig' */ 0x6D726967, // Red in green linear masking parameter
  259. bmdDeckLinkFrameMetadataCintelLinearMaskingGreenInGreen = /* 'mgig' */ 0x6D676967, // Green in green linear masking parameter
  260. bmdDeckLinkFrameMetadataCintelLinearMaskingBlueInGreen = /* 'mbig' */ 0x6D626967, // Blue in green linear masking parameter
  261. bmdDeckLinkFrameMetadataCintelLinearMaskingRedInBlue = /* 'mrib' */ 0x6D726962, // Red in blue linear masking parameter
  262. bmdDeckLinkFrameMetadataCintelLinearMaskingGreenInBlue = /* 'mgib' */ 0x6D676962, // Green in blue linear masking parameter
  263. bmdDeckLinkFrameMetadataCintelLinearMaskingBlueInBlue = /* 'mbib' */ 0x6D626962, // Blue in blue linear masking parameter
  264. bmdDeckLinkFrameMetadataCintelLogMaskingRedInRed = /* 'mlrr' */ 0x6D6C7272, // Red in red log masking parameter
  265. bmdDeckLinkFrameMetadataCintelLogMaskingGreenInRed = /* 'mlgr' */ 0x6D6C6772, // Green in red log masking parameter
  266. bmdDeckLinkFrameMetadataCintelLogMaskingBlueInRed = /* 'mlbr' */ 0x6D6C6272, // Blue in red log masking parameter
  267. bmdDeckLinkFrameMetadataCintelLogMaskingRedInGreen = /* 'mlrg' */ 0x6D6C7267, // Red in green log masking parameter
  268. bmdDeckLinkFrameMetadataCintelLogMaskingGreenInGreen = /* 'mlgg' */ 0x6D6C6767, // Green in green log masking parameter
  269. bmdDeckLinkFrameMetadataCintelLogMaskingBlueInGreen = /* 'mlbg' */ 0x6D6C6267, // Blue in green log masking parameter
  270. bmdDeckLinkFrameMetadataCintelLogMaskingRedInBlue = /* 'mlrb' */ 0x6D6C7262, // Red in blue log masking parameter
  271. bmdDeckLinkFrameMetadataCintelLogMaskingGreenInBlue = /* 'mlgb' */ 0x6D6C6762, // Green in blue log masking parameter
  272. bmdDeckLinkFrameMetadataCintelLogMaskingBlueInBlue = /* 'mlbb' */ 0x6D6C6262, // Blue in blue log masking parameter
  273. bmdDeckLinkFrameMetadataCintelFilmFrameRate = /* 'cffr' */ 0x63666672, // Film frame rate
  274. bmdDeckLinkFrameMetadataHDRDisplayPrimariesRedX = /* 'hdrx' */ 0x68647278, // Red display primaries in range 0.0 - 1.0
  275. bmdDeckLinkFrameMetadataHDRDisplayPrimariesRedY = /* 'hdry' */ 0x68647279, // Red display primaries in range 0.0 - 1.0
  276. bmdDeckLinkFrameMetadataHDRDisplayPrimariesGreenX = /* 'hdgx' */ 0x68646778, // Green display primaries in range 0.0 - 1.0
  277. bmdDeckLinkFrameMetadataHDRDisplayPrimariesGreenY = /* 'hdgy' */ 0x68646779, // Green display primaries in range 0.0 - 1.0
  278. bmdDeckLinkFrameMetadataHDRDisplayPrimariesBlueX = /* 'hdbx' */ 0x68646278, // Blue display primaries in range 0.0 - 1.0
  279. bmdDeckLinkFrameMetadataHDRDisplayPrimariesBlueY = /* 'hdby' */ 0x68646279, // Blue display primaries in range 0.0 - 1.0
  280. bmdDeckLinkFrameMetadataHDRWhitePointX = /* 'hdwx' */ 0x68647778, // White point in range 0.0 - 1.0
  281. bmdDeckLinkFrameMetadataHDRWhitePointY = /* 'hdwy' */ 0x68647779, // White point in range 0.0 - 1.0
  282. bmdDeckLinkFrameMetadataHDRMaxDisplayMasteringLuminance = /* 'hdml' */ 0x68646D6C, // Max display mastering luminance in range 1 cd/m2 - 65535 cd/m2
  283. bmdDeckLinkFrameMetadataHDRMinDisplayMasteringLuminance = /* 'hmil' */ 0x686D696C, // Min display mastering luminance in range 0.0001 cd/m2 - 6.5535 cd/m2
  284. bmdDeckLinkFrameMetadataHDRMaximumContentLightLevel = /* 'mcll' */ 0x6D636C6C, // Maximum Content Light Level in range 1 cd/m2 - 65535 cd/m2
  285. bmdDeckLinkFrameMetadataHDRMaximumFrameAverageLightLevel = /* 'fall' */ 0x66616C6C, // Maximum Frame Average Light Level in range 1 cd/m2 - 65535 cd/m2
  286. bmdDeckLinkFrameMetadataCintelOffsetToApplyHorizontal = /* 'otah' */ 0x6F746168, // Horizontal offset (pixels) to be applied to image
  287. bmdDeckLinkFrameMetadataCintelOffsetToApplyVertical = /* 'otav' */ 0x6F746176, // Vertical offset (pixels) to be applied to image
  288. bmdDeckLinkFrameMetadataCintelGainRed = /* 'LfRd' */ 0x4C665264, // Red gain parameter to apply after log
  289. bmdDeckLinkFrameMetadataCintelGainGreen = /* 'LfGr' */ 0x4C664772, // Green gain parameter to apply after log
  290. bmdDeckLinkFrameMetadataCintelGainBlue = /* 'LfBl' */ 0x4C66426C, // Blue gain parameter to apply after log
  291. bmdDeckLinkFrameMetadataCintelLiftRed = /* 'GnRd' */ 0x476E5264, // Red lift parameter to apply after log and gain
  292. bmdDeckLinkFrameMetadataCintelLiftGreen = /* 'GnGr' */ 0x476E4772, // Green lift parameter to apply after log and gain
  293. bmdDeckLinkFrameMetadataCintelLiftBlue = /* 'GnBl' */ 0x476E426C // Blue lift parameter to apply after log and gain
  294. } BMDDeckLinkFrameMetadataID;
  295. /* Enum BMDDuplexMode - Duplex for configurable ports */
  296. typedef [v1_enum] enum _BMDDuplexMode {
  297. bmdDuplexModeFull = /* 'fdup' */ 0x66647570,
  298. bmdDuplexModeHalf = /* 'hdup' */ 0x68647570
  299. } BMDDuplexMode;
  300. /* Enum BMDDeckLinkAttributeID - DeckLink Attribute ID */
  301. typedef [v1_enum] enum _BMDDeckLinkAttributeID {
  302. /* Flags */
  303. BMDDeckLinkSupportsInternalKeying = /* 'keyi' */ 0x6B657969,
  304. BMDDeckLinkSupportsExternalKeying = /* 'keye' */ 0x6B657965,
  305. BMDDeckLinkSupportsHDKeying = /* 'keyh' */ 0x6B657968,
  306. BMDDeckLinkSupportsInputFormatDetection = /* 'infd' */ 0x696E6664,
  307. BMDDeckLinkHasReferenceInput = /* 'hrin' */ 0x6872696E,
  308. BMDDeckLinkHasSerialPort = /* 'hspt' */ 0x68737074,
  309. BMDDeckLinkHasAnalogVideoOutputGain = /* 'avog' */ 0x61766F67,
  310. BMDDeckLinkCanOnlyAdjustOverallVideoOutputGain = /* 'ovog' */ 0x6F766F67,
  311. BMDDeckLinkHasVideoInputAntiAliasingFilter = /* 'aafl' */ 0x6161666C,
  312. BMDDeckLinkHasBypass = /* 'byps' */ 0x62797073,
  313. BMDDeckLinkSupportsClockTimingAdjustment = /* 'ctad' */ 0x63746164,
  314. BMDDeckLinkSupportsFullDuplex = /* 'fdup' */ 0x66647570,
  315. BMDDeckLinkSupportsFullFrameReferenceInputTimingOffset = /* 'frin' */ 0x6672696E,
  316. BMDDeckLinkSupportsSMPTELevelAOutput = /* 'lvla' */ 0x6C766C61,
  317. BMDDeckLinkSupportsDualLinkSDI = /* 'sdls' */ 0x73646C73,
  318. BMDDeckLinkSupportsQuadLinkSDI = /* 'sqls' */ 0x73716C73,
  319. BMDDeckLinkSupportsIdleOutput = /* 'idou' */ 0x69646F75,
  320. BMDDeckLinkHasLTCTimecodeInput = /* 'hltc' */ 0x686C7463,
  321. BMDDeckLinkSupportsDuplexModeConfiguration = /* 'dupx' */ 0x64757078,
  322. BMDDeckLinkSupportsHDRMetadata = /* 'hdrm' */ 0x6864726D,
  323. /* Integers */
  324. BMDDeckLinkMaximumAudioChannels = /* 'mach' */ 0x6D616368,
  325. BMDDeckLinkMaximumAnalogAudioInputChannels = /* 'iach' */ 0x69616368,
  326. BMDDeckLinkMaximumAnalogAudioOutputChannels = /* 'aach' */ 0x61616368,
  327. BMDDeckLinkNumberOfSubDevices = /* 'nsbd' */ 0x6E736264,
  328. BMDDeckLinkSubDeviceIndex = /* 'subi' */ 0x73756269,
  329. BMDDeckLinkPersistentID = /* 'peid' */ 0x70656964,
  330. BMDDeckLinkDeviceGroupID = /* 'dgid' */ 0x64676964,
  331. BMDDeckLinkTopologicalID = /* 'toid' */ 0x746F6964,
  332. BMDDeckLinkVideoOutputConnections = /* 'vocn' */ 0x766F636E, // Returns a BMDVideoConnection bit field
  333. BMDDeckLinkVideoInputConnections = /* 'vicn' */ 0x7669636E, // Returns a BMDVideoConnection bit field
  334. BMDDeckLinkAudioOutputConnections = /* 'aocn' */ 0x616F636E, // Returns a BMDAudioConnection bit field
  335. BMDDeckLinkAudioInputConnections = /* 'aicn' */ 0x6169636E, // Returns a BMDAudioConnection bit field
  336. BMDDeckLinkVideoIOSupport = /* 'vios' */ 0x76696F73, // Returns a BMDVideoIOSupport bit field
  337. BMDDeckLinkDeckControlConnections = /* 'dccn' */ 0x6463636E, // Returns a BMDDeckControlConnection bit field
  338. BMDDeckLinkDeviceInterface = /* 'dbus' */ 0x64627573, // Returns a BMDDeviceInterface
  339. BMDDeckLinkAudioInputRCAChannelCount = /* 'airc' */ 0x61697263,
  340. BMDDeckLinkAudioInputXLRChannelCount = /* 'aixc' */ 0x61697863,
  341. BMDDeckLinkAudioOutputRCAChannelCount = /* 'aorc' */ 0x616F7263,
  342. BMDDeckLinkAudioOutputXLRChannelCount = /* 'aoxc' */ 0x616F7863,
  343. BMDDeckLinkPairedDevicePersistentID = /* 'ppid' */ 0x70706964,
  344. /* Floats */
  345. BMDDeckLinkVideoInputGainMinimum = /* 'vigm' */ 0x7669676D,
  346. BMDDeckLinkVideoInputGainMaximum = /* 'vigx' */ 0x76696778,
  347. BMDDeckLinkVideoOutputGainMinimum = /* 'vogm' */ 0x766F676D,
  348. BMDDeckLinkVideoOutputGainMaximum = /* 'vogx' */ 0x766F6778,
  349. BMDDeckLinkMicrophoneInputGainMinimum = /* 'migm' */ 0x6D69676D,
  350. BMDDeckLinkMicrophoneInputGainMaximum = /* 'migx' */ 0x6D696778,
  351. /* Strings */
  352. BMDDeckLinkSerialPortDeviceName = /* 'slpn' */ 0x736C706E,
  353. BMDDeckLinkVendorName = /* 'vndr' */ 0x766E6472,
  354. BMDDeckLinkDisplayName = /* 'dspn' */ 0x6473706E,
  355. BMDDeckLinkModelName = /* 'mdln' */ 0x6D646C6E,
  356. BMDDeckLinkDeviceHandle = /* 'devh' */ 0x64657668
  357. } BMDDeckLinkAttributeID;
  358. /* Enum BMDDeckLinkAPIInformationID - DeckLinkAPI information ID */
  359. typedef [v1_enum] enum _BMDDeckLinkAPIInformationID {
  360. BMDDeckLinkAPIVersion = /* 'vers' */ 0x76657273
  361. } BMDDeckLinkAPIInformationID;
  362. /* Enum BMDDeckLinkStatusID - DeckLink Status ID */
  363. typedef [v1_enum] enum _BMDDeckLinkStatusID {
  364. /* Integers */
  365. bmdDeckLinkStatusDetectedVideoInputMode = /* 'dvim' */ 0x6476696D,
  366. bmdDeckLinkStatusDetectedVideoInputFlags = /* 'dvif' */ 0x64766966,
  367. bmdDeckLinkStatusCurrentVideoInputMode = /* 'cvim' */ 0x6376696D,
  368. bmdDeckLinkStatusCurrentVideoInputPixelFormat = /* 'cvip' */ 0x63766970,
  369. bmdDeckLinkStatusCurrentVideoInputFlags = /* 'cvif' */ 0x63766966,
  370. bmdDeckLinkStatusCurrentVideoOutputMode = /* 'cvom' */ 0x63766F6D,
  371. bmdDeckLinkStatusCurrentVideoOutputFlags = /* 'cvof' */ 0x63766F66,
  372. bmdDeckLinkStatusPCIExpressLinkWidth = /* 'pwid' */ 0x70776964,
  373. bmdDeckLinkStatusPCIExpressLinkSpeed = /* 'plnk' */ 0x706C6E6B,
  374. bmdDeckLinkStatusLastVideoOutputPixelFormat = /* 'opix' */ 0x6F706978,
  375. bmdDeckLinkStatusReferenceSignalMode = /* 'refm' */ 0x7265666D,
  376. bmdDeckLinkStatusReferenceSignalFlags = /* 'reff' */ 0x72656666,
  377. bmdDeckLinkStatusDuplexMode = /* 'dupx' */ 0x64757078,
  378. bmdDeckLinkStatusBusy = /* 'busy' */ 0x62757379,
  379. bmdDeckLinkStatusInterchangeablePanelType = /* 'icpt' */ 0x69637074,
  380. bmdDeckLinkStatusDeviceTemperature = /* 'dtmp' */ 0x64746D70,
  381. /* Flags */
  382. bmdDeckLinkStatusVideoInputSignalLocked = /* 'visl' */ 0x7669736C,
  383. bmdDeckLinkStatusReferenceSignalLocked = /* 'refl' */ 0x7265666C,
  384. bmdDeckLinkStatusReceivedEDID = /* 'edid' */ 0x65646964
  385. } BMDDeckLinkStatusID;
  386. /* Enum BMDDeckLinkVideoStatusFlags - */
  387. typedef [v1_enum] enum _BMDDeckLinkVideoStatusFlags {
  388. bmdDeckLinkVideoStatusPsF = 1 << 0,
  389. bmdDeckLinkVideoStatusDualStream3D = 1 << 1
  390. } BMDDeckLinkVideoStatusFlags;
  391. /* Enum BMDDuplexStatus - Duplex status of the device */
  392. typedef [v1_enum] enum _BMDDuplexStatus {
  393. bmdDuplexStatusFullDuplex = /* 'fdup' */ 0x66647570,
  394. bmdDuplexStatusHalfDuplex = /* 'hdup' */ 0x68647570,
  395. bmdDuplexStatusSimplex = /* 'splx' */ 0x73706C78,
  396. bmdDuplexStatusInactive = /* 'inac' */ 0x696E6163
  397. } BMDDuplexStatus;
  398. /* Enum BMDPanelType - The type of interchangeable panel */
  399. typedef [v1_enum] enum _BMDPanelType {
  400. bmdPanelNotDetected = /* 'npnl' */ 0x6E706E6C,
  401. bmdPanelTeranexMiniSmartPanel = /* 'tmsm' */ 0x746D736D
  402. } BMDPanelType;
  403. /* Enum BMDDeviceBusyState - Current device busy state */
  404. [v1_enum] enum _BMDDeviceBusyState {
  405. bmdDeviceCaptureBusy = 1 << 0,
  406. bmdDevicePlaybackBusy = 1 << 1,
  407. bmdDeviceSerialPortBusy = 1 << 2
  408. };
  409. /* Enum BMDVideoIOSupport - Device video input/output support */
  410. typedef [v1_enum] enum _BMDVideoIOSupport {
  411. bmdDeviceSupportsCapture = 1 << 0,
  412. bmdDeviceSupportsPlayback = 1 << 1
  413. } BMDVideoIOSupport;
  414. /* Enum BMD3DPreviewFormat - Linked Frame preview format */
  415. typedef [v1_enum] enum _BMD3DPreviewFormat {
  416. bmd3DPreviewFormatDefault = /* 'defa' */ 0x64656661,
  417. bmd3DPreviewFormatLeftOnly = /* 'left' */ 0x6C656674,
  418. bmd3DPreviewFormatRightOnly = /* 'righ' */ 0x72696768,
  419. bmd3DPreviewFormatSideBySide = /* 'side' */ 0x73696465,
  420. bmd3DPreviewFormatTopBottom = /* 'topb' */ 0x746F7062
  421. } BMD3DPreviewFormat;
  422. /* Enum BMDNotifications - Events that can be subscribed through IDeckLinkNotification */
  423. typedef [v1_enum] enum _BMDNotifications {
  424. bmdPreferencesChanged = /* 'pref' */ 0x70726566,
  425. bmdStatusChanged = /* 'stat' */ 0x73746174
  426. } BMDNotifications;
  427. // Forward Declarations
  428. interface IDeckLinkVideoOutputCallback;
  429. interface IDeckLinkInputCallback;
  430. interface IDeckLinkEncoderInputCallback;
  431. interface IDeckLinkMemoryAllocator;
  432. interface IDeckLinkAudioOutputCallback;
  433. interface IDeckLinkIterator;
  434. interface IDeckLinkAPIInformation;
  435. interface IDeckLinkOutput;
  436. interface IDeckLinkInput;
  437. interface IDeckLinkEncoderInput;
  438. interface IDeckLinkVideoFrame;
  439. interface IDeckLinkMutableVideoFrame;
  440. interface IDeckLinkVideoFrame3DExtensions;
  441. interface IDeckLinkVideoFrameMetadataExtensions;
  442. interface IDeckLinkVideoInputFrame;
  443. interface IDeckLinkAncillaryPacket;
  444. interface IDeckLinkAncillaryPacketIterator;
  445. interface IDeckLinkVideoFrameAncillaryPackets;
  446. interface IDeckLinkVideoFrameAncillary;
  447. interface IDeckLinkEncoderPacket;
  448. interface IDeckLinkEncoderVideoPacket;
  449. interface IDeckLinkEncoderAudioPacket;
  450. interface IDeckLinkH265NALPacket;
  451. interface IDeckLinkAudioInputPacket;
  452. interface IDeckLinkScreenPreviewCallback;
  453. interface IDeckLinkGLScreenPreviewHelper;
  454. interface IDeckLinkDX9ScreenPreviewHelper;
  455. interface IDeckLinkNotificationCallback;
  456. interface IDeckLinkNotification;
  457. interface IDeckLinkAttributes;
  458. interface IDeckLinkStatus;
  459. interface IDeckLinkKeyer;
  460. interface IDeckLinkVideoConversion;
  461. interface IDeckLinkDeviceNotificationCallback;
  462. interface IDeckLinkDiscovery;
  463. /* Interface IDeckLinkVideoOutputCallback - Frame completion callback. */
  464. [
  465. object,
  466. uuid(20AA5225-1958-47CB-820B-80A8D521A6EE),
  467. helpstring("Frame completion callback.")
  468. ] interface IDeckLinkVideoOutputCallback : IUnknown
  469. {
  470. HRESULT ScheduledFrameCompleted([in] IDeckLinkVideoFrame *completedFrame, [in] BMDOutputFrameCompletionResult result);
  471. HRESULT ScheduledPlaybackHasStopped(void);
  472. };
  473. /* Interface IDeckLinkInputCallback - Frame arrival callback. */
  474. [
  475. object,
  476. uuid(DD04E5EC-7415-42AB-AE4A-E80C4DFC044A),
  477. helpstring("Frame arrival callback.")
  478. ] interface IDeckLinkInputCallback : IUnknown
  479. {
  480. HRESULT VideoInputFormatChanged([in] BMDVideoInputFormatChangedEvents notificationEvents, [in] IDeckLinkDisplayMode *newDisplayMode, [in] BMDDetectedVideoInputFormatFlags detectedSignalFlags);
  481. HRESULT VideoInputFrameArrived([in] IDeckLinkVideoInputFrame* videoFrame, [in] IDeckLinkAudioInputPacket* audioPacket);
  482. };
  483. /* Interface IDeckLinkEncoderInputCallback - Frame arrival callback. */
  484. [
  485. object,
  486. uuid(ACF13E61-F4A0-4974-A6A7-59AFF6268B31),
  487. helpstring("Frame arrival callback.")
  488. ] interface IDeckLinkEncoderInputCallback : IUnknown
  489. {
  490. HRESULT VideoInputSignalChanged([in] BMDVideoInputFormatChangedEvents notificationEvents, [in] IDeckLinkDisplayMode *newDisplayMode, [in] BMDDetectedVideoInputFormatFlags detectedSignalFlags);
  491. HRESULT VideoPacketArrived([in] IDeckLinkEncoderVideoPacket* videoPacket);
  492. HRESULT AudioPacketArrived([in] IDeckLinkEncoderAudioPacket* audioPacket);
  493. };
  494. /* Interface IDeckLinkMemoryAllocator - Memory allocator for video frames. */
  495. [
  496. object,
  497. uuid(B36EB6E7-9D29-4AA8-92EF-843B87A289E8),
  498. local,
  499. helpstring("Memory allocator for video frames.")
  500. ] interface IDeckLinkMemoryAllocator : IUnknown
  501. {
  502. HRESULT AllocateBuffer([in] unsigned int bufferSize, [out] void **allocatedBuffer);
  503. HRESULT ReleaseBuffer([in] void *buffer);
  504. HRESULT Commit(void);
  505. HRESULT Decommit(void);
  506. };
  507. /* Interface IDeckLinkAudioOutputCallback - Optional callback to allow audio samples to be pulled as required. */
  508. [
  509. object,
  510. uuid(403C681B-7F46-4A12-B993-2BB127084EE6),
  511. local,
  512. helpstring("Optional callback to allow audio samples to be pulled as required.")
  513. ] interface IDeckLinkAudioOutputCallback : IUnknown
  514. {
  515. HRESULT RenderAudioSamples([in] BOOL preroll);
  516. };
  517. /* Interface IDeckLinkIterator - enumerates installed DeckLink hardware */
  518. [
  519. object,
  520. uuid(50FB36CD-3063-4B73-BDBB-958087F2D8BA),
  521. helpstring("enumerates installed DeckLink hardware")
  522. ] interface IDeckLinkIterator : IUnknown
  523. {
  524. HRESULT Next([out] IDeckLink **deckLinkInstance);
  525. };
  526. /* Interface IDeckLinkAPIInformation - DeckLinkAPI attribute interface */
  527. [
  528. object,
  529. uuid(7BEA3C68-730D-4322-AF34-8A7152B532A4),
  530. helpstring("DeckLinkAPI attribute interface")
  531. ] interface IDeckLinkAPIInformation : IUnknown
  532. {
  533. HRESULT GetFlag([in] BMDDeckLinkAPIInformationID cfgID, [out] BOOL *value);
  534. HRESULT GetInt([in] BMDDeckLinkAPIInformationID cfgID, [out] LONGLONG *value);
  535. HRESULT GetFloat([in] BMDDeckLinkAPIInformationID cfgID, [out] double *value);
  536. HRESULT GetString([in] BMDDeckLinkAPIInformationID cfgID, [out] BSTR *value);
  537. };
  538. /* Interface IDeckLinkOutput - Created by QueryInterface from IDeckLink. */
  539. [
  540. object,
  541. uuid(CC5C8A6E-3F2F-4B3A-87EA-FD78AF300564),
  542. local,
  543. helpstring("Created by QueryInterface from IDeckLink.")
  544. ] interface IDeckLinkOutput : IUnknown
  545. {
  546. HRESULT DoesSupportVideoMode([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoOutputFlags flags, [out] BMDDisplayModeSupport *result, [out] IDeckLinkDisplayMode **resultDisplayMode);
  547. HRESULT GetDisplayModeIterator([out] IDeckLinkDisplayModeIterator **iterator);
  548. HRESULT SetScreenPreviewCallback([in] IDeckLinkScreenPreviewCallback *previewCallback);
  549. /* Video Output */
  550. HRESULT EnableVideoOutput([in] BMDDisplayMode displayMode, [in] BMDVideoOutputFlags flags);
  551. HRESULT DisableVideoOutput(void);
  552. HRESULT SetVideoOutputFrameMemoryAllocator([in] IDeckLinkMemoryAllocator *theAllocator);
  553. HRESULT CreateVideoFrame([in] int width, [in] int height, [in] int rowBytes, [in] BMDPixelFormat pixelFormat, [in] BMDFrameFlags flags, [out] IDeckLinkMutableVideoFrame **outFrame);
  554. HRESULT CreateAncillaryData([in] BMDPixelFormat pixelFormat, [out] IDeckLinkVideoFrameAncillary **outBuffer); // Use of IDeckLinkVideoFrameAncillaryPackets is preferred
  555. HRESULT DisplayVideoFrameSync([in] IDeckLinkVideoFrame *theFrame);
  556. HRESULT ScheduleVideoFrame([in] IDeckLinkVideoFrame *theFrame, [in] BMDTimeValue displayTime, [in] BMDTimeValue displayDuration, [in] BMDTimeScale timeScale);
  557. HRESULT SetScheduledFrameCompletionCallback([in] IDeckLinkVideoOutputCallback *theCallback);
  558. HRESULT GetBufferedVideoFrameCount([out] unsigned int *bufferedFrameCount);
  559. /* Audio Output */
  560. HRESULT EnableAudioOutput([in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount, [in] BMDAudioOutputStreamType streamType);
  561. HRESULT DisableAudioOutput(void);
  562. HRESULT WriteAudioSamplesSync([in] void *buffer, [in] unsigned int sampleFrameCount, [out] unsigned int *sampleFramesWritten);
  563. HRESULT BeginAudioPreroll(void);
  564. HRESULT EndAudioPreroll(void);
  565. HRESULT ScheduleAudioSamples([in] void *buffer, [in] unsigned int sampleFrameCount, [in] BMDTimeValue streamTime, [in] BMDTimeScale timeScale, [out] unsigned int *sampleFramesWritten);
  566. HRESULT GetBufferedAudioSampleFrameCount([out] unsigned int *bufferedSampleFrameCount);
  567. HRESULT FlushBufferedAudioSamples(void);
  568. HRESULT SetAudioCallback([in] IDeckLinkAudioOutputCallback *theCallback);
  569. /* Output Control */
  570. HRESULT StartScheduledPlayback([in] BMDTimeValue playbackStartTime, [in] BMDTimeScale timeScale, [in] double playbackSpeed);
  571. HRESULT StopScheduledPlayback([in] BMDTimeValue stopPlaybackAtTime, [out] BMDTimeValue *actualStopTime, [in] BMDTimeScale timeScale);
  572. HRESULT IsScheduledPlaybackRunning([out] BOOL *active);
  573. HRESULT GetScheduledStreamTime([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *streamTime, [out] double *playbackSpeed);
  574. HRESULT GetReferenceStatus([out] BMDReferenceStatus *referenceStatus);
  575. /* Hardware Timing */
  576. HRESULT GetHardwareReferenceClock([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *hardwareTime, [out] BMDTimeValue *timeInFrame, [out] BMDTimeValue *ticksPerFrame);
  577. HRESULT GetFrameCompletionReferenceTimestamp([in] IDeckLinkVideoFrame *theFrame, [in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *frameCompletionTimestamp);
  578. };
  579. /* Interface IDeckLinkInput - Created by QueryInterface from IDeckLink. */
  580. [
  581. object,
  582. uuid(AF22762B-DFAC-4846-AA79-FA8883560995),
  583. helpstring("Created by QueryInterface from IDeckLink.")
  584. ] interface IDeckLinkInput : IUnknown
  585. {
  586. HRESULT DoesSupportVideoMode([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags, [out] BMDDisplayModeSupport *result, [out] IDeckLinkDisplayMode **resultDisplayMode);
  587. HRESULT GetDisplayModeIterator([out] IDeckLinkDisplayModeIterator **iterator);
  588. HRESULT SetScreenPreviewCallback([in] IDeckLinkScreenPreviewCallback *previewCallback);
  589. /* Video Input */
  590. HRESULT EnableVideoInput([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags);
  591. HRESULT DisableVideoInput(void);
  592. HRESULT GetAvailableVideoFrameCount([out] unsigned int *availableFrameCount);
  593. HRESULT SetVideoInputFrameMemoryAllocator([in] IDeckLinkMemoryAllocator *theAllocator);
  594. /* Audio Input */
  595. HRESULT EnableAudioInput([in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount);
  596. HRESULT DisableAudioInput(void);
  597. HRESULT GetAvailableAudioSampleFrameCount([out] unsigned int *availableSampleFrameCount);
  598. /* Input Control */
  599. HRESULT StartStreams(void);
  600. HRESULT StopStreams(void);
  601. HRESULT PauseStreams(void);
  602. HRESULT FlushStreams(void);
  603. HRESULT SetCallback([in] IDeckLinkInputCallback *theCallback);
  604. /* Hardware Timing */
  605. HRESULT GetHardwareReferenceClock([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *hardwareTime, [out] BMDTimeValue *timeInFrame, [out] BMDTimeValue *ticksPerFrame);
  606. };
  607. /* Interface IDeckLinkEncoderInput - Created by QueryInterface from IDeckLink. */
  608. [
  609. object,
  610. uuid(270587DA-6B7D-42E7-A1F0-6D853F581185),
  611. helpstring("Created by QueryInterface from IDeckLink.")
  612. ] interface IDeckLinkEncoderInput : IUnknown
  613. {
  614. HRESULT DoesSupportVideoMode([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags, [out] BMDDisplayModeSupport *result, [out] IDeckLinkDisplayMode **resultDisplayMode);
  615. HRESULT GetDisplayModeIterator([out] IDeckLinkDisplayModeIterator **iterator);
  616. /* Video Input */
  617. HRESULT EnableVideoInput([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags);
  618. HRESULT DisableVideoInput(void);
  619. HRESULT GetAvailablePacketsCount([out] unsigned int *availablePacketsCount);
  620. HRESULT SetMemoryAllocator([in] IDeckLinkMemoryAllocator *theAllocator);
  621. /* Audio Input */
  622. HRESULT EnableAudioInput([in] BMDAudioFormat audioFormat, [in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount);
  623. HRESULT DisableAudioInput(void);
  624. HRESULT GetAvailableAudioSampleFrameCount([out] unsigned int *availableSampleFrameCount);
  625. /* Input Control */
  626. HRESULT StartStreams(void);
  627. HRESULT StopStreams(void);
  628. HRESULT PauseStreams(void);
  629. HRESULT FlushStreams(void);
  630. HRESULT SetCallback([in] IDeckLinkEncoderInputCallback *theCallback);
  631. /* Hardware Timing */
  632. HRESULT GetHardwareReferenceClock([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue *hardwareTime, [out] BMDTimeValue *timeInFrame, [out] BMDTimeValue *ticksPerFrame);
  633. };
  634. /* Interface IDeckLinkVideoFrame - Interface to encapsulate a video frame; can be caller-implemented. */
  635. [
  636. object,
  637. uuid(3F716FE0-F023-4111-BE5D-EF4414C05B17),
  638. local,
  639. helpstring("Interface to encapsulate a video frame; can be caller-implemented.")
  640. ] interface IDeckLinkVideoFrame : IUnknown
  641. {
  642. long GetWidth(void);
  643. long GetHeight(void);
  644. long GetRowBytes(void);
  645. BMDPixelFormat GetPixelFormat(void);
  646. BMDFrameFlags GetFlags(void);
  647. HRESULT GetBytes([out] void **buffer);
  648. HRESULT GetTimecode([in] BMDTimecodeFormat format, [out] IDeckLinkTimecode **timecode);
  649. HRESULT GetAncillaryData([out] IDeckLinkVideoFrameAncillary **ancillary); // Use of IDeckLinkVideoFrameAncillaryPackets is preferred
  650. };
  651. /* Interface IDeckLinkMutableVideoFrame - Created by IDeckLinkOutput::CreateVideoFrame. */
  652. [
  653. object,
  654. uuid(69E2639F-40DA-4E19-B6F2-20ACE815C390),
  655. local,
  656. helpstring("Created by IDeckLinkOutput::CreateVideoFrame.")
  657. ] interface IDeckLinkMutableVideoFrame : IDeckLinkVideoFrame
  658. {
  659. HRESULT SetFlags([in] BMDFrameFlags newFlags);
  660. HRESULT SetTimecode([in] BMDTimecodeFormat format, [in] IDeckLinkTimecode *timecode);
  661. HRESULT SetTimecodeFromComponents([in] BMDTimecodeFormat format, [in] unsigned char hours, [in] unsigned char minutes, [in] unsigned char seconds, [in] unsigned char frames, [in] BMDTimecodeFlags flags);
  662. HRESULT SetAncillaryData([in] IDeckLinkVideoFrameAncillary *ancillary);
  663. HRESULT SetTimecodeUserBits([in] BMDTimecodeFormat format, [in] BMDTimecodeUserBits userBits);
  664. };
  665. /* Interface IDeckLinkVideoFrame3DExtensions - Optional interface implemented on IDeckLinkVideoFrame to support 3D frames */
  666. [
  667. object,
  668. uuid(DA0F7E4A-EDC7-48A8-9CDD-2DB51C729CD7),
  669. local,
  670. helpstring("Optional interface implemented on IDeckLinkVideoFrame to support 3D frames")
  671. ] interface IDeckLinkVideoFrame3DExtensions : IUnknown
  672. {
  673. BMDVideo3DPackingFormat Get3DPackingFormat(void);
  674. HRESULT GetFrameForRightEye([out] IDeckLinkVideoFrame* *rightEyeFrame);
  675. };
  676. /* Interface IDeckLinkVideoFrameMetadataExtensions - Optional interface implemented on IDeckLinkVideoFrame to support frame metadata such as HDMI HDR information */
  677. [
  678. object,
  679. uuid(D5973DC9-6432-46D0-8F0B-2496F8A1238F),
  680. local,
  681. helpstring("Optional interface implemented on IDeckLinkVideoFrame to support frame metadata such as HDMI HDR information")
  682. ] interface IDeckLinkVideoFrameMetadataExtensions : IUnknown
  683. {
  684. HRESULT GetInt([in] BMDDeckLinkFrameMetadataID metadataID, [out] LONGLONG *value);
  685. HRESULT GetFloat([in] BMDDeckLinkFrameMetadataID metadataID, [out] double *value);
  686. HRESULT GetFlag([in] BMDDeckLinkFrameMetadataID metadataID, [out] BOOL* value);
  687. HRESULT GetString([in] BMDDeckLinkFrameMetadataID metadataID, [out] BSTR *value);
  688. };
  689. /* Interface IDeckLinkVideoInputFrame - Provided by the IDeckLinkVideoInput frame arrival callback. */
  690. [
  691. object,
  692. uuid(05CFE374-537C-4094-9A57-680525118F44),
  693. local,
  694. helpstring("Provided by the IDeckLinkVideoInput frame arrival callback.")
  695. ] interface IDeckLinkVideoInputFrame : IDeckLinkVideoFrame
  696. {
  697. HRESULT GetStreamTime([out] BMDTimeValue *frameTime, [out] BMDTimeValue *frameDuration, [in] BMDTimeScale timeScale);
  698. HRESULT GetHardwareReferenceTimestamp([in] BMDTimeScale timeScale, [out] BMDTimeValue *frameTime, [out] BMDTimeValue *frameDuration);
  699. };
  700. /* Interface IDeckLinkAncillaryPacket - On output, user needs to implement this interface */
  701. [
  702. object,
  703. uuid(CC5BBF7E-029C-4D3B-9158-6000EF5E3670),
  704. helpstring("On output, user needs to implement this interface")
  705. ] interface IDeckLinkAncillaryPacket : IUnknown
  706. {
  707. HRESULT GetBytes([in] BMDAncillaryPacketFormat format /* For output, only one format need be offered */, [out] const void **data /* Optional */, [out] unsigned int *size /* Optional */);
  708. unsigned char GetDID(void);
  709. unsigned char GetSDID(void);
  710. unsigned int GetLineNumber(void); // On output, zero is auto
  711. unsigned char GetDataStreamIndex(void); // Usually zero. Can only be 1 if non-SD and the first data stream is completely full
  712. };
  713. /* Interface IDeckLinkAncillaryPacketIterator - Enumerates ancillary packets */
  714. [
  715. object,
  716. uuid(3FC8994B-88FB-4C17-968F-9AAB69D964A7),
  717. helpstring("Enumerates ancillary packets")
  718. ] interface IDeckLinkAncillaryPacketIterator : IUnknown
  719. {
  720. HRESULT Next([out] IDeckLinkAncillaryPacket **packet);
  721. };
  722. /* Interface IDeckLinkVideoFrameAncillaryPackets - Obtained through QueryInterface() on an IDeckLinkVideoFrame object. */
  723. [
  724. object,
  725. uuid(6C186C0F-459E-41D8-AEE2-4812D81AEE68),
  726. local,
  727. helpstring("Obtained through QueryInterface() on an IDeckLinkVideoFrame object.")
  728. ] interface IDeckLinkVideoFrameAncillaryPackets : IUnknown
  729. {
  730. HRESULT GetPacketIterator([out] IDeckLinkAncillaryPacketIterator **iterator);
  731. HRESULT GetFirstPacketByID([in] unsigned char DID, [in] unsigned char SDID, [out] IDeckLinkAncillaryPacket **packet);
  732. HRESULT AttachPacket([in] IDeckLinkAncillaryPacket *packet); // Implement IDeckLinkAncillaryPacket to output your own
  733. HRESULT DetachPacket([in] IDeckLinkAncillaryPacket *packet);
  734. HRESULT DetachAllPackets(void);
  735. };
  736. /* Interface IDeckLinkVideoFrameAncillary - Use of IDeckLinkVideoFrameAncillaryPackets is preferred. Obtained through QueryInterface() on an IDeckLinkVideoFrame object. */
  737. [
  738. object,
  739. uuid(732E723C-D1A4-4E29-9E8E-4A88797A0004),
  740. local,
  741. helpstring("Use of IDeckLinkVideoFrameAncillaryPackets is preferred. Obtained through QueryInterface() on an IDeckLinkVideoFrame object.")
  742. ] interface IDeckLinkVideoFrameAncillary : IUnknown
  743. {
  744. 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
  745. BMDPixelFormat GetPixelFormat(void);
  746. BMDDisplayMode GetDisplayMode(void);
  747. };
  748. /* Interface IDeckLinkEncoderPacket - Interface to encapsulate an encoded packet. */
  749. [
  750. object,
  751. uuid(B693F36C-316E-4AF1-B6C2-F389A4BCA620),
  752. local,
  753. helpstring("Interface to encapsulate an encoded packet.")
  754. ] interface IDeckLinkEncoderPacket : IUnknown
  755. {
  756. HRESULT GetBytes([out] void **buffer);
  757. long GetSize(void);
  758. HRESULT GetStreamTime([out] BMDTimeValue *frameTime, [in] BMDTimeScale timeScale);
  759. BMDPacketType GetPacketType(void);
  760. };
  761. /* Interface IDeckLinkEncoderVideoPacket - Provided by the IDeckLinkEncoderInput video packet arrival callback. */
  762. [
  763. object,
  764. uuid(4E7FD944-E8C7-4EAC-B8C0-7B77F80F5AE0),
  765. local,
  766. helpstring("Provided by the IDeckLinkEncoderInput video packet arrival callback.")
  767. ] interface IDeckLinkEncoderVideoPacket : IDeckLinkEncoderPacket
  768. {
  769. BMDPixelFormat GetPixelFormat(void);
  770. HRESULT GetHardwareReferenceTimestamp([in] BMDTimeScale timeScale, [out] BMDTimeValue *frameTime, [out] BMDTimeValue *frameDuration);
  771. HRESULT GetTimecode([in] BMDTimecodeFormat format, [out] IDeckLinkTimecode **timecode);
  772. };
  773. /* Interface IDeckLinkEncoderAudioPacket - Provided by the IDeckLinkEncoderInput audio packet arrival callback. */
  774. [
  775. object,
  776. uuid(49E8EDC8-693B-4E14-8EF6-12C658F5A07A),
  777. local,
  778. helpstring("Provided by the IDeckLinkEncoderInput audio packet arrival callback.")
  779. ] interface IDeckLinkEncoderAudioPacket : IDeckLinkEncoderPacket
  780. {
  781. BMDAudioFormat GetAudioFormat(void);
  782. };
  783. /* Interface IDeckLinkH265NALPacket - Obtained through QueryInterface() on an IDeckLinkEncoderVideoPacket object */
  784. [
  785. object,
  786. uuid(639C8E0B-68D5-4BDE-A6D4-95F3AEAFF2E7),
  787. local,
  788. helpstring("Obtained through QueryInterface() on an IDeckLinkEncoderVideoPacket object")
  789. ] interface IDeckLinkH265NALPacket : IDeckLinkEncoderVideoPacket
  790. {
  791. HRESULT GetUnitType([out] unsigned char *unitType);
  792. HRESULT GetBytesNoPrefix([out] void **buffer);
  793. long GetSizeNoPrefix(void);
  794. };
  795. /* Interface IDeckLinkAudioInputPacket - Provided by the IDeckLinkInput callback. */
  796. [
  797. object,
  798. uuid(E43D5870-2894-11DE-8C30-0800200C9A66),
  799. local,
  800. helpstring("Provided by the IDeckLinkInput callback.")
  801. ] interface IDeckLinkAudioInputPacket : IUnknown
  802. {
  803. long GetSampleFrameCount(void);
  804. HRESULT GetBytes([out] void **buffer);
  805. HRESULT GetPacketTime([out] BMDTimeValue *packetTime, [in] BMDTimeScale timeScale);
  806. };
  807. /* Interface IDeckLinkScreenPreviewCallback - Screen preview callback */
  808. [
  809. object,
  810. uuid(B1D3F49A-85FE-4C5D-95C8-0B5D5DCCD438),
  811. local,
  812. helpstring("Screen preview callback")
  813. ] interface IDeckLinkScreenPreviewCallback : IUnknown
  814. {
  815. HRESULT DrawFrame([in] IDeckLinkVideoFrame *theFrame);
  816. };
  817. /* Interface IDeckLinkGLScreenPreviewHelper - Created with CoCreateInstance(). */
  818. [
  819. object,
  820. uuid(504E2209-CAC7-4C1A-9FB4-C5BB6274D22F),
  821. local,
  822. helpstring("Created with CoCreateInstance().")
  823. ] interface IDeckLinkGLScreenPreviewHelper : IUnknown
  824. {
  825. /* Methods must be called with OpenGL context set */
  826. HRESULT InitializeGL(void);
  827. HRESULT PaintGL(void);
  828. HRESULT SetFrame([in] IDeckLinkVideoFrame *theFrame);
  829. HRESULT Set3DPreviewFormat([in] BMD3DPreviewFormat previewFormat);
  830. };
  831. /* Interface IDeckLinkDX9ScreenPreviewHelper - Created with CoCreateInstance(). */
  832. [
  833. object,
  834. uuid(2094B522-D1A1-40C0-9AC7-1C012218EF02),
  835. local,
  836. helpstring("Created with CoCreateInstance().")
  837. ] interface IDeckLinkDX9ScreenPreviewHelper : IUnknown
  838. {
  839. HRESULT Initialize([in] void *device);
  840. HRESULT Render([in] RECT *rc);
  841. HRESULT SetFrame([in] IDeckLinkVideoFrame *theFrame);
  842. HRESULT Set3DPreviewFormat([in] BMD3DPreviewFormat previewFormat);
  843. };
  844. /* Interface IDeckLinkNotificationCallback - DeckLink Notification Callback Interface */
  845. [
  846. object,
  847. uuid(b002a1ec-070d-4288-8289-bd5d36e5ff0d),
  848. local,
  849. helpstring("DeckLink Notification Callback Interface")
  850. ] interface IDeckLinkNotificationCallback : IUnknown
  851. {
  852. HRESULT Notify([in] BMDNotifications topic, [in] ULONGLONG param1, [in] ULONGLONG param2);
  853. };
  854. /* Interface IDeckLinkNotification - DeckLink Notification interface */
  855. [
  856. object,
  857. uuid(0a1fb207-e215-441b-9b19-6fa1575946c5),
  858. local,
  859. helpstring("DeckLink Notification interface")
  860. ] interface IDeckLinkNotification : IUnknown
  861. {
  862. HRESULT Subscribe([in] BMDNotifications topic, [in] IDeckLinkNotificationCallback *theCallback);
  863. HRESULT Unsubscribe([in] BMDNotifications topic, [in] IDeckLinkNotificationCallback *theCallback);
  864. };
  865. /* Interface IDeckLinkAttributes - DeckLink Attribute interface */
  866. [
  867. object,
  868. uuid(ABC11843-D966-44CB-96E2-A1CB5D3135C4),
  869. local,
  870. helpstring("DeckLink Attribute interface")
  871. ] interface IDeckLinkAttributes : IUnknown
  872. {
  873. HRESULT GetFlag([in] BMDDeckLinkAttributeID cfgID, [out] BOOL *value);
  874. HRESULT GetInt([in] BMDDeckLinkAttributeID cfgID, [out] LONGLONG *value);
  875. HRESULT GetFloat([in] BMDDeckLinkAttributeID cfgID, [out] double *value);
  876. HRESULT GetString([in] BMDDeckLinkAttributeID cfgID, [out] BSTR *value);
  877. };
  878. /* Interface IDeckLinkStatus - DeckLink Status interface */
  879. [
  880. object,
  881. uuid(5F558200-4028-49BC-BEAC-DB3FA4A96E46),
  882. local,
  883. helpstring("DeckLink Status interface")
  884. ] interface IDeckLinkStatus : IUnknown
  885. {
  886. HRESULT GetFlag([in] BMDDeckLinkStatusID statusID, [out] BOOL *value);
  887. HRESULT GetInt([in] BMDDeckLinkStatusID statusID, [out] LONGLONG *value);
  888. HRESULT GetFloat([in] BMDDeckLinkStatusID statusID, [out] double *value);
  889. HRESULT GetString([in] BMDDeckLinkStatusID statusID, [out] BSTR *value);
  890. HRESULT GetBytes([in] BMDDeckLinkStatusID statusID, [out] void *buffer, [in, out] unsigned int *bufferSize);
  891. };
  892. /* Interface IDeckLinkKeyer - DeckLink Keyer interface */
  893. [
  894. object,
  895. uuid(89AFCAF5-65F8-421E-98F7-96FE5F5BFBA3),
  896. local,
  897. helpstring("DeckLink Keyer interface")
  898. ] interface IDeckLinkKeyer : IUnknown
  899. {
  900. HRESULT Enable([in] BOOL isExternal);
  901. HRESULT SetLevel([in] unsigned char level);
  902. HRESULT RampUp([in] unsigned int numberOfFrames);
  903. HRESULT RampDown([in] unsigned int numberOfFrames);
  904. HRESULT Disable(void);
  905. };
  906. /* Interface IDeckLinkVideoConversion - Created with CoCreateInstance(). */
  907. [
  908. object,
  909. uuid(3BBCB8A2-DA2C-42D9-B5D8-88083644E99A),
  910. local,
  911. helpstring("Created with CoCreateInstance().")
  912. ] interface IDeckLinkVideoConversion : IUnknown
  913. {
  914. HRESULT ConvertFrame([in] IDeckLinkVideoFrame* srcFrame, [in] IDeckLinkVideoFrame* dstFrame);
  915. };
  916. /* Interface IDeckLinkDeviceNotificationCallback - DeckLink device arrival/removal notification callbacks */
  917. [
  918. object,
  919. uuid(4997053B-0ADF-4CC8-AC70-7A50C4BE728F),
  920. helpstring("DeckLink device arrival/removal notification callbacks")
  921. ] interface IDeckLinkDeviceNotificationCallback : IUnknown
  922. {
  923. HRESULT DeckLinkDeviceArrived([in] IDeckLink* deckLinkDevice);
  924. HRESULT DeckLinkDeviceRemoved([in] IDeckLink* deckLinkDevice);
  925. };
  926. /* Interface IDeckLinkDiscovery - DeckLink device discovery */
  927. [
  928. object,
  929. uuid(CDBF631C-BC76-45FA-B44D-C55059BC6101),
  930. helpstring("DeckLink device discovery")
  931. ] interface IDeckLinkDiscovery : IUnknown
  932. {
  933. HRESULT InstallDeviceNotifications([in] IDeckLinkDeviceNotificationCallback* deviceNotificationCallback);
  934. HRESULT UninstallDeviceNotifications(void);
  935. };
  936. /* Coclasses */
  937. importlib("stdole2.tlb");
  938. [
  939. uuid(87D2693F-8D4A-45C7-B43F-10ACBA25E68F),
  940. helpstring("CDeckLinkIterator Class")
  941. ] coclass CDeckLinkIterator
  942. {
  943. [default] interface IDeckLinkIterator;
  944. };
  945. [
  946. uuid(263CA19F-ED09-482E-9F9D-84005783A237),
  947. helpstring("CDeckLinkAPIInformation Class")
  948. ] coclass CDeckLinkAPIInformation
  949. {
  950. [default] interface IDeckLinkAPIInformation;
  951. };
  952. [
  953. uuid(F63E77C7-B655-4A4A-9AD0-3CA85D394343),
  954. helpstring("CDeckLinkGLScreenPreviewHelper Class")
  955. ] coclass CDeckLinkGLScreenPreviewHelper
  956. {
  957. [default] interface IDeckLinkGLScreenPreviewHelper;
  958. };
  959. [
  960. uuid(CC010023-E01D-4525-9D59-80C8AB3DC7A0),
  961. helpstring("CDeckLinkDX9ScreenPreviewHelper Class")
  962. ] coclass CDeckLinkDX9ScreenPreviewHelper
  963. {
  964. [default] interface IDeckLinkDX9ScreenPreviewHelper;
  965. };
  966. [
  967. uuid(7DBBBB11-5B7B-467D-AEA4-CEA468FD368C),
  968. helpstring("CDeckLinkVideoConversion Class")
  969. ] coclass CDeckLinkVideoConversion
  970. {
  971. [default] interface IDeckLinkVideoConversion;
  972. };
  973. [
  974. uuid(652615D4-26CD-4514-B161-2FD5072ED008),
  975. helpstring("CDeckLinkDiscovery Class")
  976. ] coclass CDeckLinkDiscovery
  977. {
  978. [default] interface IDeckLinkDiscovery;
  979. };
  980. [
  981. uuid(F891AD29-D0C2-46E9-A926-4E2D0DD8CFAD),
  982. helpstring("CDeckLinkVideoFrameAncillaryPackets Class")
  983. ] coclass CDeckLinkVideoFrameAncillaryPackets
  984. {
  985. [default] interface IDeckLinkVideoFrameAncillaryPackets;
  986. };
  987. // import deprecated interfaces
  988. #include "DeckLinkAPI_v10_9.idl"
  989. #include "DeckLinkAPIStreaming_v10_8.idl"
  990. #include "DeckLinkAPI_v10_8.idl"
  991. #include "DeckLinkAPI_v10_6.idl"
  992. #include "DeckLinkAPI_v10_5.idl"
  993. #include "DeckLinkAPI_v10_4.idl"
  994. #include "DeckLinkAPI_v10_2.idl"
  995. #include "DeckLinkAPI_v9_9.idl"
  996. #include "DeckLinkAPI_v9_2.idl"
  997. #include "DeckLinkAPI_v8_1.idl"
  998. #include "DeckLinkAPI_v8_0.idl"
  999. #include "DeckLinkAPI_v7_9.idl"
  1000. #include "DeckLinkAPI_v7_6.idl"
  1001. #include "DeckLinkAPI_v7_3.idl"
  1002. #include "DeckLinkAPI_v7_1.idl"
  1003. };