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

Macros

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

Functions

static int rawvideo_read_header (AVFormatContext *ctx)
 
static int rawvideo_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption rawvideo_options []
 
static const AVClass rawvideo_demuxer_class
 
AVInputFormat ff_rawvideo_demuxer
 

Macro Definition Documentation

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

Definition at line 87 of file rawvideodec.c.

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 88 of file rawvideodec.c.

Function Documentation

static int rawvideo_read_header ( AVFormatContext ctx)
static

Definition at line 37 of file rawvideodec.c.

static int rawvideo_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 74 of file rawvideodec.c.

Variable Documentation

const AVOption rawvideo_options[]
static
Initial value:
= {
{ "video_size", "set frame size", OFFSET(width), AV_OPT_TYPE_IMAGE_SIZE, {.str = NULL}, 0, 0, DEC },
{ "pixel_format", "set pixel format", OFFSET(pixel_format), AV_OPT_TYPE_STRING, {.str = "yuv420p"}, 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 OFFSET(x)
Definition: rawvideodec.c:87
uint16_t width
Definition: gdv.c:47
offset must point to AVRational
Definition: opt.h:236
offset must point to two consecutive integers
Definition: opt.h:233
#define DEC
Definition: rawvideodec.c:88

Definition at line 89 of file rawvideodec.c.

const AVClass rawvideo_demuxer_class
static
Initial value:
= {
.class_name = "rawvideo demuxer",
.item_name = av_default_item_name,
.option = rawvideo_options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:86
static const AVOption rawvideo_options[]
Definition: rawvideodec.c:89
av_default_item_name

Definition at line 96 of file rawvideodec.c.

AVInputFormat ff_rawvideo_demuxer
Initial value:
= {
.name = "rawvideo",
.long_name = NULL_IF_CONFIG_SMALL("raw video"),
.priv_data_size = sizeof(RawVideoDemuxerContext),
.extensions = "yuv,cif,qcif,rgb",
.raw_codec_id = AV_CODEC_ID_RAWVIDEO,
.priv_class = &rawvideo_demuxer_class,
}
static const AVClass rawvideo_demuxer_class
Definition: rawvideodec.c:96
static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawvideodec.c:74
static int flags
Definition: log.c:57
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int rawvideo_read_header(AVFormatContext *ctx)
Definition: rawvideodec.c:37
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:528
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:487

Definition at line 103 of file rawvideodec.c.