~ubuntu-branches/ubuntu/dapper/speex/dapper-security

« back to all changes in this revision

Viewing changes to libspeex/nb_celp.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2005-12-07 23:22:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051207232221-nme7vf9m182p7dpe
Tags: 1.1.11.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include "vbr.h"
43
43
#include "filters.h"
44
44
 
 
45
#ifdef VORBIS_PSYCHO
 
46
#include "vorbis_psy.h"
 
47
#endif
 
48
 
45
49
/**Structure representing the full state of the narrowband encoder*/
46
50
typedef struct EncState {
47
51
   const SpeexMode *mode;       /**< Mode corresponding to the state */
51
55
   int    nbSubframes;    /**< Number of sub-frames */
52
56
   int    windowSize;     /**< Analysis (LPC) window length */
53
57
   int    lpcSize;        /**< LPC order */
54
 
   int    bufSize;        /**< Buffer size */
55
58
   int    min_pitch;      /**< Minimum pitch value allowed */
56
59
   int    max_pitch;      /**< Maximum pitch value allowed */
57
60
 
65
68
   int    lbr_48k;
66
69
#endif
67
70
 
 
71
#ifdef VORBIS_PSYCHO
 
72
   VorbisPsy *psy;
 
73
   float *curve;
 
74
   float *old_curve;
 
75
#endif
 
76
 
68
77
   spx_word16_t  gamma1;         /**< Perceptual filter: A(z/gamma1) */
69
78
   spx_word16_t  gamma2;         /**< Perceptual filter: A(z/gamma2) */
70
79
   float  lag_factor;     /**< Lag windowing Gaussian width */
71
 
   float  lpc_floor;      /**< Noise floor multiplier for A[0] in LPC analysis*/
 
80
   spx_word16_t  lpc_floor;      /**< Noise floor multiplier for A[0] in LPC analysis*/
72
81
   char  *stack;          /**< Pseudo-stack allocation for temporary memory */
73
82
   spx_sig_t *inBuf;          /**< Input buffer (original signal) */
74
83
   spx_sig_t *frame;          /**< Start of original frame */
75
84
   spx_sig_t *excBuf;         /**< Excitation buffer */
76
85
   spx_sig_t *exc;            /**< Start of excitation frame */
77
 
   spx_sig_t *exc2Buf;        /**< "Pitch enhanced" excitation */
78
 
   spx_sig_t *exc2;           /**< "Pitch enhanced" excitation */
79
86
   spx_sig_t *swBuf;          /**< Weighted signal buffer */
80
87
   spx_sig_t *sw;             /**< Start of weighted signal frame */
81
88
   spx_sig_t *innov;          /**< Innovation for the frame */
82
89
   spx_word16_t *window;         /**< Temporary (Hanning) window */
83
 
   spx_sig_t *buf2;           /**< 2nd temporary buffer */
84
90
   spx_word16_t *autocorr;       /**< auto-correlation */
85
91
   spx_word16_t *lagWindow;      /**< Window applied to auto-correlation */
86
92
   spx_coef_t *lpc;            /**< LPCs for current frame */
113
119
   float  abr_count;
114
120
   int    complexity;     /**< Complexity setting (0-10 from least complex to most complex) */
115
121
   int    sampling_rate;
116
 
 
 
122
   int    plc_tuning;
117
123
   int    encode_submode;
118
124
   const SpeexSubmode * const *submodes; /**< Sub-mode data */
119
125
   int    submodeID;      /**< Activated sub-mode */
128
134
   int    frameSize;      /**< Size of frames */
129
135
   int    subframeSize;   /**< Size of sub-frames */
130
136
   int    nbSubframes;    /**< Number of sub-frames */
131
 
   int    windowSize;     /**< Analysis (LPC) window length */
132
137
   int    lpcSize;        /**< LPC order */
133
 
   int    bufSize;        /**< Buffer size */
134
138
   int    min_pitch;      /**< Minimum pitch value allowed */
135
139
   int    max_pitch;      /**< Maximum pitch value allowed */
136
140
   int    sampling_rate;
157
161
   spx_word16_t  last_pitch_gain; /**< Pitch gain of last correctly decoded frame */
158
162
   spx_word16_t  pitch_gain_buf[3];  /**< Pitch gain of last decoded frames */
159
163
   int    pitch_gain_buf_idx; /**< Tail of the buffer */
160
 
 
 
164
   spx_int32_t seed;          /** Seed used for random number generation */
 
165
   
161
166
   int    encode_submode;
162
167
   const SpeexSubmode * const *submodes; /**< Sub-mode data */
163
168
   int    submodeID;      /**< Activated sub-mode */