22 #define CONFIG_FLOAT 1
25 #if CONFIG_MP1FLOAT_DECODER
42 #if CONFIG_MP2FLOAT_DECODER
59 #if CONFIG_MP3FLOAT_DECODER
76 #if CONFIG_MP3ADUFLOAT_DECODER
77 AVCodec ff_mp3adufloat_decoder = {
78 .
name =
"mp3adufloat",
83 .
decode = decode_frame_adu,
93 #if CONFIG_MP3ON4FLOAT_DECODER
94 AVCodec ff_mp3on4float_decoder = {
95 .
name =
"mp3on4float",
98 .priv_data_size =
sizeof(MP3On4DecodeContext),
99 .
init = decode_init_mp3on4,
100 .
close = decode_close_mp3on4,
101 .
decode = decode_frame_mp3on4,
103 .
flush = flush_mp3on4,
#define FF_API_PARSE_FRAME
struct MPADecodeContext MPADecodeContext
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
static av_cold int decode_init(AVCodecContext *avctx)
static int init(AVCodecParserContext *s)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
const char * name
Name of the codec implementation.
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static void close(AVCodecParserContext *s)
static av_cold void flush(AVCodecContext *avctx)
Flush (reset) the frame ID after seeking.
preferred ID for decoding MPEG audio layer 1, 2 or 3