#include "avformat.h"
#include "rawdec.h"
#include "pcm.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
Go to the source code of this file.
Defines | |
#define | RAW_SAMPLES 1024 |
#define | PCMDEF(name_, long_name_, ext, codec) |
Functions | |
static int | raw_read_packet (AVFormatContext *s, AVPacket *pkt) |
Variables | |
static const AVOption | pcm_options [] |
#define PCMDEF | ( | name_, | |||
long_name_, | |||||
ext, | |||||
codec | ) |
Value:
static const AVClass name_ ## _demuxer_class = { \ .class_name = #name_ " demuxer", \ .item_name = av_default_item_name, \ .option = pcm_options, \ .version = LIBAVUTIL_VERSION_INT, \ }; \ AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \ .name = #name_, \ .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ .priv_data_size = sizeof(RawAudioDemuxerContext), \ .read_header = ff_raw_read_header, \ .read_packet = raw_read_packet, \ .read_seek = pcm_read_seek, \ .flags = AVFMT_GENERIC_INDEX, \ .extensions = ext, \ .value = codec, \ .priv_class = &name_ ## _demuxer_class, \ };
#define RAW_SAMPLES 1024 |
static int raw_read_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
const AVOption pcm_options[] [static] |
Initial value:
{ { "sample_rate", "", 0x42, AV_OPT_TYPE_INT, {.dbl = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, { "channels", "", 0x42, AV_OPT_TYPE_INT, {.dbl = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, { NULL }, }