FFmpeg
|
rawvideodec.c File Reference
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "internal.h"
#include "avformat.h"
Include dependency graph for rawvideodec.c:
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 |
Typedefs | |
typedef struct RawVideoDemuxerContext | RawVideoDemuxerContext |
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 DEC AV_OPT_FLAG_DECODING_PARAM |
Definition at line 90 of file rawvideodec.c.
#define OFFSET | ( | x | ) | offsetof(RawVideoDemuxerContext, x) |
Definition at line 89 of file rawvideodec.c.
Typedef Documentation
typedef struct RawVideoDemuxerContext RawVideoDemuxerContext |
Function Documentation
|
static |
Definition at line 36 of file rawvideodec.c.
|
static |
Definition at line 68 of file rawvideodec.c.
Variable Documentation
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 int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawvideodec.c:68
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
static int rawvideo_read_header(AVFormatContext *ctx)
Definition: rawvideodec.c:36
struct RawVideoDemuxerContext RawVideoDemuxerContext
Definition: libavcodec/avcodec.h:116
Definition at line 105 of file rawvideodec.c.
|
static |
Initial value:
= {
.class_name = "rawvideo demuxer",
.item_name = av_default_item_name,
.option = rawvideo_options,
.version = LIBAVUTIL_VERSION_INT,
}
Definition at line 98 of file rawvideodec.c.
|
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, 0, DEC },
{ NULL },
}
Definition: opt.h:226
Definition at line 91 of file rawvideodec.c.
Generated on Fri Dec 20 2024 06:56:15 for FFmpeg by 1.8.11