DeckLinkAPI_v10_11.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /* -LICENSE-START-
  2. ** Copyright (c) 2018 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_v10_11_H
  28. #define BMD_DECKLINKAPI_v10_11_H
  29. #include "DeckLinkAPI.h"
  30. // Interface ID Declarations
  31. BMD_CONST REFIID IID_IDeckLinkAttributes_v10_11 = /* ABC11843-D966-44CB-96E2-A1CB5D3135C4 */ {0xAB,0xC1,0x18,0x43,0xD9,0x66,0x44,0xCB,0x96,0xE2,0xA1,0xCB,0x5D,0x31,0x35,0xC4};
  32. BMD_CONST REFIID IID_IDeckLinkNotification_v10_11 = /* 0A1FB207-E215-441B-9B19-6FA1575946C5 */ {0x0A,0x1F,0xB2,0x07,0xE2,0x15,0x44,0x1B,0x9B,0x19,0x6F,0xA1,0x57,0x59,0x46,0xC5};
  33. /* Enum BMDDisplayModeSupport_v10_11 - Output mode supported flags */
  34. typedef uint32_t BMDDisplayModeSupport_v10_11;
  35. enum _BMDDisplayModeSupport_v10_11 {
  36. bmdDisplayModeNotSupported_v10_11 = 0,
  37. bmdDisplayModeSupported_v10_11,
  38. bmdDisplayModeSupportedWithConversion_v10_11
  39. };
  40. /* Enum BMDDuplexMode_v10_11 - Duplex for configurable ports */
  41. typedef uint32_t BMDDuplexMode_v10_11;
  42. enum _BMDDuplexMode_v10_11 {
  43. bmdDuplexModeFull_v10_11 = /* 'fdup' */ 0x66647570,
  44. bmdDuplexModeHalf_v10_11 = /* 'hdup' */ 0x68647570
  45. };
  46. /* Enum BMDDeckLinkAttributeID_v10_11 - DeckLink Attribute ID */
  47. enum _BMDDeckLinkAttributeID_v10_11 {
  48. /* Flags */
  49. BMDDeckLinkSupportsDuplexModeConfiguration_v10_11 = 'dupx',
  50. BMDDeckLinkSupportsHDKeying_v10_11 = 'keyh',
  51. /* Integers */
  52. BMDDeckLinkPairedDevicePersistentID_v10_11 = 'ppid',
  53. BMDDeckLinkSupportsFullDuplex_v10_11 = 'fdup',
  54. };
  55. enum _BMDDeckLinkStatusID_v10_11 {
  56. bmdDeckLinkStatusDuplexMode_v10_11 = 'dupx',
  57. };
  58. typedef uint32_t BMDDuplexStatus_v10_11;
  59. enum _BMDDuplexStatus_v10_11 {
  60. bmdDuplexFullDuplex_v10_11 = 'fdup',
  61. bmdDuplexHalfDuplex_v10_11 = 'hdup',
  62. bmdDuplexSimplex_v10_11 = 'splx',
  63. bmdDuplexInactive_v10_11 = 'inac',
  64. };
  65. #if defined(__cplusplus)
  66. /* Interface IDeckLinkAttributes_v10_11 - DeckLink Attribute interface */
  67. class BMD_PUBLIC IDeckLinkAttributes_v10_11 : public IUnknown
  68. {
  69. public:
  70. virtual HRESULT GetFlag (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ bool *value) = 0;
  71. virtual HRESULT GetInt (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ int64_t *value) = 0;
  72. virtual HRESULT GetFloat (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ double *value) = 0;
  73. virtual HRESULT GetString (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ const char **value) = 0;
  74. protected:
  75. virtual ~IDeckLinkAttributes_v10_11 () {} // call Release method to drop reference count
  76. };
  77. /* Interface IDeckLinkNotification_v10_11 - DeckLink Notification interface */
  78. class BMD_PUBLIC IDeckLinkNotification_v10_11 : public IUnknown
  79. {
  80. public:
  81. virtual HRESULT Subscribe (/* in */ BMDNotifications topic, /* in */ IDeckLinkNotificationCallback *theCallback) = 0;
  82. virtual HRESULT Unsubscribe (/* in */ BMDNotifications topic, /* in */ IDeckLinkNotificationCallback *theCallback) = 0;
  83. };
  84. /* Functions */
  85. extern "C" {
  86. IDeckLinkIterator* BMD_PUBLIC CreateDeckLinkIteratorInstance_v10_11 (void);
  87. IDeckLinkDiscovery* BMD_PUBLIC CreateDeckLinkDiscoveryInstance_v10_11 (void);
  88. IDeckLinkAPIInformation* BMD_PUBLIC CreateDeckLinkAPIInformationInstance_v10_11 (void);
  89. IDeckLinkGLScreenPreviewHelper* BMD_PUBLIC CreateOpenGLScreenPreviewHelper_v10_11 (void);
  90. IDeckLinkVideoConversion* BMD_PUBLIC CreateVideoConversionInstance_v10_11 (void);
  91. IDeckLinkVideoFrameAncillaryPackets* BMD_PUBLIC CreateVideoFrameAncillaryPacketsInstance_v10_11 (void); // For use when creating a custom IDeckLinkVideoFrame without wrapping IDeckLinkOutput::CreateVideoFrame
  92. }
  93. #endif // defined(__cplusplus)
  94. #endif /* defined(BMD_DECKLINKAPI_v10_11_H) */