29 #define SHR(a,b) ((a)*(1.0f/(1<<(b))))
30 #define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))
31 #define FIXR(x) ((float)(x))
32 #define FIXHR(x) ((float)(x))
33 #define MULH3(x, y, s) ((s)*(y)*(x))
34 #define MULLx(x, y, s) ((y)*(x))
35 #define RENAME(a) a ## _float
36 #define OUT_FMT AV_SAMPLE_FMT_FLT
37 #define OUT_FMT_P AV_SAMPLE_FMT_FLTP
42 { 0.000000000000000000e+00, 2.113248705863952637e-01, 3.660253882408142090e-01,
43 5.000000000000000000e-01, 6.339746117591857910e-01, 7.886751294136047363e-01,
44 1.000000000000000000e+00 },
45 { 1.000000000000000000e+00, 7.886751294136047363e-01, 6.339746117591857910e-01,
46 5.000000000000000000e-01, 3.660253882408142090e-01, 2.113248705863952637e-01,
47 0.000000000000000000e+00 }
54 { 8.574929237365722656e-01, -5.144957900047302246e-01,
55 3.429971337318420410e-01, -1.371988654136657715e+00 },
56 { 8.817420005798339844e-01, -4.717319905757904053e-01,
57 4.100100100040435791e-01, -1.353474020957946777e+00 },
58 { 9.496286511421203613e-01, -3.133774697780609131e-01,
59 6.362511515617370605e-01, -1.263006091117858887e+00 },
60 { 9.833145737648010254e-01, -1.819131970405578613e-01,
61 8.014013767242431641e-01, -1.165227770805358887e+00 },
62 { 9.955177903175354004e-01, -9.457419067621231079e-02,
63 9.009436368942260742e-01, -1.090092062950134277e+00 },
64 { 9.991605877876281738e-01, -4.096558317542076111e-02,
65 9.581949710845947266e-01, -1.040126085281372070e+00 },
66 { 9.998992085456848145e-01, -1.419856864959001541e-02,
67 9.857006072998046875e-01, -1.014097809791564941e+00 },
68 { 9.999931454658508301e-01, -3.699974622577428818e-03,
69 9.962931871414184570e-01, -1.003693103790283203e+00 }
74 #if CONFIG_MP1FLOAT_DECODER
92 #if CONFIG_MP2FLOAT_DECODER
110 #if CONFIG_MP3FLOAT_DECODER
128 #if CONFIG_MP3ADUFLOAT_DECODER
130 .
name =
"mp3adufloat",
136 .
decode = decode_frame_adu,
146 #if CONFIG_MP3ON4FLOAT_DECODER
148 .
name =
"mp3on4float",
152 .priv_data_size =
sizeof(MP3On4DecodeContext),
153 .
init = decode_init_mp3on4,
154 .close = decode_close_mp3on4,
155 .
decode = decode_frame_mp3on4,
158 .
flush = flush_mp3on4,
static void flush(AVCodecContext *avctx)
static enum AVSampleFormat sample_fmts[]
AVCodec ff_mp3float_decoder
AVCodec ff_mp3adufloat_decoder
AVCodec ff_mp3on4float_decoder
AVCodec ff_mp2float_decoder
AVCodec ff_mp1float_decoder
static av_cold int init(AVCodecContext *avctx)
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
@ AV_CODEC_ID_MP3
preferred ID for decoding MPEG audio layer 1, 2 or 3
AVSampleFormat
Audio sample formats.
@ AV_SAMPLE_FMT_FLTP
float, planar
static av_cold int decode_init(AVCodecContext *avctx)
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
mpeg audio declarations for both encoder and decoder.
static const float is_table[2][16]
static const float csa_table[8][4]
const char * name
Name of the codec implementation.