• 大小: 64KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-18
  • 语言: 其他
  • 标签: decklinksdk  ubuntu  

资源简介

ubuntu系统decklink的api,用于decklink开发和ffmpeg编译decklink

资源截图

代码片段和文件信息

/* -LICENSE-START-
** Copyright (c) 2009 Blackmagic Design
**
** Permission is hereby granted free of charge to any person or organization
** obtaining a copy of the software and accompanying documentation covered by
** this license (the “Software“) to use reproduce display distribute
** execute and transmit the Software and to prepare derivative works of the
** Software and to permit third-parties to whom the Software is furnished to
** do so all subject to the following:
** 
** The copyright notices in the Software and this entire statement including
** the above license grant this restriction and the following disclaimer
** must be included in all copies of the Software in whole or in part and
** all derivative works of the Software unless such copies or derivative
** works are solely in the form of machine-executable object code generated by
** a source language processor.
** 
** THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
** IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
** FITNESS FOR A PARTICULAR PURPOSE title AND NON-INFRINGEMENT. IN NO EVENT
** SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
** FOR ANY DAMAGES OR OTHER LIABILITY WHETHER IN CONTRACT TORT OR OTHERWISE
** ARISING FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
** DEALINGS IN THE SOFTWARE.
** -LICENSE-END-
**/

#include 
#include 
#include 

#include “DecklinkAPI.h“

#define kDecklinkAPI_Name “libDecklinkAPI.so“
#define KDecklinkPreviewAPI_Name “libDecklinkPreviewAPI.so“

typedef IDecklinkIterator* (*CreateIteratorFunc)(void);
typedef IDecklinkAPIInformation* (*CreateAPIInformationFunc)(void);
typedef IDecklinkGLScreenPreviewHelper* (*CreateOpenGLScreenPreviewHelperFunc)(void);
typedef IDecklinkVideoConversion* (*CreateVideoConversionInstanceFunc)(void);
typedef IDecklinkDiscovery* (*CreateDecklinkDiscoveryInstanceFunc)(void);
typedef IDecklinkVideoframeAncillaryPackets* (*CreateVideoframeAncillaryPacketsInstanceFunc)(void);

static pthread_once_t gDecklinkOnceControl = PTHREAD_ONCE_INIT;
static pthread_once_t gPreviewOnceControl = PTHREAD_ONCE_INIT;

static bool gLoadedDecklinkAPI = false;

static CreateIteratorFunc gCreateIteratorFunc = NULL;
static CreateAPIInformationFunc gCreateAPIInformationFunc = NULL;
static CreateOpenGLScreenPreviewHelperFunc gCreateOpenGLPreviewFunc = NULL;
static CreateVideoConversionInstanceFunc gCreateVideoConversionFunc = NULL;
static CreateDecklinkDiscoveryInstanceFunc gCreateDecklinkDiscoveryFunc = NULL;
static CreateVideoframeAncillaryPacketsInstanceFunc gCreateVideoframeAncillaryPacketsFunc = NULL;

static void InitDecklinkAPI (void)
{
void *libraryHandle;

libraryHandle = dlopen(kDecklinkAPI_Name RTLD_NOW|RTLD_GLOBAL);
if (!libraryHandle)
{
fprintf(stderr “%s\n“ dlerror());
return;
}

gLoadedDecklinkAPI = true;

gCreateIteratorFunc = (CreateIteratorFun

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      67387  2018-10-23 13:46  decklinksdk\DecklinkAPI.h

     文件      13602  2018-10-23 13:46  decklinksdk\DecklinkAPIConfiguration.h

     文件       3051  2018-10-23 13:44  decklinksdk\DecklinkAPIConfiguration_v10_2.h

     文件       3061  2018-10-23 13:44  decklinksdk\DecklinkAPIConfiguration_v10_4.h

     文件       3251  2018-10-23 13:44  decklinksdk\DecklinkAPIConfiguration_v10_5.h

     文件       3060  2018-10-23 13:44  decklinksdk\DecklinkAPIConfiguration_v10_9.h

     文件      12801  2018-10-23 13:46  decklinksdk\DecklinkAPIDeckControl.h

     文件       2449  2018-10-23 13:46  decklinksdk\DecklinkAPIDiscovery.h

     文件       5959  2018-10-23 13:44  decklinksdk\DecklinkAPIDispatch.cpp

     文件       5242  2018-10-23 13:44  decklinksdk\DecklinkAPIDispatch_v10_8.cpp

     文件       3986  2018-10-23 13:44  decklinksdk\DecklinkAPIDispatch_v7_6.cpp

     文件       4695  2018-10-23 13:44  decklinksdk\DecklinkAPIDispatch_v8_0.cpp

     文件      12854  2018-10-23 13:46  decklinksdk\DecklinkAPIModes.h

     文件       4786  2018-10-23 13:46  decklinksdk\DecklinkAPITypes.h

     文件       1753  2018-10-23 13:46  decklinksdk\DecklinkAPIVersion.h

     文件       2456  2018-10-23 13:44  decklinksdk\DecklinkAPI_v10_2.h

     文件       1875  2018-10-23 13:44  decklinksdk\DecklinkAPI_v10_4.h

     文件       1844  2018-10-23 13:44  decklinksdk\DecklinkAPI_v10_5.h

     文件       2029  2018-10-23 13:44  decklinksdk\DecklinkAPI_v10_6.h

     文件       1826  2018-10-23 13:44  decklinksdk\DecklinkAPI_v10_9.h

     文件      10000  2018-10-23 13:44  decklinksdk\DecklinkAPI_v7_1.h

     文件       8469  2018-10-23 13:44  decklinksdk\DecklinkAPI_v7_3.h

     文件      20437  2018-10-23 13:44  decklinksdk\DecklinkAPI_v7_6.h

     文件       5282  2018-10-23 13:44  decklinksdk\DecklinkAPI_v7_9.h

     文件       2589  2018-10-23 13:44  decklinksdk\DecklinkAPI_v8_0.h

     文件       7009  2018-10-23 13:44  decklinksdk\DecklinkAPI_v8_1.h

     文件       3717  2018-10-23 13:44  decklinksdk\DecklinkAPI_v9_2.h

     文件       5607  2018-10-23 13:44  decklinksdk\DecklinkAPI_v9_9.h

     文件       3483  2018-10-23 13:44  decklinksdk\LinuxCOM.h

     目录          0  2019-02-19 17:42  decklinksdk

............此处省略3个文件信息

评论

共有 条评论