platform.hpp 768 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #if defined(_WIN32)
  3. #include <DeckLinkAPI.h>
  4. typedef BOOL decklink_bool_t;
  5. typedef BSTR decklink_string_t;
  6. IDeckLinkDiscovery *CreateDeckLinkDiscoveryInstance(void);
  7. #define IUnknownUUID IID_IUnknown
  8. typedef REFIID CFUUIDBytes;
  9. #define CFUUIDGetUUIDBytes(x) x
  10. #elif defined(__APPLE__)
  11. #include "mac/decklink-sdk/DeckLinkAPI.h"
  12. #include <CoreFoundation/CoreFoundation.h>
  13. typedef bool decklink_bool_t;
  14. typedef CFStringRef decklink_string_t;
  15. #elif defined(__linux__)
  16. #include "linux/decklink-sdk/DeckLinkAPI.h"
  17. typedef bool decklink_bool_t;
  18. typedef const char *decklink_string_t;
  19. #endif
  20. #include <util/windows/HRError.hpp>
  21. #include <util/windows/ComPtr.hpp>
  22. #include <string>
  23. bool DeckLinkStringToStdString(decklink_string_t input, std::string& output);