FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 []
 

Macro Definition Documentation

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

Definition at line 36 of file v210.c.

Referenced by v210_read_header().

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

Definition at line 82 of file v210.c.

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 83 of file v210.c.

Function Documentation

static int v210_read_header ( AVFormatContext ctx)
static

Definition at line 38 of file v210.c.

static int v210_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 69 of file v210.c.

Variable Documentation

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 },
}
#define NULL
Definition: coverity.c:32
#define width
#define DEC
Definition: v210.c:83
offset must point to AVRational
Definition: opt.h:235
offset must point to two consecutive integers
Definition: opt.h:232
#define OFFSET(x)
Definition: v210.c:82

Definition at line 84 of file v210.c.