2015-02-18 15:15:38 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
2015-02-28 17:17:32 -08:00
|
|
|
#include <DeckLinkAPI.h>
|
|
|
|
typedef BSTR decklink_string_t;
|
|
|
|
IDeckLinkDiscovery *CreateDeckLinkDiscoveryInstance(void);
|
|
|
|
#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"
|
|
|
|
#include <CoreFoundation/CoreFoundation.h>
|
|
|
|
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"
|
|
|
|
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);
|