2.1 Using the DeckLink API in a project¶
The supplied sample applications provide examples of how to include the DeckLink API in a project on each supported platform. To use the DeckLink API in your project, one or more files need to be included:
Windows |
DeckLink X.YWinIncludeDeckLinkAPI.idl |
---|---|
macOS |
DeckLink X.Y/Mac/Include/DeckLinkAPI.h
DeckLink X.Y/Mac/Include/DeckLinkAPIDispatch.cpp
|
Linux |
DeckLink X.Y/Linux/Include/DeckLinkAPI.h
DeckLink X.Y/Linux/Include/DeckLinkAPIDispatch.cpp
|
You can also include the optional header file “DeckLinkAPIVersion.h”. It defines two macros containing the SDK version numbers which can be used at runtime by your application to compare the version of the DeckLink API it is linked to with the version of the SDK used at compile time.