You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
825B

  1. /**
  2. * @file mpegaudio.h
  3. * mpeg audio declarations for both encoder and decoder.
  4. */
  5. /* max frame size, in samples */
  6. #define MPA_FRAME_SIZE 1152
  7. /* max compressed frame size */
  8. #define MPA_MAX_CODED_FRAME_SIZE 1792
  9. #define MPA_MAX_CHANNELS 2
  10. #define SBLIMIT 32 /* number of subbands */
  11. #define MPA_STEREO 0
  12. #define MPA_JSTEREO 1
  13. #define MPA_DUAL 2
  14. #define MPA_MONO 3
  15. int l2_select_table(int bitrate, int nb_channels, int freq, int lsf);
  16. int mpa_decode_header(AVCodecContext *avctx, uint32_t head);
  17. extern const uint16_t mpa_bitrate_tab[2][3][15];
  18. extern const uint16_t mpa_freq_tab[3];
  19. extern const unsigned char *alloc_tables[5];
  20. extern const double enwindow[512];
  21. extern const int sblimit_table[5];
  22. extern const int quant_steps[17];
  23. extern const int quant_bits[17];
  24. extern const int32_t mpa_enwindow[257];