FFmpeg
Data Structures | Macros | Functions | Variables
v210.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "internal.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  V210DemuxerContext
 

Macros

#define GET_PACKET_SIZE(w, h)   (((w + 47) / 48) * 48 * h * 8 / 3)
 
#define OFFSET(x)   offsetof(V210DemuxerContext, x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 

Functions

static int v210_read_header (AVFormatContext *ctx)
 
static int v210_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption v210_options []
 
static const AVClass v210_demuxer_class
 

Macro Definition Documentation

◆ GET_PACKET_SIZE

#define GET_PACKET_SIZE (   w,
  h 
)    (((w + 47) / 48) * 48 * h * 8 / 3)

Definition at line 36 of file v210.c.

◆ OFFSET

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

Definition at line 82 of file v210.c.

◆ DEC

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 83 of file v210.c.

Function Documentation

◆ v210_read_header()

static int v210_read_header ( AVFormatContext ctx)
static

Definition at line 38 of file v210.c.

◆ v210_read_packet()

static int v210_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 69 of file v210.c.

Variable Documentation

◆ v210_options

const AVOption v210_options[]
static
Initial value:
= {
{ "video_size", "set frame size", OFFSET(width), AV_OPT_TYPE_IMAGE_SIZE, {.str = NULL}, 0, 0, DEC },
{ "framerate", "set frame rate", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT_MAX, DEC },
{ NULL },
}

Definition at line 84 of file v210.c.

◆ v210_demuxer_class

const AVClass v210_demuxer_class
static
Initial value:
= {
.class_name = "v210(x) demuxer",
.item_name = av_default_item_name,
.option = v210_options,
}

Definition at line 90 of file v210.c.

AV_OPT_TYPE_VIDEO_RATE
@ AV_OPT_TYPE_VIDEO_RATE
offset must point to AVRational
Definition: opt.h:237
OFFSET
#define OFFSET(x)
Definition: v210.c:82
framerate
int framerate
Definition: h264_levels.c:65
DEC
#define DEC
Definition: v210.c:83
width
#define width
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
AV_OPT_TYPE_IMAGE_SIZE
@ AV_OPT_TYPE_IMAGE_SIZE
offset must point to two consecutive integers
Definition: opt.h:234
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
v210_options
static const AVOption v210_options[]
Definition: v210.c:84