Libav  0.7.1
Defines | Functions | Variables
libavformat/rawdec.c File Reference
#include "avformat.h"
#include "avio_internal.h"
#include "rawdec.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"

Go to the source code of this file.

Defines

#define RAW_PACKET_SIZE   1024
#define OFFSET(x)   offsetof(FFRawVideoDemuxerContext, x)
#define DEC   AV_OPT_FLAG_DECODING_PARAM

Functions

int ff_raw_read_header (AVFormatContext *s, AVFormatParameters *ap)
int ff_raw_read_partial_packet (AVFormatContext *s, AVPacket *pkt)
int ff_raw_audio_read_header (AVFormatContext *s, AVFormatParameters *ap)
int ff_raw_video_read_header (AVFormatContext *s, AVFormatParameters *ap)

Variables

static const AVOption audio_options []
const AVClass ff_rawaudio_demuxer_class
static const AVOption video_options []
const AVClass ff_rawvideo_demuxer_class

Define Documentation

Definition at line 201 of file rawdec.c.

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

Definition at line 200 of file rawdec.c.

#define RAW_PACKET_SIZE   1024

Definition at line 113 of file rawdec.c.

Referenced by ff_raw_read_partial_packet().


Function Documentation

Definition at line 135 of file rawdec.c.

Definition at line 31 of file rawdec.c.

Definition at line 115 of file rawdec.c.

Definition at line 150 of file rawdec.c.


Variable Documentation

const AVOption audio_options[] [static]
Initial value:
 {
    { "sample_rate", "", 0x42, FF_OPT_TYPE_INT, {.dbl = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
    { "channels",    "", 0x42,    FF_OPT_TYPE_INT, {.dbl = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
    { NULL },
}

Definition at line 187 of file rawdec.c.

Initial value:
 {
    .class_name     = "rawaudio demuxer",
    .item_name      = av_default_item_name,
    .option         = audio_options,
    .version        = LIBAVUTIL_VERSION_INT,
}

Definition at line 193 of file rawdec.c.

Initial value:
 {
    .class_name     = "rawvideo demuxer",
    .item_name      = av_default_item_name,
    .option         = video_options,
    .version        = LIBAVUTIL_VERSION_INT,
}

Definition at line 211 of file rawdec.c.

const AVOption video_options[] [static]
Initial value:
 {
    { "video_size", "A string describing frame size, such as 640x480 or hd720.", OFFSET(video_size), FF_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
    { "pixel_format", "", OFFSET(pixel_format), FF_OPT_TYPE_STRING, {.str = "yuv420p"}, 0, 0, DEC },
    { "framerate", "", OFFSET(framerate), FF_OPT_TYPE_STRING, {.str = "25"}, 0, 0, DEC },
    { NULL },
}

Definition at line 202 of file rawdec.c.