#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 OFFSET | ( | x | ) | offsetof(FFRawVideoDemuxerContext, x) |
int ff_raw_audio_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) |
int ff_raw_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) |
int ff_raw_read_partial_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) |
int ff_raw_video_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) |
const AVOption audio_options[] [static] |
{ { "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 }, }
{ "g722", NULL_IF_CONFIG_SMALL("raw G.722"), sizeof(RawAudioDemuxerContext), NULL, ff_raw_read_header, ff_raw_read_partial_packet, .flags= AVFMT_GENERIC_INDEX, .extensions = "g722,722", .value = CODEC_ID_ADPCM_G722, .priv_class = &ff_rawaudio_demuxer_class, }
{ "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, }
{ "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, }
{ .class_name = "rawaudio demuxer", .item_name = av_default_item_name, .option = audio_options, .version = LIBAVUTIL_VERSION_INT, }
{ .class_name = "rawvideo demuxer", .item_name = av_default_item_name, .option = video_options, .version = LIBAVUTIL_VERSION_INT, }
{ "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, }
{ "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, }
const AVOption video_options[] [static] |
{ { "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 }, }