home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Sound / LAME / src / gtkanal.h < prev    next >
C/C++ Source or Header  |  2000-05-24  |  2KB  |  85 lines

  1. #ifndef GTKANAL_DOT_H
  2. #define GTKANAL_DOT_H
  3. #include "lame.h"
  4. #include "encoder.h"
  5. #include "l3side.h"
  6.  
  7. #define READ_AHEAD 10             /* number of frames to read ahead */
  8. #define MAXMPGLAG READ_AHEAD      /* if the mpg123 lag becomes bigger than this                      we have to stop */
  9. #define NUMBACK 6                 /* number of frames we can back up */
  10. #define NUMPINFO (NUMBACK+READ_AHEAD+1)
  11.  
  12.  
  13.  
  14. typedef struct {
  15.   int frameNum;           /* current frame number */
  16.   int frameNum123;
  17.   int num_samples;        /* number of pcm samples read for this frame */
  18.   double frametime;       /* starting time of frame, in seconds */
  19.   double pcmdata[2][1600];
  20.   double pcmdata2[2][1152+1152-DECDELAY];
  21.   double xr[2][2][576];
  22.   double mpg123xr[2][2][576];
  23.   double ms_ratio[2];
  24.   double ms_ener_ratio[2];
  25.  
  26.   /* L,R, M and S values */
  27.   double energy[2][4][BLKSIZE];
  28.   double pe[2][4];
  29.   double thr[2][4][SBMAX_l];
  30.   double en[2][4][SBMAX_l];
  31.   double thr_s[2][4][3*SBMAX_s];
  32.   double en_s[2][4][3*SBMAX_s];
  33.   double ers[2][4];
  34.  
  35.   double sfb[2][2][SBMAX_l];
  36.   double sfb_s[2][2][3*SBMAX_s];
  37.   double LAMEsfb[2][2][SBMAX_l];
  38.   double LAMEsfb_s[2][2][3*SBMAX_s];
  39.  
  40.   int LAMEqss[2][2];
  41.   int qss[2][2];
  42.   int big_values[2][2];
  43.   int sub_gain[2][2][3];
  44.  
  45.   double xfsf[2][2][SBMAX_l];
  46.   double xfsf_s[2][2][3*SBMAX_s];
  47.  
  48.   int over[2][2];
  49.   double tot_noise[2][2];
  50.   double max_noise[2][2];
  51.   double over_noise[2][2];
  52.   int blocktype[2][2];
  53.   int scalefac_scale[2][2];
  54.   int preflag[2][2];
  55.   int mpg123blocktype[2][2];
  56.   int mixed[2][2];
  57.   int mainbits[2][2];
  58.   int sfbits[2][2];
  59.   int LAMEmainbits[2][2];
  60.   int LAMEsfbits[2][2];
  61.   int framesize,stereo,js,ms_stereo,i_stereo,emph,bitrate,sampfreq,maindata;
  62.   int crc,padding;
  63.   int scfsi[2],mean_bits,resvsize;
  64.   int totbits;
  65. } plotting_data;
  66.  
  67.  
  68. int gtkcontrol(lame_global_flags *gfp);
  69. extern plotting_data *pinfo;
  70. extern int gtkflag;
  71.  
  72. void 
  73. set_pinfo (lame_global_flags *gfp,
  74.     gr_info *cod_info,
  75.     III_psy_ratio *ratio, 
  76.     III_scalefac_t *scalefac,
  77.     FLOAT8 xr[576],        
  78.     FLOAT8 xfsf[4][SBMAX_l],
  79.     FLOAT8 noise[4],
  80.     int gr,
  81.     int ch
  82.        );
  83.  
  84. #endif
  85.