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

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 208 of file rawdec.c.

#define OFFSET (  )     offsetof(FFRawVideoDemuxerContext, x)

Definition at line 207 of file rawdec.c.

#define RAW_PACKET_SIZE   1024

Definition at line 119 of file rawdec.c.

Referenced by ff_raw_read_partial_packet(), and rm_read_packet().


Function Documentation

int ff_raw_audio_read_header ( AVFormatContext s,
AVFormatParameters ap 
)

Definition at line 141 of file rawdec.c.

int ff_raw_read_header ( AVFormatContext s,
AVFormatParameters ap 
)

Definition at line 31 of file rawdec.c.

int ff_raw_read_partial_packet ( AVFormatContext s,
AVPacket pkt 
)

Definition at line 121 of file rawdec.c.

int ff_raw_video_read_header ( AVFormatContext s,
AVFormatParameters ap 
)

Definition at line 157 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 194 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 200 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 218 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 209 of file rawdec.c.


Generated on Fri Oct 26 02:39:46 2012 for FFmpeg by  doxygen 1.5.8