2015-02-18 15:15:38 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
2021-09-17 21:14:56 -07:00
|
|
|
#include <combaseapi.h>
|
2015-02-28 17:17:32 -08:00
|
|
|
#include <DeckLinkAPI.h>
|
2020-02-09 16:22:05 -06:00
|
|
|
#include "win/decklink-sdk/DeckLinkAPIVersion.h"
|
2017-05-05 21:55:06 +09:00
|
|
|
typedef BOOL decklink_bool_t;
|
2015-02-28 17:17:32 -08:00
|
|
|
typedef BSTR decklink_string_t;
|
|
|
|
IDeckLinkDiscovery *CreateDeckLinkDiscoveryInstance(void);
|
2020-02-09 16:22:05 -06:00
|
|
|
IDeckLinkIterator *CreateDeckLinkIteratorInstance(void);
|
2019-08-26 17:58:20 -05:00
|
|
|
IDeckLinkVideoConversion *CreateVideoConversionInstance(void);
|
2015-02-28 17:17:32 -08:00
|
|
|
#define IUnknownUUID IID_IUnknown
|
|
|
|
typedef REFIID CFUUIDBytes;
|
|
|
|
#define CFUUIDGetUUIDBytes(x) x
|
2015-02-18 15:15:38 -08:00
|
|
|
#elif defined(__APPLE__)
|
2015-02-18 15:21:30 -08:00
|
|
|
#include "mac/decklink-sdk/DeckLinkAPI.h"
|
2020-02-09 16:22:05 -06:00
|
|
|
#include "mac/decklink-sdk/DeckLinkAPIVersion.h"
|
2015-02-18 15:21:30 -08:00
|
|
|
#include <CoreFoundation/CoreFoundation.h>
|
2017-05-05 21:55:06 +09:00
|
|
|
typedef bool decklink_bool_t;
|
2015-02-18 15:21:30 -08:00
|
|
|
typedef CFStringRef decklink_string_t;
|
2015-02-18 15:15:38 -08:00
|
|
|
#elif defined(__linux__)
|
2015-02-19 17:15:59 -08:00
|
|
|
#include "linux/decklink-sdk/DeckLinkAPI.h"
|
2020-02-09 16:22:05 -06:00
|
|
|
#include "linux/decklink-sdk/DeckLinkAPIVersion.h"
|
2017-05-05 21:55:06 +09:00
|
|
|
typedef bool decklink_bool_t;
|
2015-02-19 17:15:59 -08:00
|
|
|
typedef const char *decklink_string_t;
|
2015-02-18 15:15:38 -08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <util/windows/HRError.hpp>
|
|
|
|
#include <util/windows/ComPtr.hpp>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
bool DeckLinkStringToStdString(decklink_string_t input, std::string &output);
|