FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
decklink_common.h File Reference
#include <DeckLinkAPIVersion.h>
#include "libavutil/thread.h"
#include "decklink_common_c.h"

Go to the source code of this file.

Data Structures

struct  AVPacketQueue
 
struct  decklink_ctx
 

Macros

#define DECKLINK_BOOL   bool
 
#define DECKLINK_STR   const char *
 
#define DECKLINK_STRDUP   av_strdup
 
#define DECKLINK_FREE(s)   free((void *) s)
 

Typedefs

typedef uint32_t buffercount_type
 

Enumerations

enum  decklink_direction_t { DIRECTION_IN, DIRECTION_OUT }
 

Functions

int ff_decklink_set_configs (AVFormatContext *avctx, decklink_direction_t direction)
 
int ff_decklink_set_format (AVFormatContext *avctx, int width, int height, int tb_num, int tb_den, enum AVFieldOrder field_order, decklink_direction_t direction=DIRECTION_OUT, int num=0)
 
int ff_decklink_set_format (AVFormatContext *avctx, decklink_direction_t direction, int num)
 
int ff_decklink_list_devices (AVFormatContext *avctx, struct AVDeviceInfoList *device_list, int show_inputs, int show_outputs)
 
void ff_decklink_list_devices_legacy (AVFormatContext *avctx, int show_inputs, int show_outputs)
 
int ff_decklink_list_formats (AVFormatContext *avctx, decklink_direction_t direction=DIRECTION_OUT)
 
void ff_decklink_cleanup (AVFormatContext *avctx)
 
int ff_decklink_init_device (AVFormatContext *avctx, const char *name)
 

Variables

static const BMDAudioConnection decklink_audio_connection_map []
 
static const BMDVideoConnection decklink_video_connection_map []
 
static const BMDTimecodeFormat decklink_timecode_format_map []
 

Macro Definition Documentation

#define DECKLINK_BOOL   bool

Definition at line 37 of file decklink_common.h.

Referenced by decklink_autodetect(), and ff_decklink_set_configs().

#define DECKLINK_STR   const char *
#define DECKLINK_STRDUP   av_strdup
#define DECKLINK_FREE (   s)    free((void *) s)

Typedef Documentation

typedef uint32_t buffercount_type

Definition at line 160 of file decklink_common.h.

Enumeration Type Documentation

Enumerator
DIRECTION_IN 
DIRECTION_OUT 

Definition at line 150 of file decklink_common.h.

Function Documentation

int ff_decklink_set_configs ( AVFormatContext avctx,
decklink_direction_t  direction 
)

Definition at line 143 of file decklink_common.cpp.

Referenced by decklink_setup_video(), and ff_decklink_read_header().

int ff_decklink_set_format ( AVFormatContext avctx,
int  width,
int  height,
int  tb_num,
int  tb_den,
enum AVFieldOrder  field_order,
decklink_direction_t  direction = DIRECTION_OUT,
int  num = 0 
)
int ff_decklink_set_format ( AVFormatContext avctx,
decklink_direction_t  direction,
int  num 
)

Definition at line 271 of file decklink_common.cpp.

int ff_decklink_list_devices ( AVFormatContext avctx,
struct AVDeviceInfoList device_list,
int  show_inputs,
int  show_outputs 
)
void ff_decklink_list_devices_legacy ( AVFormatContext avctx,
int  show_inputs,
int  show_outputs 
)

Definition at line 348 of file decklink_common.cpp.

Referenced by ff_decklink_read_header(), and ff_decklink_write_header().

int ff_decklink_list_formats ( AVFormatContext avctx,
decklink_direction_t  direction = DIRECTION_OUT 
)

Definition at line 369 of file decklink_common.cpp.

Referenced by ff_decklink_read_header(), and ff_decklink_write_header().

void ff_decklink_cleanup ( AVFormatContext avctx)
int ff_decklink_init_device ( AVFormatContext avctx,
const char *  name 
)

Definition at line 437 of file decklink_common.cpp.

Referenced by ff_decklink_read_header(), and ff_decklink_write_header().

Variable Documentation

const BMDAudioConnection decklink_audio_connection_map[]
static
Initial value:
= {
(BMDAudioConnection)0,
bmdAudioConnectionEmbedded,
bmdAudioConnectionAESEBU,
bmdAudioConnectionAnalog,
bmdAudioConnectionAnalogXLR,
bmdAudioConnectionAnalogRCA,
bmdAudioConnectionMicrophone,
}

Definition at line 163 of file decklink_common.h.

Referenced by ff_decklink_read_header().

const BMDVideoConnection decklink_video_connection_map[]
static
Initial value:
= {
(BMDVideoConnection)0,
bmdVideoConnectionSDI,
bmdVideoConnectionHDMI,
bmdVideoConnectionOpticalSDI,
bmdVideoConnectionComponent,
bmdVideoConnectionComposite,
bmdVideoConnectionSVideo,
}

Definition at line 173 of file decklink_common.h.

Referenced by ff_decklink_read_header().

const BMDTimecodeFormat decklink_timecode_format_map[]
static
Initial value:
= {
(BMDTimecodeFormat)0,
bmdTimecodeRP188VITC1,
bmdTimecodeRP188VITC2,
bmdTimecodeRP188LTC,
bmdTimecodeRP188Any,
bmdTimecodeVITC,
bmdTimecodeVITCField2,
bmdTimecodeSerial,
}

Definition at line 183 of file decklink_common.h.

Referenced by ff_decklink_read_header().