libdc1394.c File Reference
Include dependency graph for libdc1394.c:

Go to the source code of this file.

Data Structures

struct  dc1394_data
 
struct  dc1394_frame_format
 
struct  dc1394_frame_rate
 

Macros

#define OFFSET(x)   offsetof(dc1394_data, x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 

Typedefs

typedef struct dc1394_data dc1394_data
 

Functions

static int dc1394_read_common (AVFormatContext *c, struct dc1394_frame_format **select_fmt, struct dc1394_frame_rate **select_fps)
 

Variables

struct dc1394_frame_format dc1394_frame_formats []
 
struct dc1394_frame_rate dc1394_frame_rates []
 
static const AVOption options []
 
static const AVClass libdc1394_class
 

Macro Definition Documentation

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 99 of file libdc1394.c.

#define OFFSET (   x)    offsetof(dc1394_data, x)

Definition at line 98 of file libdc1394.c.

Typedef Documentation

typedef struct dc1394_data dc1394_data

Function Documentation

static int dc1394_read_common ( AVFormatContext c,
struct dc1394_frame_format **  select_fmt,
struct dc1394_frame_rate **  select_fps 
)
inlinestatic

Definition at line 118 of file libdc1394.c.

Variable Documentation

struct dc1394_frame_format dc1394_frame_formats[]
Initial value:
= {
{ 320, 240, AV_PIX_FMT_UYVY422, DC1394_VIDEO_MODE_320x240_YUV422 },
{ 640, 480, AV_PIX_FMT_UYYVYY411, DC1394_VIDEO_MODE_640x480_YUV411 },
{ 640, 480, AV_PIX_FMT_UYVY422, DC1394_VIDEO_MODE_640x480_YUV422 },
{ 0, 0, 0, 0 }
}
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
Definition: pixfmt.h:85
packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3
Definition: pixfmt.h:86

Referenced by dc1394_read_common().

struct dc1394_frame_rate dc1394_frame_rates[]
Initial value:
= {
{ 1875, DC1394_FRAMERATE_1_875 },
{ 3750, DC1394_FRAMERATE_3_75 },
{ 7500, DC1394_FRAMERATE_7_5 },
{ 15000, DC1394_FRAMERATE_15 },
{ 30000, DC1394_FRAMERATE_30 },
{ 60000, DC1394_FRAMERATE_60 },
{120000, DC1394_FRAMERATE_120 },
{240000, DC1394_FRAMERATE_240 },
{ 0, 0 }
}

Referenced by dc1394_read_common().

const AVClass libdc1394_class
static
Initial value:
= {
.class_name = "libdc1394 indev",
.item_name = av_default_item_name,
.option = options,
}
av_default_item_name
LIBAVUTIL_VERSION_INT
Definition: eval.c:55
static const AVOption options[]
Definition: libdc1394.c:100

Definition at line 110 of file libdc1394.c.

Referenced by dc1394_read_common().

const AVOption options[]
static
Initial value:
= {
{ "video_size", "A string describing frame size, such as 640x480 or hd720.", OFFSET(video_size), AV_OPT_TYPE_STRING, {.str = "qvga"}, 0, 0, DEC },
{ "pixel_format", "", OFFSET(pixel_format), AV_OPT_TYPE_STRING, {.str = "uyvy422"}, 0, 0, DEC },
{ "framerate", "", OFFSET(framerate), AV_OPT_TYPE_STRING, {.str = "ntsc"}, 0, 0, DEC },
{ NULL },
}
static int64_t video_size
Definition: ffmpeg.c:125
#define OFFSET(x)
Definition: libdc1394.c:98
NULL
Definition: eval.c:55
#define DEC
Definition: libdc1394.c:99

Definition at line 100 of file libdc1394.c.