DeckLinkAPI.h 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. /* -LICENSE-START-
  2. ** Copyright (c) 2014 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_DECKLINKAPI_H
  28. #define BMD_DECKLINKAPI_H
  29. #ifndef BMD_CONST
  30. #if defined(_MSC_VER)
  31. #define BMD_CONST __declspec(selectany) static const
  32. #else
  33. #define BMD_CONST static const
  34. #endif
  35. #endif
  36. /* DeckLink API */
  37. #include <CoreFoundation/CoreFoundation.h>
  38. #include <CoreFoundation/CFPlugInCOM.h>
  39. #include <stdint.h>
  40. #include "DeckLinkAPITypes.h"
  41. #include "DeckLinkAPIModes.h"
  42. #include "DeckLinkAPIDiscovery.h"
  43. #include "DeckLinkAPIConfiguration.h"
  44. #include "DeckLinkAPIDeckControl.h"
  45. #include "DeckLinkAPIStreaming.h"
  46. #define BLACKMAGIC_DECKLINK_API_MAGIC 1
  47. // Type Declarations
  48. // Interface ID Declarations
  49. BMD_CONST REFIID IID_IDeckLinkVideoOutputCallback = /* 20AA5225-1958-47CB-820B-80A8D521A6EE */ {0x20,0xAA,0x52,0x25,0x19,0x58,0x47,0xCB,0x82,0x0B,0x80,0xA8,0xD5,0x21,0xA6,0xEE};
  50. BMD_CONST REFIID IID_IDeckLinkInputCallback = /* DD04E5EC-7415-42AB-AE4A-E80C4DFC044A */ {0xDD,0x04,0xE5,0xEC,0x74,0x15,0x42,0xAB,0xAE,0x4A,0xE8,0x0C,0x4D,0xFC,0x04,0x4A};
  51. BMD_CONST REFIID IID_IDeckLinkMemoryAllocator = /* B36EB6E7-9D29-4AA8-92EF-843B87A289E8 */ {0xB3,0x6E,0xB6,0xE7,0x9D,0x29,0x4A,0xA8,0x92,0xEF,0x84,0x3B,0x87,0xA2,0x89,0xE8};
  52. BMD_CONST REFIID IID_IDeckLinkAudioOutputCallback = /* 403C681B-7F46-4A12-B993-2BB127084EE6 */ {0x40,0x3C,0x68,0x1B,0x7F,0x46,0x4A,0x12,0xB9,0x93,0x2B,0xB1,0x27,0x08,0x4E,0xE6};
  53. BMD_CONST REFIID IID_IDeckLinkIterator = /* 50FB36CD-3063-4B73-BDBB-958087F2D8BA */ {0x50,0xFB,0x36,0xCD,0x30,0x63,0x4B,0x73,0xBD,0xBB,0x95,0x80,0x87,0xF2,0xD8,0xBA};
  54. BMD_CONST REFIID IID_IDeckLinkAPIInformation = /* 7BEA3C68-730D-4322-AF34-8A7152B532A4 */ {0x7B,0xEA,0x3C,0x68,0x73,0x0D,0x43,0x22,0xAF,0x34,0x8A,0x71,0x52,0xB5,0x32,0xA4};
  55. BMD_CONST REFIID IID_IDeckLinkOutput = /* CC5C8A6E-3F2F-4B3A-87EA-FD78AF300564 */ {0xCC,0x5C,0x8A,0x6E,0x3F,0x2F,0x4B,0x3A,0x87,0xEA,0xFD,0x78,0xAF,0x30,0x05,0x64};
  56. BMD_CONST REFIID IID_IDeckLinkInput = /* AF22762B-DFAC-4846-AA79-FA8883560995 */ {0xAF,0x22,0x76,0x2B,0xDF,0xAC,0x48,0x46,0xAA,0x79,0xFA,0x88,0x83,0x56,0x09,0x95};
  57. BMD_CONST REFIID IID_IDeckLinkVideoFrame = /* 3F716FE0-F023-4111-BE5D-EF4414C05B17 */ {0x3F,0x71,0x6F,0xE0,0xF0,0x23,0x41,0x11,0xBE,0x5D,0xEF,0x44,0x14,0xC0,0x5B,0x17};
  58. BMD_CONST REFIID IID_IDeckLinkMutableVideoFrame = /* 69E2639F-40DA-4E19-B6F2-20ACE815C390 */ {0x69,0xE2,0x63,0x9F,0x40,0xDA,0x4E,0x19,0xB6,0xF2,0x20,0xAC,0xE8,0x15,0xC3,0x90};
  59. BMD_CONST REFIID IID_IDeckLinkVideoFrame3DExtensions = /* DA0F7E4A-EDC7-48A8-9CDD-2DB51C729CD7 */ {0xDA,0x0F,0x7E,0x4A,0xED,0xC7,0x48,0xA8,0x9C,0xDD,0x2D,0xB5,0x1C,0x72,0x9C,0xD7};
  60. BMD_CONST REFIID IID_IDeckLinkVideoInputFrame = /* 05CFE374-537C-4094-9A57-680525118F44 */ {0x05,0xCF,0xE3,0x74,0x53,0x7C,0x40,0x94,0x9A,0x57,0x68,0x05,0x25,0x11,0x8F,0x44};
  61. BMD_CONST REFIID IID_IDeckLinkVideoFrameAncillary = /* 732E723C-D1A4-4E29-9E8E-4A88797A0004 */ {0x73,0x2E,0x72,0x3C,0xD1,0xA4,0x4E,0x29,0x9E,0x8E,0x4A,0x88,0x79,0x7A,0x00,0x04};
  62. BMD_CONST REFIID IID_IDeckLinkAudioInputPacket = /* E43D5870-2894-11DE-8C30-0800200C9A66 */ {0xE4,0x3D,0x58,0x70,0x28,0x94,0x11,0xDE,0x8C,0x30,0x08,0x00,0x20,0x0C,0x9A,0x66};
  63. BMD_CONST REFIID IID_IDeckLinkScreenPreviewCallback = /* B1D3F49A-85FE-4C5D-95C8-0B5D5DCCD438 */ {0xB1,0xD3,0xF4,0x9A,0x85,0xFE,0x4C,0x5D,0x95,0xC8,0x0B,0x5D,0x5D,0xCC,0xD4,0x38};
  64. BMD_CONST REFIID IID_IDeckLinkCocoaScreenPreviewCallback = /* D174152F-8F96-4C07-83A5-DD5F5AF0A2AA */ {0xD1,0x74,0x15,0x2F,0x8F,0x96,0x4C,0x07,0x83,0xA5,0xDD,0x5F,0x5A,0xF0,0xA2,0xAA};
  65. BMD_CONST REFIID IID_IDeckLinkGLScreenPreviewHelper = /* 504E2209-CAC7-4C1A-9FB4-C5BB6274D22F */ {0x50,0x4E,0x22,0x09,0xCA,0xC7,0x4C,0x1A,0x9F,0xB4,0xC5,0xBB,0x62,0x74,0xD2,0x2F};
  66. BMD_CONST REFIID IID_IDeckLinkNotificationCallback = /* B002A1EC-070D-4288-8289-BD5D36E5FF0D */ {0xB0,0x02,0xA1,0xEC,0x07,0x0D,0x42,0x88,0x82,0x89,0xBD,0x5D,0x36,0xE5,0xFF,0x0D};
  67. BMD_CONST REFIID IID_IDeckLinkNotification = /* 0A1FB207-E215-441B-9B19-6FA1575946C5 */ {0x0A,0x1F,0xB2,0x07,0xE2,0x15,0x44,0x1B,0x9B,0x19,0x6F,0xA1,0x57,0x59,0x46,0xC5};
  68. BMD_CONST REFIID IID_IDeckLinkAttributes = /* ABC11843-D966-44CB-96E2-A1CB5D3135C4 */ {0xAB,0xC1,0x18,0x43,0xD9,0x66,0x44,0xCB,0x96,0xE2,0xA1,0xCB,0x5D,0x31,0x35,0xC4};
  69. BMD_CONST REFIID IID_IDeckLinkKeyer = /* 89AFCAF5-65F8-421E-98F7-96FE5F5BFBA3 */ {0x89,0xAF,0xCA,0xF5,0x65,0xF8,0x42,0x1E,0x98,0xF7,0x96,0xFE,0x5F,0x5B,0xFB,0xA3};
  70. BMD_CONST REFIID IID_IDeckLinkVideoConversion = /* 3BBCB8A2-DA2C-42D9-B5D8-88083644E99A */ {0x3B,0xBC,0xB8,0xA2,0xDA,0x2C,0x42,0xD9,0xB5,0xD8,0x88,0x08,0x36,0x44,0xE9,0x9A};
  71. BMD_CONST REFIID IID_IDeckLinkDeviceNotificationCallback = /* 4997053B-0ADF-4CC8-AC70-7A50C4BE728F */ {0x49,0x97,0x05,0x3B,0x0A,0xDF,0x4C,0xC8,0xAC,0x70,0x7A,0x50,0xC4,0xBE,0x72,0x8F};
  72. BMD_CONST REFIID IID_IDeckLinkDiscovery = /* CDBF631C-BC76-45FA-B44D-C55059BC6101 */ {0xCD,0xBF,0x63,0x1C,0xBC,0x76,0x45,0xFA,0xB4,0x4D,0xC5,0x50,0x59,0xBC,0x61,0x01};
  73. /* Enum BMDVideoOutputFlags - Flags to control the output of ancillary data along with video. */
  74. typedef uint32_t BMDVideoOutputFlags;
  75. enum _BMDVideoOutputFlags {
  76. bmdVideoOutputFlagDefault = 0,
  77. bmdVideoOutputVANC = 1 << 0,
  78. bmdVideoOutputVITC = 1 << 1,
  79. bmdVideoOutputRP188 = 1 << 2,
  80. bmdVideoOutputDualStream3D = 1 << 4
  81. };
  82. /* Enum BMDFrameFlags - Frame flags */
  83. typedef uint32_t BMDFrameFlags;
  84. enum _BMDFrameFlags {
  85. bmdFrameFlagDefault = 0,
  86. bmdFrameFlagFlipVertical = 1 << 0,
  87. /* Flags that are applicable only to instances of IDeckLinkVideoInputFrame */
  88. bmdFrameHasNoInputSource = 1 << 31
  89. };
  90. /* Enum BMDVideoInputFlags - Flags applicable to video input */
  91. typedef uint32_t BMDVideoInputFlags;
  92. enum _BMDVideoInputFlags {
  93. bmdVideoInputFlagDefault = 0,
  94. bmdVideoInputEnableFormatDetection = 1 << 0,
  95. bmdVideoInputDualStream3D = 1 << 1
  96. };
  97. /* Enum BMDVideoInputFormatChangedEvents - Bitmask passed to the VideoInputFormatChanged notification to identify the properties of the input signal that have changed */
  98. typedef uint32_t BMDVideoInputFormatChangedEvents;
  99. enum _BMDVideoInputFormatChangedEvents {
  100. bmdVideoInputDisplayModeChanged = 1 << 0,
  101. bmdVideoInputFieldDominanceChanged = 1 << 1,
  102. bmdVideoInputColorspaceChanged = 1 << 2
  103. };
  104. /* Enum BMDDetectedVideoInputFormatFlags - Flags passed to the VideoInputFormatChanged notification to describe the detected video input signal */
  105. typedef uint32_t BMDDetectedVideoInputFormatFlags;
  106. enum _BMDDetectedVideoInputFormatFlags {
  107. bmdDetectedVideoInputYCbCr422 = 1 << 0,
  108. bmdDetectedVideoInputRGB444 = 1 << 1,
  109. bmdDetectedVideoInputDualStream3D = 1 << 2
  110. };
  111. /* Enum BMDDeckLinkCapturePassthroughMode - Enumerates whether the video output is electrically connected to the video input or if the clean switching mode is enabled */
  112. typedef uint32_t BMDDeckLinkCapturePassthroughMode;
  113. enum _BMDDeckLinkCapturePassthroughMode {
  114. bmdDeckLinkCapturePassthroughModeDirect = 'pdir',
  115. bmdDeckLinkCapturePassthroughModeCleanSwitch = 'pcln'
  116. };
  117. /* Enum BMDOutputFrameCompletionResult - Frame Completion Callback */
  118. typedef uint32_t BMDOutputFrameCompletionResult;
  119. enum _BMDOutputFrameCompletionResult {
  120. bmdOutputFrameCompleted,
  121. bmdOutputFrameDisplayedLate,
  122. bmdOutputFrameDropped,
  123. bmdOutputFrameFlushed
  124. };
  125. /* Enum BMDReferenceStatus - GenLock input status */
  126. typedef uint32_t BMDReferenceStatus;
  127. enum _BMDReferenceStatus {
  128. bmdReferenceNotSupportedByHardware = 1 << 0,
  129. bmdReferenceLocked = 1 << 1
  130. };
  131. /* Enum BMDAudioSampleRate - Audio sample rates supported for output/input */
  132. typedef uint32_t BMDAudioSampleRate;
  133. enum _BMDAudioSampleRate {
  134. bmdAudioSampleRate48kHz = 48000
  135. };
  136. /* Enum BMDAudioSampleType - Audio sample sizes supported for output/input */
  137. typedef uint32_t BMDAudioSampleType;
  138. enum _BMDAudioSampleType {
  139. bmdAudioSampleType16bitInteger = 16,
  140. bmdAudioSampleType32bitInteger = 32
  141. };
  142. /* Enum BMDAudioOutputStreamType - Audio output stream type */
  143. typedef uint32_t BMDAudioOutputStreamType;
  144. enum _BMDAudioOutputStreamType {
  145. bmdAudioOutputStreamContinuous,
  146. bmdAudioOutputStreamContinuousDontResample,
  147. bmdAudioOutputStreamTimestamped
  148. };
  149. /* Enum BMDDisplayModeSupport - Output mode supported flags */
  150. typedef uint32_t BMDDisplayModeSupport;
  151. enum _BMDDisplayModeSupport {
  152. bmdDisplayModeNotSupported = 0,
  153. bmdDisplayModeSupported,
  154. bmdDisplayModeSupportedWithConversion
  155. };
  156. /* Enum BMDTimecodeFormat - Timecode formats for frame metadata */
  157. typedef uint32_t BMDTimecodeFormat;
  158. enum _BMDTimecodeFormat {
  159. bmdTimecodeRP188VITC1 = 'rpv1', // RP188 timecode where DBB1 equals VITC1 (line 9)
  160. bmdTimecodeRP188VITC2 = 'rp12', // RP188 timecode where DBB1 equals VITC2 (line 9 for progressive or line 571 for interlaced/PsF)
  161. bmdTimecodeRP188LTC = 'rplt', // RP188 timecode where DBB1 equals LTC (line 10)
  162. bmdTimecodeRP188Any = 'rp18', // For capture: return the first valid timecode in {VITC1, LTC ,VITC2} - For playback: set the timecode as VITC1
  163. bmdTimecodeVITC = 'vitc',
  164. bmdTimecodeVITCField2 = 'vit2',
  165. bmdTimecodeSerial = 'seri'
  166. };
  167. /* Enum BMDAnalogVideoFlags - Analog video display flags */
  168. typedef uint32_t BMDAnalogVideoFlags;
  169. enum _BMDAnalogVideoFlags {
  170. bmdAnalogVideoFlagCompositeSetup75 = 1 << 0,
  171. bmdAnalogVideoFlagComponentBetacamLevels = 1 << 1
  172. };
  173. /* Enum BMDAudioOutputAnalogAESSwitch - Audio output Analog/AESEBU switch */
  174. typedef uint32_t BMDAudioOutputAnalogAESSwitch;
  175. enum _BMDAudioOutputAnalogAESSwitch {
  176. bmdAudioOutputSwitchAESEBU = 'aes ',
  177. bmdAudioOutputSwitchAnalog = 'anlg'
  178. };
  179. /* Enum BMDVideoOutputConversionMode - Video/audio conversion mode */
  180. typedef uint32_t BMDVideoOutputConversionMode;
  181. enum _BMDVideoOutputConversionMode {
  182. bmdNoVideoOutputConversion = 'none',
  183. bmdVideoOutputLetterboxDownconversion = 'ltbx',
  184. bmdVideoOutputAnamorphicDownconversion = 'amph',
  185. bmdVideoOutputHD720toHD1080Conversion = '720c',
  186. bmdVideoOutputHardwareLetterboxDownconversion = 'HWlb',
  187. bmdVideoOutputHardwareAnamorphicDownconversion = 'HWam',
  188. bmdVideoOutputHardwareCenterCutDownconversion = 'HWcc',
  189. bmdVideoOutputHardware720p1080pCrossconversion = 'xcap',
  190. bmdVideoOutputHardwareAnamorphic720pUpconversion = 'ua7p',
  191. bmdVideoOutputHardwareAnamorphic1080iUpconversion = 'ua1i',
  192. bmdVideoOutputHardwareAnamorphic149To720pUpconversion = 'u47p',
  193. bmdVideoOutputHardwareAnamorphic149To1080iUpconversion = 'u41i',
  194. bmdVideoOutputHardwarePillarbox720pUpconversion = 'up7p',
  195. bmdVideoOutputHardwarePillarbox1080iUpconversion = 'up1i'
  196. };
  197. /* Enum BMDVideoInputConversionMode - Video input conversion mode */
  198. typedef uint32_t BMDVideoInputConversionMode;
  199. enum _BMDVideoInputConversionMode {
  200. bmdNoVideoInputConversion = 'none',
  201. bmdVideoInputLetterboxDownconversionFromHD1080 = '10lb',
  202. bmdVideoInputAnamorphicDownconversionFromHD1080 = '10am',
  203. bmdVideoInputLetterboxDownconversionFromHD720 = '72lb',
  204. bmdVideoInputAnamorphicDownconversionFromHD720 = '72am',
  205. bmdVideoInputLetterboxUpconversion = 'lbup',
  206. bmdVideoInputAnamorphicUpconversion = 'amup'
  207. };
  208. /* Enum BMDVideo3DPackingFormat - Video 3D packing format */
  209. typedef uint32_t BMDVideo3DPackingFormat;
  210. enum _BMDVideo3DPackingFormat {
  211. bmdVideo3DPackingSidebySideHalf = 'sbsh',
  212. bmdVideo3DPackingLinebyLine = 'lbyl',
  213. bmdVideo3DPackingTopAndBottom = 'tabo',
  214. bmdVideo3DPackingFramePacking = 'frpk',
  215. bmdVideo3DPackingLeftOnly = 'left',
  216. bmdVideo3DPackingRightOnly = 'righ'
  217. };
  218. /* Enum BMDIdleVideoOutputOperation - Video output operation when not playing video */
  219. typedef uint32_t BMDIdleVideoOutputOperation;
  220. enum _BMDIdleVideoOutputOperation {
  221. bmdIdleVideoOutputBlack = 'blac',
  222. bmdIdleVideoOutputLastFrame = 'lafa',
  223. bmdIdleVideoOutputDesktop = 'desk'
  224. };
  225. /* Enum BMDDeckLinkAttributeID - DeckLink Attribute ID */
  226. typedef uint32_t BMDDeckLinkAttributeID;
  227. enum _BMDDeckLinkAttributeID {
  228. /* Flags */
  229. BMDDeckLinkSupportsInternalKeying = 'keyi',
  230. BMDDeckLinkSupportsExternalKeying = 'keye',
  231. BMDDeckLinkSupportsHDKeying = 'keyh',
  232. BMDDeckLinkSupportsInputFormatDetection = 'infd',
  233. BMDDeckLinkHasReferenceInput = 'hrin',
  234. BMDDeckLinkHasSerialPort = 'hspt',
  235. BMDDeckLinkHasAnalogVideoOutputGain = 'avog',
  236. BMDDeckLinkCanOnlyAdjustOverallVideoOutputGain = 'ovog',
  237. BMDDeckLinkHasVideoInputAntiAliasingFilter = 'aafl',
  238. BMDDeckLinkHasBypass = 'byps',
  239. BMDDeckLinkSupportsDesktopDisplay = 'extd',
  240. BMDDeckLinkSupportsClockTimingAdjustment = 'ctad',
  241. BMDDeckLinkSupportsFullDuplex = 'fdup',
  242. BMDDeckLinkSupportsFullFrameReferenceInputTimingOffset = 'frin',
  243. /* Integers */
  244. BMDDeckLinkMaximumAudioChannels = 'mach',
  245. BMDDeckLinkMaximumAnalogAudioChannels = 'aach',
  246. BMDDeckLinkNumberOfSubDevices = 'nsbd',
  247. BMDDeckLinkSubDeviceIndex = 'subi',
  248. BMDDeckLinkPersistentID = 'peid',
  249. BMDDeckLinkTopologicalID = 'toid',
  250. BMDDeckLinkVideoOutputConnections = 'vocn',
  251. BMDDeckLinkVideoInputConnections = 'vicn',
  252. BMDDeckLinkAudioOutputConnections = 'aocn',
  253. BMDDeckLinkAudioInputConnections = 'aicn',
  254. BMDDeckLinkDeviceBusyState = 'dbst',
  255. BMDDeckLinkVideoIOSupport = 'vios', // Returns a BMDVideoIOSupport bit field
  256. /* Floats */
  257. BMDDeckLinkVideoInputGainMinimum = 'vigm',
  258. BMDDeckLinkVideoInputGainMaximum = 'vigx',
  259. BMDDeckLinkVideoOutputGainMinimum = 'vogm',
  260. BMDDeckLinkVideoOutputGainMaximum = 'vogx',
  261. /* Strings */
  262. BMDDeckLinkSerialPortDeviceName = 'slpn'
  263. };
  264. /* Enum BMDDeckLinkAPIInformationID - DeckLinkAPI information ID */
  265. typedef uint32_t BMDDeckLinkAPIInformationID;
  266. enum _BMDDeckLinkAPIInformationID {
  267. BMDDeckLinkAPIVersion = 'vers'
  268. };
  269. /* Enum BMDDeviceBusyState - Current device busy state */
  270. typedef uint32_t BMDDeviceBusyState;
  271. enum _BMDDeviceBusyState {
  272. bmdDeviceCaptureBusy = 1 << 0,
  273. bmdDevicePlaybackBusy = 1 << 1,
  274. bmdDeviceSerialPortBusy = 1 << 2
  275. };
  276. /* Enum BMDVideoIOSupport - Device video input/output support */
  277. typedef uint32_t BMDVideoIOSupport;
  278. enum _BMDVideoIOSupport {
  279. bmdDeviceSupportsCapture = 1 << 0,
  280. bmdDeviceSupportsPlayback = 1 << 1
  281. };
  282. /* Enum BMD3DPreviewFormat - Linked Frame preview format */
  283. typedef uint32_t BMD3DPreviewFormat;
  284. enum _BMD3DPreviewFormat {
  285. bmd3DPreviewFormatDefault = 'defa',
  286. bmd3DPreviewFormatLeftOnly = 'left',
  287. bmd3DPreviewFormatRightOnly = 'righ',
  288. bmd3DPreviewFormatSideBySide = 'side',
  289. bmd3DPreviewFormatTopBottom = 'topb'
  290. };
  291. /* Enum BMDNotifications - Events that can be subscribed through IDeckLinkNotification */
  292. typedef uint32_t BMDNotifications;
  293. enum _BMDNotifications {
  294. bmdPreferencesChanged = 'pref'
  295. };
  296. #if defined(__cplusplus)
  297. // Forward Declarations
  298. class IDeckLinkVideoOutputCallback;
  299. class IDeckLinkInputCallback;
  300. class IDeckLinkMemoryAllocator;
  301. class IDeckLinkAudioOutputCallback;
  302. class IDeckLinkIterator;
  303. class IDeckLinkAPIInformation;
  304. class IDeckLinkOutput;
  305. class IDeckLinkInput;
  306. class IDeckLinkVideoFrame;
  307. class IDeckLinkMutableVideoFrame;
  308. class IDeckLinkVideoFrame3DExtensions;
  309. class IDeckLinkVideoInputFrame;
  310. class IDeckLinkVideoFrameAncillary;
  311. class IDeckLinkAudioInputPacket;
  312. class IDeckLinkScreenPreviewCallback;
  313. class IDeckLinkCocoaScreenPreviewCallback;
  314. class IDeckLinkGLScreenPreviewHelper;
  315. class IDeckLinkNotificationCallback;
  316. class IDeckLinkNotification;
  317. class IDeckLinkAttributes;
  318. class IDeckLinkKeyer;
  319. class IDeckLinkVideoConversion;
  320. class IDeckLinkDeviceNotificationCallback;
  321. class IDeckLinkDiscovery;
  322. /* Interface IDeckLinkVideoOutputCallback - Frame completion callback. */
  323. class IDeckLinkVideoOutputCallback : public IUnknown
  324. {
  325. public:
  326. virtual HRESULT ScheduledFrameCompleted (/* in */ IDeckLinkVideoFrame *completedFrame, /* in */ BMDOutputFrameCompletionResult result) = 0;
  327. virtual HRESULT ScheduledPlaybackHasStopped (void) = 0;
  328. protected:
  329. virtual ~IDeckLinkVideoOutputCallback () {} // call Release method to drop reference count
  330. };
  331. /* Interface IDeckLinkInputCallback - Frame arrival callback. */
  332. class IDeckLinkInputCallback : public IUnknown
  333. {
  334. public:
  335. virtual HRESULT VideoInputFormatChanged (/* in */ BMDVideoInputFormatChangedEvents notificationEvents, /* in */ IDeckLinkDisplayMode *newDisplayMode, /* in */ BMDDetectedVideoInputFormatFlags detectedSignalFlags) = 0;
  336. virtual HRESULT VideoInputFrameArrived (/* in */ IDeckLinkVideoInputFrame* videoFrame, /* in */ IDeckLinkAudioInputPacket* audioPacket) = 0;
  337. protected:
  338. virtual ~IDeckLinkInputCallback () {} // call Release method to drop reference count
  339. };
  340. /* Interface IDeckLinkMemoryAllocator - Memory allocator for video frames. */
  341. class IDeckLinkMemoryAllocator : public IUnknown
  342. {
  343. public:
  344. virtual HRESULT AllocateBuffer (/* in */ uint32_t bufferSize, /* out */ void **allocatedBuffer) = 0;
  345. virtual HRESULT ReleaseBuffer (/* in */ void *buffer) = 0;
  346. virtual HRESULT Commit (void) = 0;
  347. virtual HRESULT Decommit (void) = 0;
  348. };
  349. /* Interface IDeckLinkAudioOutputCallback - Optional callback to allow audio samples to be pulled as required. */
  350. class IDeckLinkAudioOutputCallback : public IUnknown
  351. {
  352. public:
  353. virtual HRESULT RenderAudioSamples (/* in */ bool preroll) = 0;
  354. };
  355. /* Interface IDeckLinkIterator - enumerates installed DeckLink hardware */
  356. class IDeckLinkIterator : public IUnknown
  357. {
  358. public:
  359. virtual HRESULT Next (/* out */ IDeckLink **deckLinkInstance) = 0;
  360. };
  361. /* Interface IDeckLinkAPIInformation - DeckLinkAPI attribute interface */
  362. class IDeckLinkAPIInformation : public IUnknown
  363. {
  364. public:
  365. virtual HRESULT GetFlag (/* in */ BMDDeckLinkAPIInformationID cfgID, /* out */ bool *value) = 0;
  366. virtual HRESULT GetInt (/* in */ BMDDeckLinkAPIInformationID cfgID, /* out */ int64_t *value) = 0;
  367. virtual HRESULT GetFloat (/* in */ BMDDeckLinkAPIInformationID cfgID, /* out */ double *value) = 0;
  368. virtual HRESULT GetString (/* in */ BMDDeckLinkAPIInformationID cfgID, /* out */ CFStringRef *value) = 0;
  369. protected:
  370. virtual ~IDeckLinkAPIInformation () {} // call Release method to drop reference count
  371. };
  372. /* Interface IDeckLinkOutput - Created by QueryInterface from IDeckLink. */
  373. class IDeckLinkOutput : public IUnknown
  374. {
  375. public:
  376. virtual HRESULT DoesSupportVideoMode (/* in */ BMDDisplayMode displayMode, /* in */ BMDPixelFormat pixelFormat, /* in */ BMDVideoOutputFlags flags, /* out */ BMDDisplayModeSupport *result, /* out */ IDeckLinkDisplayMode **resultDisplayMode) = 0;
  377. virtual HRESULT GetDisplayModeIterator (/* out */ IDeckLinkDisplayModeIterator **iterator) = 0;
  378. virtual HRESULT SetScreenPreviewCallback (/* in */ IDeckLinkScreenPreviewCallback *previewCallback) = 0;
  379. /* Video Output */
  380. virtual HRESULT EnableVideoOutput (/* in */ BMDDisplayMode displayMode, /* in */ BMDVideoOutputFlags flags) = 0;
  381. virtual HRESULT DisableVideoOutput (void) = 0;
  382. virtual HRESULT SetVideoOutputFrameMemoryAllocator (/* in */ IDeckLinkMemoryAllocator *theAllocator) = 0;
  383. virtual HRESULT CreateVideoFrame (/* in */ int32_t width, /* in */ int32_t height, /* in */ int32_t rowBytes, /* in */ BMDPixelFormat pixelFormat, /* in */ BMDFrameFlags flags, /* out */ IDeckLinkMutableVideoFrame **outFrame) = 0;
  384. virtual HRESULT CreateAncillaryData (/* in */ BMDPixelFormat pixelFormat, /* out */ IDeckLinkVideoFrameAncillary **outBuffer) = 0;
  385. virtual HRESULT DisplayVideoFrameSync (/* in */ IDeckLinkVideoFrame *theFrame) = 0;
  386. virtual HRESULT ScheduleVideoFrame (/* in */ IDeckLinkVideoFrame *theFrame, /* in */ BMDTimeValue displayTime, /* in */ BMDTimeValue displayDuration, /* in */ BMDTimeScale timeScale) = 0;
  387. virtual HRESULT SetScheduledFrameCompletionCallback (/* in */ IDeckLinkVideoOutputCallback *theCallback) = 0;
  388. virtual HRESULT GetBufferedVideoFrameCount (/* out */ uint32_t *bufferedFrameCount) = 0;
  389. /* Audio Output */
  390. virtual HRESULT EnableAudioOutput (/* in */ BMDAudioSampleRate sampleRate, /* in */ BMDAudioSampleType sampleType, /* in */ uint32_t channelCount, /* in */ BMDAudioOutputStreamType streamType) = 0;
  391. virtual HRESULT DisableAudioOutput (void) = 0;
  392. virtual HRESULT WriteAudioSamplesSync (/* in */ void *buffer, /* in */ uint32_t sampleFrameCount, /* out */ uint32_t *sampleFramesWritten) = 0;
  393. virtual HRESULT BeginAudioPreroll (void) = 0;
  394. virtual HRESULT EndAudioPreroll (void) = 0;
  395. virtual HRESULT ScheduleAudioSamples (/* in */ void *buffer, /* in */ uint32_t sampleFrameCount, /* in */ BMDTimeValue streamTime, /* in */ BMDTimeScale timeScale, /* out */ uint32_t *sampleFramesWritten) = 0;
  396. virtual HRESULT GetBufferedAudioSampleFrameCount (/* out */ uint32_t *bufferedSampleFrameCount) = 0;
  397. virtual HRESULT FlushBufferedAudioSamples (void) = 0;
  398. virtual HRESULT SetAudioCallback (/* in */ IDeckLinkAudioOutputCallback *theCallback) = 0;
  399. /* Output Control */
  400. virtual HRESULT StartScheduledPlayback (/* in */ BMDTimeValue playbackStartTime, /* in */ BMDTimeScale timeScale, /* in */ double playbackSpeed) = 0;
  401. virtual HRESULT StopScheduledPlayback (/* in */ BMDTimeValue stopPlaybackAtTime, /* out */ BMDTimeValue *actualStopTime, /* in */ BMDTimeScale timeScale) = 0;
  402. virtual HRESULT IsScheduledPlaybackRunning (/* out */ bool *active) = 0;
  403. virtual HRESULT GetScheduledStreamTime (/* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *streamTime, /* out */ double *playbackSpeed) = 0;
  404. virtual HRESULT GetReferenceStatus (/* out */ BMDReferenceStatus *referenceStatus) = 0;
  405. /* Hardware Timing */
  406. virtual HRESULT GetHardwareReferenceClock (/* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *hardwareTime, /* out */ BMDTimeValue *timeInFrame, /* out */ BMDTimeValue *ticksPerFrame) = 0;
  407. virtual HRESULT GetFrameCompletionReferenceTimestamp (/* in */ IDeckLinkVideoFrame *theFrame, /* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *frameCompletionTimestamp) = 0;
  408. protected:
  409. virtual ~IDeckLinkOutput () {} // call Release method to drop reference count
  410. };
  411. /* Interface IDeckLinkInput - Created by QueryInterface from IDeckLink. */
  412. class IDeckLinkInput : public IUnknown
  413. {
  414. public:
  415. virtual HRESULT DoesSupportVideoMode (/* in */ BMDDisplayMode displayMode, /* in */ BMDPixelFormat pixelFormat, /* in */ BMDVideoInputFlags flags, /* out */ BMDDisplayModeSupport *result, /* out */ IDeckLinkDisplayMode **resultDisplayMode) = 0;
  416. virtual HRESULT GetDisplayModeIterator (/* out */ IDeckLinkDisplayModeIterator **iterator) = 0;
  417. virtual HRESULT SetScreenPreviewCallback (/* in */ IDeckLinkScreenPreviewCallback *previewCallback) = 0;
  418. /* Video Input */
  419. virtual HRESULT EnableVideoInput (/* in */ BMDDisplayMode displayMode, /* in */ BMDPixelFormat pixelFormat, /* in */ BMDVideoInputFlags flags) = 0;
  420. virtual HRESULT DisableVideoInput (void) = 0;
  421. virtual HRESULT GetAvailableVideoFrameCount (/* out */ uint32_t *availableFrameCount) = 0;
  422. virtual HRESULT SetVideoInputFrameMemoryAllocator (/* in */ IDeckLinkMemoryAllocator *theAllocator) = 0;
  423. /* Audio Input */
  424. virtual HRESULT EnableAudioInput (/* in */ BMDAudioSampleRate sampleRate, /* in */ BMDAudioSampleType sampleType, /* in */ uint32_t channelCount) = 0;
  425. virtual HRESULT DisableAudioInput (void) = 0;
  426. virtual HRESULT GetAvailableAudioSampleFrameCount (/* out */ uint32_t *availableSampleFrameCount) = 0;
  427. /* Input Control */
  428. virtual HRESULT StartStreams (void) = 0;
  429. virtual HRESULT StopStreams (void) = 0;
  430. virtual HRESULT PauseStreams (void) = 0;
  431. virtual HRESULT FlushStreams (void) = 0;
  432. virtual HRESULT SetCallback (/* in */ IDeckLinkInputCallback *theCallback) = 0;
  433. /* Hardware Timing */
  434. virtual HRESULT GetHardwareReferenceClock (/* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *hardwareTime, /* out */ BMDTimeValue *timeInFrame, /* out */ BMDTimeValue *ticksPerFrame) = 0;
  435. protected:
  436. virtual ~IDeckLinkInput () {} // call Release method to drop reference count
  437. };
  438. /* Interface IDeckLinkVideoFrame - Interface to encapsulate a video frame; can be caller-implemented. */
  439. class IDeckLinkVideoFrame : public IUnknown
  440. {
  441. public:
  442. virtual long GetWidth (void) = 0;
  443. virtual long GetHeight (void) = 0;
  444. virtual long GetRowBytes (void) = 0;
  445. virtual BMDPixelFormat GetPixelFormat (void) = 0;
  446. virtual BMDFrameFlags GetFlags (void) = 0;
  447. virtual HRESULT GetBytes (/* out */ void **buffer) = 0;
  448. virtual HRESULT GetTimecode (/* in */ BMDTimecodeFormat format, /* out */ IDeckLinkTimecode **timecode) = 0;
  449. virtual HRESULT GetAncillaryData (/* out */ IDeckLinkVideoFrameAncillary **ancillary) = 0;
  450. protected:
  451. virtual ~IDeckLinkVideoFrame () {} // call Release method to drop reference count
  452. };
  453. /* Interface IDeckLinkMutableVideoFrame - Created by IDeckLinkOutput::CreateVideoFrame. */
  454. class IDeckLinkMutableVideoFrame : public IDeckLinkVideoFrame
  455. {
  456. public:
  457. virtual HRESULT SetFlags (/* in */ BMDFrameFlags newFlags) = 0;
  458. virtual HRESULT SetTimecode (/* in */ BMDTimecodeFormat format, /* in */ IDeckLinkTimecode *timecode) = 0;
  459. virtual HRESULT SetTimecodeFromComponents (/* in */ BMDTimecodeFormat format, /* in */ uint8_t hours, /* in */ uint8_t minutes, /* in */ uint8_t seconds, /* in */ uint8_t frames, /* in */ BMDTimecodeFlags flags) = 0;
  460. virtual HRESULT SetAncillaryData (/* in */ IDeckLinkVideoFrameAncillary *ancillary) = 0;
  461. virtual HRESULT SetTimecodeUserBits (/* in */ BMDTimecodeFormat format, /* in */ BMDTimecodeUserBits userBits) = 0;
  462. protected:
  463. virtual ~IDeckLinkMutableVideoFrame () {} // call Release method to drop reference count
  464. };
  465. /* Interface IDeckLinkVideoFrame3DExtensions - Optional interface implemented on IDeckLinkVideoFrame to support 3D frames */
  466. class IDeckLinkVideoFrame3DExtensions : public IUnknown
  467. {
  468. public:
  469. virtual BMDVideo3DPackingFormat Get3DPackingFormat (void) = 0;
  470. virtual HRESULT GetFrameForRightEye (/* out */ IDeckLinkVideoFrame* *rightEyeFrame) = 0;
  471. protected:
  472. virtual ~IDeckLinkVideoFrame3DExtensions () {} // call Release method to drop reference count
  473. };
  474. /* Interface IDeckLinkVideoInputFrame - Provided by the IDeckLinkVideoInput frame arrival callback. */
  475. class IDeckLinkVideoInputFrame : public IDeckLinkVideoFrame
  476. {
  477. public:
  478. virtual HRESULT GetStreamTime (/* out */ BMDTimeValue *frameTime, /* out */ BMDTimeValue *frameDuration, /* in */ BMDTimeScale timeScale) = 0;
  479. virtual HRESULT GetHardwareReferenceTimestamp (/* in */ BMDTimeScale timeScale, /* out */ BMDTimeValue *frameTime, /* out */ BMDTimeValue *frameDuration) = 0;
  480. protected:
  481. virtual ~IDeckLinkVideoInputFrame () {} // call Release method to drop reference count
  482. };
  483. /* Interface IDeckLinkVideoFrameAncillary - Obtained through QueryInterface() on an IDeckLinkVideoFrame object. */
  484. class IDeckLinkVideoFrameAncillary : public IUnknown
  485. {
  486. public:
  487. virtual HRESULT GetBufferForVerticalBlankingLine (/* in */ uint32_t lineNumber, /* out */ void **buffer) = 0;
  488. virtual BMDPixelFormat GetPixelFormat (void) = 0;
  489. virtual BMDDisplayMode GetDisplayMode (void) = 0;
  490. protected:
  491. virtual ~IDeckLinkVideoFrameAncillary () {} // call Release method to drop reference count
  492. };
  493. /* Interface IDeckLinkAudioInputPacket - Provided by the IDeckLinkInput callback. */
  494. class IDeckLinkAudioInputPacket : public IUnknown
  495. {
  496. public:
  497. virtual long GetSampleFrameCount (void) = 0;
  498. virtual HRESULT GetBytes (/* out */ void **buffer) = 0;
  499. virtual HRESULT GetPacketTime (/* out */ BMDTimeValue *packetTime, /* in */ BMDTimeScale timeScale) = 0;
  500. protected:
  501. virtual ~IDeckLinkAudioInputPacket () {} // call Release method to drop reference count
  502. };
  503. /* Interface IDeckLinkScreenPreviewCallback - Screen preview callback */
  504. class IDeckLinkScreenPreviewCallback : public IUnknown
  505. {
  506. public:
  507. virtual HRESULT DrawFrame (/* in */ IDeckLinkVideoFrame *theFrame) = 0;
  508. protected:
  509. virtual ~IDeckLinkScreenPreviewCallback () {} // call Release method to drop reference count
  510. };
  511. /* Interface IDeckLinkCocoaScreenPreviewCallback - Screen preview callback for Cocoa-based applications */
  512. class IDeckLinkCocoaScreenPreviewCallback : public IDeckLinkScreenPreviewCallback
  513. {
  514. public:
  515. protected:
  516. virtual ~IDeckLinkCocoaScreenPreviewCallback () {} // call Release method to drop reference count
  517. };
  518. /* Interface IDeckLinkGLScreenPreviewHelper - Created with CoCreateInstance(). */
  519. class IDeckLinkGLScreenPreviewHelper : public IUnknown
  520. {
  521. public:
  522. /* Methods must be called with OpenGL context set */
  523. virtual HRESULT InitializeGL (void) = 0;
  524. virtual HRESULT PaintGL (void) = 0;
  525. virtual HRESULT SetFrame (/* in */ IDeckLinkVideoFrame *theFrame) = 0;
  526. virtual HRESULT Set3DPreviewFormat (/* in */ BMD3DPreviewFormat previewFormat) = 0;
  527. protected:
  528. virtual ~IDeckLinkGLScreenPreviewHelper () {} // call Release method to drop reference count
  529. };
  530. /* Interface IDeckLinkNotificationCallback - DeckLink Notification Callback Interface */
  531. class IDeckLinkNotificationCallback : public IUnknown
  532. {
  533. public:
  534. virtual HRESULT Notify (/* in */ BMDNotifications topic, /* in */ uint64_t param1, /* in */ uint64_t param2) = 0;
  535. };
  536. /* Interface IDeckLinkNotification - DeckLink Notification interface */
  537. class IDeckLinkNotification : public IUnknown
  538. {
  539. public:
  540. virtual HRESULT Subscribe (/* in */ BMDNotifications topic, /* in */ IDeckLinkNotificationCallback *theCallback) = 0;
  541. virtual HRESULT Unsubscribe (/* in */ BMDNotifications topic, /* in */ IDeckLinkNotificationCallback *theCallback) = 0;
  542. };
  543. /* Interface IDeckLinkAttributes - DeckLink Attribute interface */
  544. class IDeckLinkAttributes : public IUnknown
  545. {
  546. public:
  547. virtual HRESULT GetFlag (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ bool *value) = 0;
  548. virtual HRESULT GetInt (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ int64_t *value) = 0;
  549. virtual HRESULT GetFloat (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ double *value) = 0;
  550. virtual HRESULT GetString (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ CFStringRef *value) = 0;
  551. protected:
  552. virtual ~IDeckLinkAttributes () {} // call Release method to drop reference count
  553. };
  554. /* Interface IDeckLinkKeyer - DeckLink Keyer interface */
  555. class IDeckLinkKeyer : public IUnknown
  556. {
  557. public:
  558. virtual HRESULT Enable (/* in */ bool isExternal) = 0;
  559. virtual HRESULT SetLevel (/* in */ uint8_t level) = 0;
  560. virtual HRESULT RampUp (/* in */ uint32_t numberOfFrames) = 0;
  561. virtual HRESULT RampDown (/* in */ uint32_t numberOfFrames) = 0;
  562. virtual HRESULT Disable (void) = 0;
  563. protected:
  564. virtual ~IDeckLinkKeyer () {} // call Release method to drop reference count
  565. };
  566. /* Interface IDeckLinkVideoConversion - Created with CoCreateInstance(). */
  567. class IDeckLinkVideoConversion : public IUnknown
  568. {
  569. public:
  570. virtual HRESULT ConvertFrame (/* in */ IDeckLinkVideoFrame* srcFrame, /* in */ IDeckLinkVideoFrame* dstFrame) = 0;
  571. protected:
  572. virtual ~IDeckLinkVideoConversion () {} // call Release method to drop reference count
  573. };
  574. /* Interface IDeckLinkDeviceNotificationCallback - DeckLink device arrival/removal notification callbacks */
  575. class IDeckLinkDeviceNotificationCallback : public IUnknown
  576. {
  577. public:
  578. virtual HRESULT DeckLinkDeviceArrived (/* in */ IDeckLink* deckLinkDevice) = 0;
  579. virtual HRESULT DeckLinkDeviceRemoved (/* in */ IDeckLink* deckLinkDevice) = 0;
  580. protected:
  581. virtual ~IDeckLinkDeviceNotificationCallback () {} // call Release method to drop reference count
  582. };
  583. /* Interface IDeckLinkDiscovery - DeckLink device discovery */
  584. class IDeckLinkDiscovery : public IUnknown
  585. {
  586. public:
  587. virtual HRESULT InstallDeviceNotifications (/* in */ IDeckLinkDeviceNotificationCallback* deviceNotificationCallback) = 0;
  588. virtual HRESULT UninstallDeviceNotifications (void) = 0;
  589. protected:
  590. virtual ~IDeckLinkDiscovery () {} // call Release method to drop reference count
  591. };
  592. /* Functions */
  593. extern "C" {
  594. IDeckLinkIterator* CreateDeckLinkIteratorInstance (void);
  595. IDeckLinkDiscovery* CreateDeckLinkDiscoveryInstance (void);
  596. IDeckLinkAPIInformation* CreateDeckLinkAPIInformationInstance (void);
  597. IDeckLinkGLScreenPreviewHelper* CreateOpenGLScreenPreviewHelper (void);
  598. IDeckLinkCocoaScreenPreviewCallback* CreateCocoaScreenPreview (void* /* (NSView*) */ parentView);
  599. IDeckLinkVideoConversion* CreateVideoConversionInstance (void);
  600. }
  601. #endif // defined(__cplusplus)
  602. #endif /* defined(BMD_DECKLINKAPI_H) */