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
AVInputFormat ff_g722_demuxer
AVInputFormat ff_gsm_demuxer
AVInputFormat ff_mlp_demuxer
AVInputFormat ff_truehd_demuxer
AVInputFormat ff_shorten_demuxer

Define Documentation

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 208 of file rawdec.c.

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

Definition at line 207 of file rawdec.c.

#define RAW_PACKET_SIZE   1024

Definition at line 119 of file rawdec.c.


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:

Definition at line 226 of file rawdec.c.

Initial value:
 {
    "gsm",
    NULL_IF_CONFIG_SMALL("raw GSM"),
    0,
    NULL,
    ff_raw_audio_read_header,
    ff_raw_read_partial_packet,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "gsm",
    .value = CODEC_ID_GSM,
}

Definition at line 241 of file rawdec.c.

Initial value:
 {
    "mlp",
    NULL_IF_CONFIG_SMALL("raw MLP"),
    0,
    NULL,
    ff_raw_audio_read_header,
    ff_raw_read_partial_packet,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "mlp",
    .value = CODEC_ID_MLP,
}

Definition at line 259 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.

Initial value:
 {
    "shn",
    NULL_IF_CONFIG_SMALL("raw Shorten"),
    0,
    NULL,
    ff_raw_audio_read_header,
    ff_raw_read_partial_packet,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "shn",
    .value = CODEC_ID_SHORTEN,
}

Definition at line 287 of file rawdec.c.

Initial value:
 {
    "truehd",
    NULL_IF_CONFIG_SMALL("raw TrueHD"),
    0,
    NULL,
    ff_raw_audio_read_header,
    ff_raw_read_partial_packet,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "thd",
    .value = CODEC_ID_TRUEHD,
}

Definition at line 273 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.