2016-02-23 23:16:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
#include <DeckLinkAPI.h>
|
2020-03-25 08:07:22 +00:00
|
|
|
#include "win/decklink-sdk/DeckLinkAPIVersion.h"
|
2018-02-19 19:54:37 +00:00
|
|
|
typedef BOOL decklink_bool_t;
|
2016-02-23 23:16:51 +00:00
|
|
|
typedef BSTR decklink_string_t;
|
|
|
|
IDeckLinkDiscovery *CreateDeckLinkDiscoveryInstance(void);
|
2020-03-25 08:07:22 +00:00
|
|
|
IDeckLinkIterator *CreateDeckLinkIteratorInstance(void);
|
2020-12-22 17:32:50 +00:00
|
|
|
IDeckLinkVideoConversion *CreateVideoConversionInstance(void);
|
2016-02-23 23:16:51 +00:00
|
|
|
#define IUnknownUUID IID_IUnknown
|
|
|
|
typedef REFIID CFUUIDBytes;
|
|
|
|
#define CFUUIDGetUUIDBytes(x) x
|
|
|
|
#elif defined(__APPLE__)
|
|
|
|
#include "mac/decklink-sdk/DeckLinkAPI.h"
|
2020-03-25 08:07:22 +00:00
|
|
|
#include "mac/decklink-sdk/DeckLinkAPIVersion.h"
|
2016-02-23 23:16:51 +00:00
|
|
|
#include <CoreFoundation/CoreFoundation.h>
|
2018-02-19 19:54:37 +00:00
|
|
|
typedef bool decklink_bool_t;
|
2016-02-23 23:16:51 +00:00
|
|
|
typedef CFStringRef decklink_string_t;
|
|
|
|
#elif defined(__linux__)
|
|
|
|
#include "linux/decklink-sdk/DeckLinkAPI.h"
|
2020-03-25 08:07:22 +00:00
|
|
|
#include "linux/decklink-sdk/DeckLinkAPIVersion.h"
|
2018-02-19 19:54:37 +00:00
|
|
|
typedef bool decklink_bool_t;
|
2016-02-23 23:16:51 +00:00
|
|
|
typedef const char *decklink_string_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <util/windows/HRError.hpp>
|
|
|
|
#include <util/windows/ComPtr.hpp>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2019-09-22 21:19:10 +00:00
|
|
|
bool DeckLinkStringToStdString(decklink_string_t input, std::string &output);
|