DeckLinkAPIConfiguration.idl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. // Type Declarations
  35. // Enumeration Mapping
  36. cpp_quote("#if 0")
  37. cpp_quote("#endif")
  38. /* Enum BMDDeckLinkConfigurationID - DeckLink Configuration ID */
  39. typedef [v1_enum] enum _BMDDeckLinkConfigurationID {
  40. /* Serial port Flags */
  41. bmdDeckLinkConfigSwapSerialRxTx = /* 'ssrt' */ 0x73737274,
  42. /* Video Input/Output Flags */
  43. bmdDeckLinkConfigUse1080pNotPsF = /* 'fpro' */ 0x6670726F,
  44. /* Video Input/Output Integers */
  45. bmdDeckLinkConfigHDMI3DPackingFormat = /* '3dpf' */ 0x33647066,
  46. bmdDeckLinkConfigBypass = /* 'byps' */ 0x62797073,
  47. bmdDeckLinkConfigClockTimingAdjustment = /* 'ctad' */ 0x63746164,
  48. bmdDeckLinkConfigDuplexMode = /* 'dupx' */ 0x64757078,
  49. /* Audio Input/Output Flags */
  50. bmdDeckLinkConfigAnalogAudioConsumerLevels = /* 'aacl' */ 0x6161636C,
  51. /* Video output flags */
  52. bmdDeckLinkConfigFieldFlickerRemoval = /* 'fdfr' */ 0x66646672,
  53. bmdDeckLinkConfigHD1080p24ToHD1080i5994Conversion = /* 'to59' */ 0x746F3539,
  54. bmdDeckLinkConfig444SDIVideoOutput = /* '444o' */ 0x3434346F,
  55. bmdDeckLinkConfigBlackVideoOutputDuringCapture = /* 'bvoc' */ 0x62766F63,
  56. bmdDeckLinkConfigLowLatencyVideoOutput = /* 'llvo' */ 0x6C6C766F,
  57. bmdDeckLinkConfigDownConversionOnAllAnalogOutput = /* 'caao' */ 0x6361616F,
  58. bmdDeckLinkConfigSMPTELevelAOutput = /* 'smta' */ 0x736D7461,
  59. /* Video Output Integers */
  60. bmdDeckLinkConfigVideoOutputConnection = /* 'vocn' */ 0x766F636E,
  61. bmdDeckLinkConfigVideoOutputConversionMode = /* 'vocm' */ 0x766F636D,
  62. bmdDeckLinkConfigAnalogVideoOutputFlags = /* 'avof' */ 0x61766F66,
  63. bmdDeckLinkConfigReferenceInputTimingOffset = /* 'glot' */ 0x676C6F74,
  64. bmdDeckLinkConfigVideoOutputIdleOperation = /* 'voio' */ 0x766F696F,
  65. bmdDeckLinkConfigDefaultVideoOutputMode = /* 'dvom' */ 0x64766F6D,
  66. bmdDeckLinkConfigDefaultVideoOutputModeFlags = /* 'dvof' */ 0x64766F66,
  67. bmdDeckLinkConfigSDIOutputLinkConfiguration = /* 'solc' */ 0x736F6C63,
  68. /* Video Output Floats */
  69. bmdDeckLinkConfigVideoOutputComponentLumaGain = /* 'oclg' */ 0x6F636C67,
  70. bmdDeckLinkConfigVideoOutputComponentChromaBlueGain = /* 'occb' */ 0x6F636362,
  71. bmdDeckLinkConfigVideoOutputComponentChromaRedGain = /* 'occr' */ 0x6F636372,
  72. bmdDeckLinkConfigVideoOutputCompositeLumaGain = /* 'oilg' */ 0x6F696C67,
  73. bmdDeckLinkConfigVideoOutputCompositeChromaGain = /* 'oicg' */ 0x6F696367,
  74. bmdDeckLinkConfigVideoOutputSVideoLumaGain = /* 'oslg' */ 0x6F736C67,
  75. bmdDeckLinkConfigVideoOutputSVideoChromaGain = /* 'oscg' */ 0x6F736367,
  76. /* Video Input Flags */
  77. bmdDeckLinkConfigVideoInputScanning = /* 'visc' */ 0x76697363, // Applicable to H264 Pro Recorder only
  78. bmdDeckLinkConfigUseDedicatedLTCInput = /* 'dltc' */ 0x646C7463, // Use timecode from LTC input instead of SDI stream
  79. bmdDeckLinkConfigSDIInput3DPayloadOverride = /* '3dds' */ 0x33646473,
  80. /* Video Input Integers */
  81. bmdDeckLinkConfigVideoInputConnection = /* 'vicn' */ 0x7669636E,
  82. bmdDeckLinkConfigAnalogVideoInputFlags = /* 'avif' */ 0x61766966,
  83. bmdDeckLinkConfigVideoInputConversionMode = /* 'vicm' */ 0x7669636D,
  84. bmdDeckLinkConfig32PulldownSequenceInitialTimecodeFrame = /* 'pdif' */ 0x70646966,
  85. bmdDeckLinkConfigVANCSourceLine1Mapping = /* 'vsl1' */ 0x76736C31,
  86. bmdDeckLinkConfigVANCSourceLine2Mapping = /* 'vsl2' */ 0x76736C32,
  87. bmdDeckLinkConfigVANCSourceLine3Mapping = /* 'vsl3' */ 0x76736C33,
  88. bmdDeckLinkConfigCapturePassThroughMode = /* 'cptm' */ 0x6370746D,
  89. /* Video Input Floats */
  90. bmdDeckLinkConfigVideoInputComponentLumaGain = /* 'iclg' */ 0x69636C67,
  91. bmdDeckLinkConfigVideoInputComponentChromaBlueGain = /* 'iccb' */ 0x69636362,
  92. bmdDeckLinkConfigVideoInputComponentChromaRedGain = /* 'iccr' */ 0x69636372,
  93. bmdDeckLinkConfigVideoInputCompositeLumaGain = /* 'iilg' */ 0x69696C67,
  94. bmdDeckLinkConfigVideoInputCompositeChromaGain = /* 'iicg' */ 0x69696367,
  95. bmdDeckLinkConfigVideoInputSVideoLumaGain = /* 'islg' */ 0x69736C67,
  96. bmdDeckLinkConfigVideoInputSVideoChromaGain = /* 'iscg' */ 0x69736367,
  97. /* Audio Input Flags */
  98. bmdDeckLinkConfigMicrophonePhantomPower = /* 'mphp' */ 0x6D706870,
  99. /* Audio Input Integers */
  100. bmdDeckLinkConfigAudioInputConnection = /* 'aicn' */ 0x6169636E,
  101. /* Audio Input Floats */
  102. bmdDeckLinkConfigAnalogAudioInputScaleChannel1 = /* 'ais1' */ 0x61697331,
  103. bmdDeckLinkConfigAnalogAudioInputScaleChannel2 = /* 'ais2' */ 0x61697332,
  104. bmdDeckLinkConfigAnalogAudioInputScaleChannel3 = /* 'ais3' */ 0x61697333,
  105. bmdDeckLinkConfigAnalogAudioInputScaleChannel4 = /* 'ais4' */ 0x61697334,
  106. bmdDeckLinkConfigDigitalAudioInputScale = /* 'dais' */ 0x64616973,
  107. bmdDeckLinkConfigMicrophoneInputGain = /* 'micg' */ 0x6D696367,
  108. /* Audio Output Integers */
  109. bmdDeckLinkConfigAudioOutputAESAnalogSwitch = /* 'aoaa' */ 0x616F6161,
  110. /* Audio Output Floats */
  111. bmdDeckLinkConfigAnalogAudioOutputScaleChannel1 = /* 'aos1' */ 0x616F7331,
  112. bmdDeckLinkConfigAnalogAudioOutputScaleChannel2 = /* 'aos2' */ 0x616F7332,
  113. bmdDeckLinkConfigAnalogAudioOutputScaleChannel3 = /* 'aos3' */ 0x616F7333,
  114. bmdDeckLinkConfigAnalogAudioOutputScaleChannel4 = /* 'aos4' */ 0x616F7334,
  115. bmdDeckLinkConfigDigitalAudioOutputScale = /* 'daos' */ 0x64616F73,
  116. bmdDeckLinkConfigHeadphoneVolume = /* 'hvol' */ 0x68766F6C,
  117. /* Device Information Strings */
  118. bmdDeckLinkConfigDeviceInformationLabel = /* 'dila' */ 0x64696C61,
  119. bmdDeckLinkConfigDeviceInformationSerialNumber = /* 'disn' */ 0x6469736E,
  120. bmdDeckLinkConfigDeviceInformationCompany = /* 'dico' */ 0x6469636F,
  121. bmdDeckLinkConfigDeviceInformationPhone = /* 'diph' */ 0x64697068,
  122. bmdDeckLinkConfigDeviceInformationEmail = /* 'diem' */ 0x6469656D,
  123. bmdDeckLinkConfigDeviceInformationDate = /* 'dida' */ 0x64696461,
  124. /* Deck Control Integers */
  125. bmdDeckLinkConfigDeckControlConnection = /* 'dcco' */ 0x6463636F
  126. } BMDDeckLinkConfigurationID;
  127. /* Enum BMDDeckLinkEncoderConfigurationID - DeckLink Encoder Configuration ID */
  128. typedef [v1_enum] enum _BMDDeckLinkEncoderConfigurationID {
  129. /* Video Encoder Integers */
  130. bmdDeckLinkEncoderConfigPreferredBitDepth = /* 'epbr' */ 0x65706272,
  131. bmdDeckLinkEncoderConfigFrameCodingMode = /* 'efcm' */ 0x6566636D,
  132. /* HEVC/H.265 Encoder Integers */
  133. bmdDeckLinkEncoderConfigH265TargetBitrate = /* 'htbr' */ 0x68746272,
  134. /* DNxHR/DNxHD Compression ID */
  135. bmdDeckLinkEncoderConfigDNxHRCompressionID = /* 'dcid' */ 0x64636964,
  136. /* DNxHR/DNxHD Level */
  137. bmdDeckLinkEncoderConfigDNxHRLevel = /* 'dlev' */ 0x646C6576,
  138. /* Encoded Sample Decriptions */
  139. bmdDeckLinkEncoderConfigMPEG4SampleDescription = /* 'stsE' */ 0x73747345, // Full MPEG4 sample description (aka SampleEntry of an 'stsd' atom-box). Useful for MediaFoundation, QuickTime, MKV and more
  140. bmdDeckLinkEncoderConfigMPEG4CodecSpecificDesc = /* 'esds' */ 0x65736473 // Sample description extensions only (atom stream, each with size and fourCC header). Useful for AVFoundation, VideoToolbox, MKV and more
  141. } BMDDeckLinkEncoderConfigurationID;
  142. // Forward Declarations
  143. interface IDeckLinkConfiguration;
  144. interface IDeckLinkEncoderConfiguration;
  145. /* Interface IDeckLinkConfiguration - DeckLink Configuration interface */
  146. [
  147. object,
  148. uuid(CB71734A-FE37-4E8D-8E13-802133A1C3F2),
  149. local,
  150. helpstring("DeckLink Configuration interface")
  151. ] interface IDeckLinkConfiguration : IUnknown
  152. {
  153. HRESULT SetFlag([in] BMDDeckLinkConfigurationID cfgID, [in] BOOL value);
  154. HRESULT GetFlag([in] BMDDeckLinkConfigurationID cfgID, [out] BOOL *value);
  155. HRESULT SetInt([in] BMDDeckLinkConfigurationID cfgID, [in] LONGLONG value);
  156. HRESULT GetInt([in] BMDDeckLinkConfigurationID cfgID, [out] LONGLONG *value);
  157. HRESULT SetFloat([in] BMDDeckLinkConfigurationID cfgID, [in] double value);
  158. HRESULT GetFloat([in] BMDDeckLinkConfigurationID cfgID, [out] double *value);
  159. HRESULT SetString([in] BMDDeckLinkConfigurationID cfgID, [in] BSTR value);
  160. HRESULT GetString([in] BMDDeckLinkConfigurationID cfgID, [out] BSTR *value);
  161. HRESULT WriteConfigurationToPreferences(void);
  162. };
  163. /* Interface IDeckLinkEncoderConfiguration - DeckLink Encoder Configuration interface. Obtained from IDeckLinkEncoderInput */
  164. [
  165. object,
  166. uuid(138050E5-C60A-4552-BF3F-0F358049327E),
  167. local,
  168. helpstring("DeckLink Encoder Configuration interface. Obtained from IDeckLinkEncoderInput")
  169. ] interface IDeckLinkEncoderConfiguration : IUnknown
  170. {
  171. HRESULT SetFlag([in] BMDDeckLinkEncoderConfigurationID cfgID, [in] BOOL value);
  172. HRESULT GetFlag([in] BMDDeckLinkEncoderConfigurationID cfgID, [out] BOOL *value);
  173. HRESULT SetInt([in] BMDDeckLinkEncoderConfigurationID cfgID, [in] LONGLONG value);
  174. HRESULT GetInt([in] BMDDeckLinkEncoderConfigurationID cfgID, [out] LONGLONG *value);
  175. HRESULT SetFloat([in] BMDDeckLinkEncoderConfigurationID cfgID, [in] double value);
  176. HRESULT GetFloat([in] BMDDeckLinkEncoderConfigurationID cfgID, [out] double *value);
  177. HRESULT SetString([in] BMDDeckLinkEncoderConfigurationID cfgID, [in] BSTR value);
  178. HRESULT GetString([in] BMDDeckLinkEncoderConfigurationID cfgID, [out] BSTR *value);
  179. HRESULT GetBytes([in] BMDDeckLinkEncoderConfigurationID cfgID, [out] void *buffer /* optional */, [in, out] unsigned int *bufferSize);
  180. };
  181. /* Coclasses */
  182. importlib("stdole2.tlb");