DeckLinkAPI_v11_5_1.idl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* -LICENSE-START-
  2. ** Copyright (c) 2020 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_v11_5_1.idl */
  28. // Enumeration Mapping
  29. /* Enum BMDDeckLinkStatusID - DeckLink Status ID */
  30. typedef [v1_enum] enum _BMDDeckLinkStatusID_v11_5_1 {
  31. /* Video output flags */
  32. bmdDeckLinkStatusDetectedVideoInputFlags_v11_5_1 = /* 'dvif' */ 0x64766966,
  33. } BMDDeckLinkStatusID_v11_5_1;
  34. /* Interface IDeckLinkInputCallback_v11_5_1 - Frame arrival callback. */
  35. [
  36. object,
  37. uuid(DD04E5EC-7415-42AB-AE4A-E80C4DFC044A),
  38. helpstring("Frame arrival callback.")
  39. ] interface IDeckLinkInputCallback_v11_5_1 : IUnknown
  40. {
  41. HRESULT VideoInputFormatChanged ([in] BMDVideoInputFormatChangedEvents notificationEvents, [in] IDeckLinkDisplayMode* newDisplayMode, [in] BMDDetectedVideoInputFormatFlags detectedSignalFlags);
  42. HRESULT VideoInputFrameArrived ([in] IDeckLinkVideoInputFrame* videoFrame, [in] IDeckLinkAudioInputPacket* audioPacket);
  43. };
  44. /* Interface IDeckLinkInput_v11_5_1 - Created by QueryInterface from IDeckLink. */
  45. [
  46. object,
  47. uuid(9434C6E4-B15D-4B1C-979E-661E3DDCB4B9),
  48. helpstring("Created by QueryInterface from IDeckLink.")
  49. ] interface IDeckLinkInput_v11_5_1 : IUnknown
  50. {
  51. HRESULT DoesSupportVideoMode ([in] BMDVideoConnection connection /* If a value of bmdVideoConnectionUnspecified is specified, the caller does not care about the connection */, [in] BMDDisplayMode requestedMode, [in] BMDPixelFormat requestedPixelFormat, [in] BMDVideoInputConversionMode conversionMode, [in] BMDSupportedVideoModeFlags flags, [out] BMDDisplayMode* actualMode, [out] BOOL* supported);
  52. HRESULT GetDisplayMode ([in] BMDDisplayMode displayMode, [out] IDeckLinkDisplayMode** resultDisplayMode);
  53. HRESULT GetDisplayModeIterator ([out] IDeckLinkDisplayModeIterator** iterator);
  54. HRESULT SetScreenPreviewCallback ([in] IDeckLinkScreenPreviewCallback* previewCallback);
  55. /* Video Input */
  56. HRESULT EnableVideoInput ([in] BMDDisplayMode displayMode, [in] BMDPixelFormat pixelFormat, [in] BMDVideoInputFlags flags);
  57. HRESULT DisableVideoInput (void);
  58. HRESULT GetAvailableVideoFrameCount ([out] unsigned int* availableFrameCount);
  59. HRESULT SetVideoInputFrameMemoryAllocator ([in] IDeckLinkMemoryAllocator* theAllocator);
  60. /* Audio Input */
  61. HRESULT EnableAudioInput ([in] BMDAudioSampleRate sampleRate, [in] BMDAudioSampleType sampleType, [in] unsigned int channelCount);
  62. HRESULT DisableAudioInput (void);
  63. HRESULT GetAvailableAudioSampleFrameCount ([out] unsigned int* availableSampleFrameCount);
  64. /* Input Control */
  65. HRESULT StartStreams (void);
  66. HRESULT StopStreams (void);
  67. HRESULT PauseStreams (void);
  68. HRESULT FlushStreams (void);
  69. HRESULT SetCallback ([in] IDeckLinkInputCallback_v11_5_1* theCallback);
  70. /* Hardware Timing */
  71. HRESULT GetHardwareReferenceClock ([in] BMDTimeScale desiredTimeScale, [out] BMDTimeValue* hardwareTime, [out] BMDTimeValue* timeInFrame, [out] BMDTimeValue* ticksPerFrame);
  72. };