123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef AVCODEC_MPEGAUDIO_H
- #define AVCODEC_MPEGAUDIO_H
- #ifndef USE_FLOATS
- # define USE_FLOATS 0
- #endif
- #include <stdint.h>
- #include "libavutil/internal.h"
- #define MPA_FRAME_SIZE 1152
- #define MPA_MAX_CODED_FRAME_SIZE 1792
- #define MPA_MAX_CHANNELS 2
- #define SBLIMIT 32
- #define MPA_STEREO 0
- #define MPA_JSTEREO 1
- #define MPA_DUAL 2
- #define MPA_MONO 3
- #ifndef FRAC_BITS
- #define FRAC_BITS 23
- #define WFRAC_BITS 16
- #endif
- #define IMDCT_SCALAR 1.759
- #define FRAC_ONE (1 << FRAC_BITS)
- #define FIX(a) ((int)((a) * FRAC_ONE))
- #if USE_FLOATS
- # define INTFLOAT float
- # define SUINTFLOAT float
- typedef float MPA_INT;
- typedef float OUT_INT;
- #elif FRAC_BITS <= 15
- # define INTFLOAT int
- # define SUINTFLOAT SUINT
- typedef int16_t MPA_INT;
- typedef int16_t OUT_INT;
- #else
- # define INTFLOAT int
- # define SUINTFLOAT SUINT
- typedef int32_t MPA_INT;
- typedef int16_t OUT_INT;
- #endif
- int ff_mpa_l2_select_table(int bitrate, int nb_channels, int freq, int lsf);
- #endif
|