home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Sound / LAME / Source / loop.h < prev    next >
C/C++ Source or Header  |  1999-06-03  |  3KB  |  91 lines

  1. /**********************************************************************
  2.  * ISO MPEG Audio Subgroup Software Simulation Group (1996)
  3.  * ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
  4.  *
  5.  * $Id: loop.h,v 1.1 1996/02/14 04:04:23 rowlands Exp $
  6.  *
  7.  * $Log: loop.h,v $
  8.  * Revision 1.1  1996/02/14 04:04:23  rowlands
  9.  * Initial revision
  10.  *
  11.  * Received from Mike Coleman
  12.  **********************************************************************/
  13.  
  14. #ifndef LOOP_DOT_H
  15. #define LOOP_DOT_H
  16. #include "common.h"
  17. #include "l3side.h"
  18.  
  19. /**********************************************************************
  20.  *   date   programmers                comment                        *
  21.  * 25. 6.92  Toshiyuki Ishino          Ver 1.0                        *
  22.  * 29.10.92  Masahiro Iwadare          Ver 2.0                        *
  23.  * 17. 4.93  Masahiro Iwadare          Updated for IS Modification    *
  24.  *                                                                    *
  25.  *********************************************************************/
  26.  
  27. extern int cont_flag;
  28.  
  29. #define e              2.71828182845
  30.  
  31. /*#define SBLIMIT       32*/
  32. #define CBLIMIT       21
  33.  
  34. #define SFB_LMAX 22
  35. #define SFB_SMAX 13
  36.  
  37. extern int pretab[];
  38.  
  39. struct scalefac_struct
  40. {
  41.    int l[23];
  42.    int s[14];
  43. };
  44.  
  45. extern struct scalefac_struct sfBandIndex[];  /* Table B.8 -- in loop.c */
  46.  
  47.  
  48. void iteration_loop( double pe[][2], double ms_ratio[2], 
  49.              double xr_org[2][2][576], III_psy_ratio *ratio,
  50.              III_side_info_t *l3_side, int l3_enc[2][2][576], 
  51.              double xr_dec[2][2][576],
  52.              III_scalefac_t *scalefac, frame_params *fr_ps);
  53.  
  54.  
  55. int nint( double in );
  56.  
  57. /* #define PI 3.1415926535 */
  58. #define maximum(A,B) ( (A) > (B) ? (A) : (B) )
  59. #define minimum(A,B) ( (A) < (B) ? (A) : (B) )
  60. #define signum( A ) ( (A) > 0 ? 1 : -1 )
  61.  
  62. /* GLOBALE VARIABLE */
  63.  
  64. /*extern FILE     *debp;
  65. extern FILE     *huffcp,*huffdp;
  66. extern FILE     *musicin,*cod_music;*/
  67.  
  68. /* Beachte:Partitonen nur fuer 48 kHz */
  69. /* andere ev. fehlerhaft  */
  70.  
  71. /* static int     scalefac_band_long[22];
  72.   static int     scalefac_band_short[13];
  73. */
  74. /*static int     huffman_tab_quad[2][16][2];
  75. extern int     bigv_cod_tab[17][2][16][16];
  76. extern int     bigv_dec_tab[17][512][5];
  77. extern int     bigv_root_node[17];
  78. extern int     count1_root_node[2];*/
  79. /* extern int     cod_tab_info[2][31]; */
  80.  
  81.  
  82.  
  83.  
  84. /* in max spalte war um 1 zuviel */
  85. /* [0][i] : maximalwert der Tabelle mit index i
  86.    [1][i] : anzahl der linbits der TAb. i        */
  87.  
  88. extern int bit_buffer[50000];
  89.  
  90. #endif
  91.