~ubuntu-branches/ubuntu/lucid/lastfm/lucid

« back to all changes in this revision

Viewing changes to src/transcode/mpglib/mpglib/lame-analysis.h

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2007-12-31 09:49:54 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071231094954-ix1amvcsj9pk61ya
Tags: 1:1.4.1.57486.dfsg-1ubuntu1
* Merge from Debian unstable (LP: #180254), remaining changes:
  - debian/rules;
    - Added dh_icons
  - Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      GTK plotting routines source file
 
3
 *
 
4
 *      Copyright (c) 1999 Mark Taylor
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Library General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Library General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Library General Public
 
17
 * License along with this library; if not, write to the
 
18
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
19
 * Boston, MA 02110-1301, USA.
 
20
 */
 
21
 
 
22
#ifndef LAME_GTKANAL_H
 
23
#define LAME_GTKANAL_H
 
24
 
 
25
#include "encoder.h"
 
26
 
 
27
#define READ_AHEAD 40             /* number of frames to read ahead */
 
28
#define MAXMPGLAG READ_AHEAD      /* if the mpg123 lag becomes bigger than this
 
29
                                     we have to stop */
 
30
#define NUMBACK 6                 /* number of frames we can back up */
 
31
#define NUMPINFO (NUMBACK+READ_AHEAD+1)
 
32
 
 
33
 
 
34
 
 
35
typedef struct {
 
36
  int frameNum;           /* current frame number */
 
37
  int frameNum123;
 
38
  int num_samples;        /* number of pcm samples read for this frame */
 
39
  double frametime;       /* starting time of frame, in seconds */
 
40
  double pcmdata[2][1600];
 
41
  double pcmdata2[2][1152+1152-DECDELAY];
 
42
  double xr[2][2][576];
 
43
  double mpg123xr[2][2][576];
 
44
  double ms_ratio[2];
 
45
  double ms_ener_ratio[2];
 
46
 
 
47
  /* L,R, M and S values */
 
48
  double energy[2][4][BLKSIZE];
 
49
  double pe[2][4];
 
50
  double thr[2][4][SBMAX_l];
 
51
  double en[2][4][SBMAX_l];
 
52
  double thr_s[2][4][3*SBMAX_s];
 
53
  double en_s[2][4][3*SBMAX_s];
 
54
  double ers[2][4];
 
55
 
 
56
  double sfb[2][2][SBMAX_l];
 
57
  double sfb_s[2][2][3*SBMAX_s];
 
58
  double LAMEsfb[2][2][SBMAX_l];
 
59
  double LAMEsfb_s[2][2][3*SBMAX_s];
 
60
 
 
61
  int LAMEqss[2][2];
 
62
  int qss[2][2];
 
63
  int big_values[2][2];
 
64
  int sub_gain[2][2][3];
 
65
 
 
66
  double xfsf[2][2][SBMAX_l];
 
67
  double xfsf_s[2][2][3*SBMAX_s];
 
68
 
 
69
  int over[2][2];
 
70
  double tot_noise[2][2];
 
71
  double max_noise[2][2];
 
72
  double over_noise[2][2];
 
73
  double var_noise[2][2];
 
74
  int blocktype[2][2];
 
75
  int scalefac_scale[2][2];
 
76
  int preflag[2][2];
 
77
  int mpg123blocktype[2][2];
 
78
  int mixed[2][2];
 
79
  int mainbits[2][2];
 
80
  int sfbits[2][2];
 
81
  int LAMEmainbits[2][2];
 
82
  int LAMEsfbits[2][2];
 
83
  int framesize,stereo,js,ms_stereo,i_stereo,emph,bitrate,sampfreq,maindata;
 
84
  int crc,padding;
 
85
  int scfsi[2],mean_bits,resvsize;
 
86
  int totbits;
 
87
} plotting_data;
 
88
 
 
89
 
 
90
extern plotting_data *pinfo;
 
91
 
 
92
#endif
 
93