DeckLinkAPI_v7_6.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. /* -LICENSE-START-
  2. ** Copyright (c) 2009 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. /* DeckLinkAPI_v7_6.h */
  28. #ifndef __DeckLink_API_v7_6_h__
  29. #define __DeckLink_API_v7_6_h__
  30. #include "DeckLinkAPI.h"
  31. #include "DeckLinkAPI_v10_11.h"
  32. // Interface ID Declarations
  33. #define IID_IDeckLinkVideoOutputCallback_v7_6 /* E763A626-4A3C-49D1-BF13-E7AD3692AE52 */ (REFIID){0xE7,0x63,0xA6,0x26,0x4A,0x3C,0x49,0xD1,0xBF,0x13,0xE7,0xAD,0x36,0x92,0xAE,0x52}
  34. #define IID_IDeckLinkInputCallback_v7_6 /* 31D28EE7-88B6-4CB1-897A-CDBF79A26414 */ (REFIID){0x31,0xD2,0x8E,0xE7,0x88,0xB6,0x4C,0xB1,0x89,0x7A,0xCD,0xBF,0x79,0xA2,0x64,0x14}
  35. #define IID_IDeckLinkDisplayModeIterator_v7_6 /* 455D741F-1779-4800-86F5-0B5D13D79751 */ (REFIID){0x45,0x5D,0x74,0x1F,0x17,0x79,0x48,0x00,0x86,0xF5,0x0B,0x5D,0x13,0xD7,0x97,0x51}
  36. #define IID_IDeckLinkDisplayMode_v7_6 /* 87451E84-2B7E-439E-A629-4393EA4A8550 */ (REFIID){0x87,0x45,0x1E,0x84,0x2B,0x7E,0x43,0x9E,0xA6,0x29,0x43,0x93,0xEA,0x4A,0x85,0x50}
  37. #define IID_IDeckLinkOutput_v7_6 /* 29228142-EB8C-4141-A621-F74026450955 */ (REFIID){0x29,0x22,0x81,0x42,0xEB,0x8C,0x41,0x41,0xA6,0x21,0xF7,0x40,0x26,0x45,0x09,0x55}
  38. #define IID_IDeckLinkInput_v7_6 /* 300C135A-9F43-48E2-9906-6D7911D93CF1 */ (REFIID){0x30,0x0C,0x13,0x5A,0x9F,0x43,0x48,0xE2,0x99,0x06,0x6D,0x79,0x11,0xD9,0x3C,0xF1}
  39. #define IID_IDeckLinkTimecode_v7_6 /* EFB9BCA6-A521-44F7-BD69-2332F24D9EE6 */ (REFIID){0xEF,0xB9,0xBC,0xA6,0xA5,0x21,0x44,0xF7,0xBD,0x69,0x23,0x32,0xF2,0x4D,0x9E,0xE6}
  40. #define IID_IDeckLinkVideoFrame_v7_6 /* A8D8238E-6B18-4196-99E1-5AF717B83D32 */ (REFIID){0xA8,0xD8,0x23,0x8E,0x6B,0x18,0x41,0x96,0x99,0xE1,0x5A,0xF7,0x17,0xB8,0x3D,0x32}
  41. #define IID_IDeckLinkMutableVideoFrame_v7_6 /* 46FCEE00-B4E6-43D0-91C0-023A7FCEB34F */ (REFIID){0x46,0xFC,0xEE,0x00,0xB4,0xE6,0x43,0xD0,0x91,0xC0,0x02,0x3A,0x7F,0xCE,0xB3,0x4F}
  42. #define IID_IDeckLinkVideoInputFrame_v7_6 /* 9A74FA41-AE9F-47AC-8CF4-01F42DD59965 */ (REFIID){0x9A,0x74,0xFA,0x41,0xAE,0x9F,0x47,0xAC,0x8C,0xF4,0x01,0xF4,0x2D,0xD5,0x99,0x65}
  43. #define IID_IDeckLinkScreenPreviewCallback_v7_6 /* 373F499D-4B4D-4518-AD22-6354E5A5825E */ (REFIID){0x37,0x3F,0x49,0x9D,0x4B,0x4D,0x45,0x18,0xAD,0x22,0x63,0x54,0xE5,0xA5,0x82,0x5E}
  44. #define IID_IDeckLinkGLScreenPreviewHelper_v7_6 /* BA575CD9-A15E-497B-B2C2-F9AFE7BE4EBA */ (REFIID){0xBA,0x57,0x5C,0xD9,0xA1,0x5E,0x49,0x7B,0xB2,0xC2,0xF9,0xAF,0xE7,0xBE,0x4E,0xBA}
  45. #define IID_IDeckLinkVideoConversion_v7_6 /* 3EB504C9-F97D-40FE-A158-D407D48CB53B */ (REFIID){0x3E,0xB5,0x04,0xC9,0xF9,0x7D,0x40,0xFE,0xA1,0x58,0xD4,0x07,0xD4,0x8C,0xB5,0x3B}
  46. #define IID_IDeckLinkConfiguration_v7_6 /* B8EAD569-B764-47F0-A73F-AE40DF6CBF10 */ (REFIID){0xB8,0xEA,0xD5,0x69,0xB7,0x64,0x47,0xF0,0xA7,0x3F,0xAE,0x40,0xDF,0x6C,0xBF,0x10}
  47. #if defined(__cplusplus)
  48. /* Enum BMDVideoConnection - Video connection types */
  49. typedef uint32_t BMDVideoConnection_v7_6;
  50. enum _BMDVideoConnection_v7_6 {
  51. bmdVideoConnectionSDI_v7_6 = 'sdi ',
  52. bmdVideoConnectionHDMI_v7_6 = 'hdmi',
  53. bmdVideoConnectionOpticalSDI_v7_6 = 'opti',
  54. bmdVideoConnectionComponent_v7_6 = 'cpnt',
  55. bmdVideoConnectionComposite_v7_6 = 'cmst',
  56. bmdVideoConnectionSVideo_v7_6 = 'svid'
  57. };
  58. // Forward Declarations
  59. class IDeckLinkVideoOutputCallback_v7_6;
  60. class IDeckLinkInputCallback_v7_6;
  61. class IDeckLinkDisplayModeIterator_v7_6;
  62. class IDeckLinkDisplayMode_v7_6;
  63. class IDeckLinkOutput_v7_6;
  64. class IDeckLinkInput_v7_6;
  65. class IDeckLinkTimecode_v7_6;
  66. class IDeckLinkVideoFrame_v7_6;
  67. class IDeckLinkMutableVideoFrame_v7_6;
  68. class IDeckLinkVideoInputFrame_v7_6;
  69. class IDeckLinkScreenPreviewCallback_v7_6;
  70. class IDeckLinkGLScreenPreviewHelper_v7_6;
  71. class IDeckLinkVideoConversion_v7_6;
  72. /* Interface IDeckLinkVideoOutputCallback - Frame completion callback. */
  73. class BMD_PUBLIC IDeckLinkVideoOutputCallback_v7_6 : public IUnknown
  74. {
  75. public:
  76. virtual HRESULT ScheduledFrameCompleted (/* in */ IDeckLinkVideoFrame_v7_6 *completedFrame, /* in */ BMDOutputFrameCompletionResult result) = 0;
  77. virtual HRESULT ScheduledPlaybackHasStopped (void) = 0;
  78. protected:
  79. virtual ~IDeckLinkVideoOutputCallback_v7_6 () {}; // call Release method to drop reference count
  80. };
  81. /* Interface IDeckLinkInputCallback - Frame arrival callback. */
  82. class BMD_PUBLIC IDeckLinkInputCallback_v7_6 : public IUnknown
  83. {
  84. public:
  85. virtual HRESULT VideoInputFormatChanged (/* in */ BMDVideoInputFormatChangedEvents notificationEvents, /* in */ IDeckLinkDisplayMode_v7_6 *newDisplayMode, /* in */ BMDDetectedVideoInputFormatFlags detectedSignalFlags) = 0;
  86. virtual HRESULT VideoInputFrameArrived (/* in */ IDeckLinkVideoInputFrame_v7_6* videoFrame, /* in */ IDeckLinkAudioInputPacket* audioPacket) = 0;
  87. protected:
  88. virtual ~IDeckLinkInputCallback_v7_6 () {}; // call Release method to drop reference count
  89. };
  90. /* Interface IDeckLinkDisplayModeIterator - enumerates over supported input/output display modes. */
  91. class BMD_PUBLIC IDeckLinkDisplayModeIterator_v7_6 : public IUnknown
  92. {
  93. public:
  94. virtual HRESULT Next (/* out */ IDeckLinkDisplayMode_v7_6 **deckLinkDisplayMode) = 0;
  95. protected:
  96. virtual ~IDeckLinkDisplayModeIterator_v7_6 () {}; // call Release method to drop reference count
  97. };
  98. /* Interface IDeckLinkDisplayMode - represents a display mode */
  99. class BMD_PUBLIC IDeckLinkDisplayMode_v7_6 : public IUnknown
  100. {
  101. public:
  102. virtual HRESULT GetName (/* out */ const char **name) = 0;
  103. virtual BMDDisplayMode GetDisplayMode (void) = 0;
  104. virtual long GetWidth (void) = 0;
  105. virtual long GetHeight (void) = 0;
  106. virtual HRESULT GetFrameRate (/* out */ BMDTimeValue *frameDuration, /* out */ BMDTimeScale *timeScale) = 0;
  107. virtual BMDFieldDominance GetFieldDominance (void) = 0;
  108. protected:
  109. virtual ~IDeckLinkDisplayMode_v7_6 () {}; // call Release method to drop reference count
  110. };
  111. /* Interface IDeckLinkOutput - Created by QueryInterface from IDeckLink. */
  112. class BMD_PUBLIC IDeckLinkOutput_v7_6 : public IUnknown
  113. {
  114. public:
  115. virtual HRESULT DoesSupportVideoMode (/* in */ BMDDisplayMode displayMode, /* in */ BMDPixelFormat pixelFormat, /* out */ BMDDisplayModeSupport_v10_11 *result) = 0;
  116. virtual HRESULT GetDisplayModeIterator (/* out */ IDeckLinkDisplayModeIterator_v7_6 **iterator) = 0;
  117. virtual HRESULT SetScreenPreviewCallback (/* in */ IDeckLinkScreenPreviewCallback_v7_6 *previewCallback) = 0;
  118. /* Video Output */
  119. virtual HRESULT EnableVideoOutput (/* in */ BMDDisplayMode displayMode, /* in */ BMDVideoOutputFlags flags) = 0;
  120. virtual HRESULT DisableVideoOutput (void) = 0;
  121. virtual HRESULT SetVideoOutputFrameMemoryAllocator (/* in */ IDeckLinkMemoryAllocator *theAllocator) = 0;
  122. virtual HRESULT CreateVideoFrame (/* in */ int32_t width, /* in */ int32_t height, /* in */ int32_t rowBytes, /* in */ BMDPixelFormat pixelFormat, /* in */ BMDFrameFlags flags, /* out */ IDeckLinkMutableVideoFrame_v7_6 **outFrame) = 0;
  123. virtual HRESULT CreateAncillaryData (/* in */ BMDPixelFormat pixelFormat, /* out */ IDeckLinkVideoFrameAncillary **outBuffer) = 0;
  124. virtual HRESULT DisplayVideoFrameSync (/* in */ IDeckLinkVideoFrame_v7_6 *theFrame) = 0;
  125. virtual HRESULT ScheduleVideoFrame (/* in */ IDeckLinkVideoFrame_v7_6 *theFrame, /* in */ BMDTimeValue displayTime, /* in */ BMDTimeValue displayDuration, /* in */ BMDTimeScale timeScale) = 0;
  126. virtual HRESULT SetScheduledFrameCompletionCallback (/* in */ IDeckLinkVideoOutputCallback_v7_6 *theCallback) = 0;
  127. virtual HRESULT GetBufferedVideoFrameCount (/* out */ uint32_t *bufferedFrameCount) = 0;
  128. /* Audio Output */
  129. virtual HRESULT EnableAudioOutput (/* in */ BMDAudioSampleRate sampleRate, /* in */ BMDAudioSampleType sampleType, /* in */ uint32_t channelCount, /* in */ BMDAudioOutputStreamType streamType) = 0;
  130. virtual HRESULT DisableAudioOutput (void) = 0;
  131. virtual HRESULT WriteAudioSamplesSync (/* in */ void *buffer, /* in */ uint32_t sampleFrameCount, /* out */ uint32_t *sampleFramesWritten) = 0;
  132. virtual HRESULT BeginAudioPreroll (void) = 0;
  133. virtual HRESULT EndAudioPreroll (void) = 0;
  134. virtual HRESULT ScheduleAudioSamples (/* in */ void *buffer, /* in */ uint32_t sampleFrameCount, /* in */ BMDTimeValue streamTime, /* in */ BMDTimeScale timeScale, /* out */ uint32_t *sampleFramesWritten) = 0;
  135. virtual HRESULT GetBufferedAudioSampleFrameCount (/* out */ uint32_t *bufferedSampleFrameCount) = 0;
  136. virtual HRESULT FlushBufferedAudioSamples (void) = 0;
  137. virtual HRESULT SetAudioCallback (/* in */ IDeckLinkAudioOutputCallback *theCallback) = 0;
  138. /* Output Control */
  139. virtual HRESULT StartScheduledPlayback (/* in */ BMDTimeValue playbackStartTime, /* in */ BMDTimeScale timeScale, /* in */ double playbackSpeed) = 0;
  140. virtual HRESULT StopScheduledPlayback (/* in */ BMDTimeValue stopPlaybackAtTime, /* out */ BMDTimeValue *actualStopTime, /* in */ BMDTimeScale timeScale) = 0;
  141. virtual HRESULT IsScheduledPlaybackRunning (/* out */ bool *active) = 0;
  142. virtual HRESULT GetScheduledStreamTime (/* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *streamTime, /* out */ double *playbackSpeed) = 0;
  143. /* Hardware Timing */
  144. virtual HRESULT GetHardwareReferenceClock (/* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *hardwareTime, /* out */ BMDTimeValue *timeInFrame, /* out */ BMDTimeValue *ticksPerFrame) = 0;
  145. protected:
  146. virtual ~IDeckLinkOutput_v7_6 () {}; // call Release method to drop reference count
  147. };
  148. /* Interface IDeckLinkInput_v7_6 - Created by QueryInterface from IDeckLink. */
  149. class BMD_PUBLIC IDeckLinkInput_v7_6 : public IUnknown
  150. {
  151. public:
  152. virtual HRESULT DoesSupportVideoMode (/* in */ BMDDisplayMode displayMode, /* in */ BMDPixelFormat pixelFormat, /* out */ BMDDisplayModeSupport_v10_11 *result) = 0;
  153. virtual HRESULT GetDisplayModeIterator (/* out */ IDeckLinkDisplayModeIterator_v7_6 **iterator) = 0;
  154. virtual HRESULT SetScreenPreviewCallback (/* in */ IDeckLinkScreenPreviewCallback_v7_6 *previewCallback) = 0;
  155. /* Video Input */
  156. virtual HRESULT EnableVideoInput (/* in */ BMDDisplayMode displayMode, /* in */ BMDPixelFormat pixelFormat, /* in */ BMDVideoInputFlags flags) = 0;
  157. virtual HRESULT DisableVideoInput (void) = 0;
  158. virtual HRESULT GetAvailableVideoFrameCount (/* out */ uint32_t *availableFrameCount) = 0;
  159. /* Audio Input */
  160. virtual HRESULT EnableAudioInput (/* in */ BMDAudioSampleRate sampleRate, /* in */ BMDAudioSampleType sampleType, /* in */ uint32_t channelCount) = 0;
  161. virtual HRESULT DisableAudioInput (void) = 0;
  162. virtual HRESULT GetAvailableAudioSampleFrameCount (/* out */ uint32_t *availableSampleFrameCount) = 0;
  163. /* Input Control */
  164. virtual HRESULT StartStreams (void) = 0;
  165. virtual HRESULT StopStreams (void) = 0;
  166. virtual HRESULT PauseStreams (void) = 0;
  167. virtual HRESULT FlushStreams (void) = 0;
  168. virtual HRESULT SetCallback (/* in */ IDeckLinkInputCallback_v7_6 *theCallback) = 0;
  169. /* Hardware Timing */
  170. virtual HRESULT GetHardwareReferenceClock (/* in */ BMDTimeScale desiredTimeScale, /* out */ BMDTimeValue *hardwareTime, /* out */ BMDTimeValue *timeInFrame, /* out */ BMDTimeValue *ticksPerFrame) = 0;
  171. protected:
  172. virtual ~IDeckLinkInput_v7_6 () {}; // call Release method to drop reference count
  173. };
  174. /* Interface IDeckLinkTimecode - Used for video frame timecode representation. */
  175. class BMD_PUBLIC IDeckLinkTimecode_v7_6 : public IUnknown
  176. {
  177. public:
  178. virtual BMDTimecodeBCD GetBCD (void) = 0;
  179. virtual HRESULT GetComponents (/* out */ uint8_t *hours, /* out */ uint8_t *minutes, /* out */ uint8_t *seconds, /* out */ uint8_t *frames) = 0;
  180. virtual HRESULT GetString (/* out */ const char **timecode) = 0;
  181. virtual BMDTimecodeFlags GetFlags (void) = 0;
  182. protected:
  183. virtual ~IDeckLinkTimecode_v7_6 () {}; // call Release method to drop reference count
  184. };
  185. /* Interface IDeckLinkVideoFrame - Interface to encapsulate a video frame; can be caller-implemented. */
  186. class BMD_PUBLIC IDeckLinkVideoFrame_v7_6 : public IUnknown
  187. {
  188. public:
  189. virtual long GetWidth (void) = 0;
  190. virtual long GetHeight (void) = 0;
  191. virtual long GetRowBytes (void) = 0;
  192. virtual BMDPixelFormat GetPixelFormat (void) = 0;
  193. virtual BMDFrameFlags GetFlags (void) = 0;
  194. virtual HRESULT GetBytes (/* out */ void **buffer) = 0;
  195. virtual HRESULT GetTimecode (BMDTimecodeFormat format, /* out */ IDeckLinkTimecode_v7_6 **timecode) = 0;
  196. virtual HRESULT GetAncillaryData (/* out */ IDeckLinkVideoFrameAncillary **ancillary) = 0;
  197. protected:
  198. virtual ~IDeckLinkVideoFrame_v7_6 () {}; // call Release method to drop reference count
  199. };
  200. /* Interface IDeckLinkMutableVideoFrame - Created by IDeckLinkOutput::CreateVideoFrame. */
  201. class BMD_PUBLIC IDeckLinkMutableVideoFrame_v7_6 : public IDeckLinkVideoFrame_v7_6
  202. {
  203. public:
  204. virtual HRESULT SetFlags (BMDFrameFlags newFlags) = 0;
  205. virtual HRESULT SetTimecode (BMDTimecodeFormat format, /* in */ IDeckLinkTimecode_v7_6 *timecode) = 0;
  206. virtual HRESULT SetTimecodeFromComponents (BMDTimecodeFormat format, uint8_t hours, uint8_t minutes, uint8_t seconds, uint8_t frames, BMDTimecodeFlags flags) = 0;
  207. virtual HRESULT SetAncillaryData (/* in */ IDeckLinkVideoFrameAncillary *ancillary) = 0;
  208. protected:
  209. virtual ~IDeckLinkMutableVideoFrame_v7_6 () {}; // call Release method to drop reference count
  210. };
  211. /* Interface IDeckLinkVideoInputFrame - Provided by the IDeckLinkVideoInput frame arrival callback. */
  212. class BMD_PUBLIC IDeckLinkVideoInputFrame_v7_6 : public IDeckLinkVideoFrame_v7_6
  213. {
  214. public:
  215. virtual HRESULT GetStreamTime (/* out */ BMDTimeValue *frameTime, /* out */ BMDTimeValue *frameDuration, BMDTimeScale timeScale) = 0;
  216. virtual HRESULT GetHardwareReferenceTimestamp (BMDTimeScale timeScale, /* out */ BMDTimeValue *frameTime, /* out */ BMDTimeValue *frameDuration) = 0;
  217. protected:
  218. virtual ~IDeckLinkVideoInputFrame_v7_6 () {}; // call Release method to drop reference count
  219. };
  220. /* Interface IDeckLinkScreenPreviewCallback - Screen preview callback */
  221. class BMD_PUBLIC IDeckLinkScreenPreviewCallback_v7_6 : public IUnknown
  222. {
  223. public:
  224. virtual HRESULT DrawFrame (/* in */ IDeckLinkVideoFrame_v7_6 *theFrame) = 0;
  225. protected:
  226. virtual ~IDeckLinkScreenPreviewCallback_v7_6 () {}; // call Release method to drop reference count
  227. };
  228. /* Interface IDeckLinkGLScreenPreviewHelper - Created with CoCreateInstance(). */
  229. class BMD_PUBLIC IDeckLinkGLScreenPreviewHelper_v7_6 : public IUnknown
  230. {
  231. public:
  232. /* Methods must be called with OpenGL context set */
  233. virtual HRESULT InitializeGL (void) = 0;
  234. virtual HRESULT PaintGL (void) = 0;
  235. virtual HRESULT SetFrame (/* in */ IDeckLinkVideoFrame_v7_6 *theFrame) = 0;
  236. protected:
  237. virtual ~IDeckLinkGLScreenPreviewHelper_v7_6 () {}; // call Release method to drop reference count
  238. };
  239. /* Interface IDeckLinkVideoConversion - Created with CoCreateInstance(). */
  240. class BMD_PUBLIC IDeckLinkVideoConversion_v7_6 : public IUnknown
  241. {
  242. public:
  243. virtual HRESULT ConvertFrame (/* in */ IDeckLinkVideoFrame_v7_6* srcFrame, /* in */ IDeckLinkVideoFrame_v7_6* dstFrame) = 0;
  244. protected:
  245. virtual ~IDeckLinkVideoConversion_v7_6 () {}; // call Release method to drop reference count
  246. };
  247. /* Interface IDeckLinkConfiguration - Created by QueryInterface from IDeckLink. */
  248. class BMD_PUBLIC IDeckLinkConfiguration_v7_6 : public IUnknown
  249. {
  250. public:
  251. virtual HRESULT GetConfigurationValidator (/* out */ IDeckLinkConfiguration_v7_6 **configObject) = 0;
  252. virtual HRESULT WriteConfigurationToPreferences (void) = 0;
  253. /* Video Output Configuration */
  254. virtual HRESULT SetVideoOutputFormat (/* in */ BMDVideoConnection_v7_6 videoOutputConnection) = 0;
  255. virtual HRESULT IsVideoOutputActive (/* in */ BMDVideoConnection_v7_6 videoOutputConnection, /* out */ bool *active) = 0;
  256. virtual HRESULT SetAnalogVideoOutputFlags (/* in */ BMDAnalogVideoFlags analogVideoFlags) = 0;
  257. virtual HRESULT GetAnalogVideoOutputFlags (/* out */ BMDAnalogVideoFlags *analogVideoFlags) = 0;
  258. virtual HRESULT EnableFieldFlickerRemovalWhenPaused (/* in */ bool enable) = 0;
  259. virtual HRESULT IsEnabledFieldFlickerRemovalWhenPaused (/* out */ bool *enabled) = 0;
  260. virtual HRESULT Set444And3GBpsVideoOutput (/* in */ bool enable444VideoOutput, /* in */ bool enable3GbsOutput) = 0;
  261. virtual HRESULT Get444And3GBpsVideoOutput (/* out */ bool *is444VideoOutputEnabled, /* out */ bool *threeGbsOutputEnabled) = 0;
  262. virtual HRESULT SetVideoOutputConversionMode (/* in */ BMDVideoOutputConversionMode conversionMode) = 0;
  263. virtual HRESULT GetVideoOutputConversionMode (/* out */ BMDVideoOutputConversionMode *conversionMode) = 0;
  264. virtual HRESULT Set_HD1080p24_to_HD1080i5994_Conversion (/* in */ bool enable) = 0;
  265. virtual HRESULT Get_HD1080p24_to_HD1080i5994_Conversion (/* out */ bool *enabled) = 0;
  266. /* Video Input Configuration */
  267. virtual HRESULT SetVideoInputFormat (/* in */ BMDVideoConnection_v7_6 videoInputFormat) = 0;
  268. virtual HRESULT GetVideoInputFormat (/* out */ BMDVideoConnection_v7_6 *videoInputFormat) = 0;
  269. virtual HRESULT SetAnalogVideoInputFlags (/* in */ BMDAnalogVideoFlags analogVideoFlags) = 0;
  270. virtual HRESULT GetAnalogVideoInputFlags (/* out */ BMDAnalogVideoFlags *analogVideoFlags) = 0;
  271. virtual HRESULT SetVideoInputConversionMode (/* in */ BMDVideoInputConversionMode conversionMode) = 0;
  272. virtual HRESULT GetVideoInputConversionMode (/* out */ BMDVideoInputConversionMode *conversionMode) = 0;
  273. virtual HRESULT SetBlackVideoOutputDuringCapture (/* in */ bool blackOutInCapture) = 0;
  274. virtual HRESULT GetBlackVideoOutputDuringCapture (/* out */ bool *blackOutInCapture) = 0;
  275. virtual HRESULT Set32PulldownSequenceInitialTimecodeFrame (/* in */ uint32_t aFrameTimecode) = 0;
  276. virtual HRESULT Get32PulldownSequenceInitialTimecodeFrame (/* out */ uint32_t *aFrameTimecode) = 0;
  277. virtual HRESULT SetVancSourceLineMapping (/* in */ uint32_t activeLine1VANCsource, /* in */ uint32_t activeLine2VANCsource, /* in */ uint32_t activeLine3VANCsource) = 0;
  278. virtual HRESULT GetVancSourceLineMapping (/* out */ uint32_t *activeLine1VANCsource, /* out */ uint32_t *activeLine2VANCsource, /* out */ uint32_t *activeLine3VANCsource) = 0;
  279. /* Audio Input Configuration */
  280. virtual HRESULT SetAudioInputFormat (/* in */ BMDAudioConnection audioInputFormat) = 0;
  281. virtual HRESULT GetAudioInputFormat (/* out */ BMDAudioConnection *audioInputFormat) = 0;
  282. };
  283. /* Functions */
  284. extern "C" {
  285. IDeckLinkIterator* BMD_PUBLIC CreateDeckLinkIteratorInstance_v7_6 (void);
  286. IDeckLinkGLScreenPreviewHelper_v7_6* BMD_PUBLIC CreateOpenGLScreenPreviewHelper_v7_6 (void);
  287. IDeckLinkVideoConversion_v7_6* BMD_PUBLIC CreateVideoConversionInstance_v7_6 (void);
  288. };
  289. #endif // defined(__cplusplus)
  290. #endif // __DeckLink_API_v7_6_h__