68 #define PCMDEF(name_, long_name_, ext, codec) \
69 static const AVClass name_ ## _demuxer_class = { \
70 .class_name = #name_ " demuxer", \
71 .item_name = av_default_item_name, \
72 .option = pcm_options, \
73 .version = LIBAVUTIL_VERSION_INT, \
75 AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \
77 .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
78 .priv_data_size = sizeof(PCMAudioDemuxerContext), \
79 .read_header = pcm_read_header, \
80 .read_packet = ff_pcm_read_packet, \
81 .read_seek = ff_pcm_read_seek, \
82 .flags = AVFMT_GENERIC_INDEX, \
84 .raw_codec_id = codec, \
85 .priv_class = &name_ ## _demuxer_class, \
88 PCMDEF(f64be,
"PCM 64-bit floating-point big-endian",
91 PCMDEF(f64le, "PCM 64-bit floating-point little-endian",
94 PCMDEF(f32be, "PCM 32-bit floating-point big-endian",
97 PCMDEF(f32le, "PCM 32-bit floating-point little-endian",
100 PCMDEF(s32be, "PCM
signed 32-bit big-endian",
103 PCMDEF(s32le, "PCM
signed 32-bit little-endian",
106 PCMDEF(s24be, "PCM
signed 24-bit big-endian",
109 PCMDEF(s24le, "PCM
signed 24-bit little-endian",
112 PCMDEF(s16be, "PCM
signed 16-bit big-endian",
115 PCMDEF(s16le, "PCM
signed 16-bit little-endian",
118 PCMDEF(s8, "PCM
signed 8-bit",
121 PCMDEF(u32be, "PCM
unsigned 32-bit big-endian",
124 PCMDEF(u32le, "PCM
unsigned 32-bit little-endian",
127 PCMDEF(u24be, "PCM
unsigned 24-bit big-endian",
130 PCMDEF(u24le, "PCM
unsigned 24-bit little-endian",
133 PCMDEF(u16be, "PCM
unsigned 16-bit big-endian",
136 PCMDEF(u16le, "PCM
unsigned 16-bit little-endian",
139 PCMDEF(u8, "PCM
unsigned 8-bit",
145 PCMDEF(mulaw, "PCM mu-law",
148 static const
AVOption sln_options[] = {
157 .option = sln_options,
171 .priv_class = &sln_demuxer_class,