Changeset 64 for mppenc/branches/r2d/libmpcenc/quant.c
- Timestamp:
- 09/29/06 16:55:39 (18 years ago)
- Location:
- mppenc/branches/r2d/libmpcenc
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
mppenc/branches/r2d/libmpcenc/quant.c
r58 r64 18 18 */ 19 19 20 #include "mppenc.h" 20 #include "libmpcenc.h" 21 22 #include <math.h> 21 23 22 24 /* V A R I A B L E S */ 23 25 float __SCF [128 + 6]; // tabulated scalefactors 26 #define SCF ( __SCF + 6 ) 24 27 float __invSCF [128 + 6]; // inverted scalefactors 28 #define invSCF (__invSCF + 6) 25 29 26 30 … … 239 243 // Linear quantizer for a subband 240 244 void 241 QuantizeSubband ( unsigned int* qu_output, const float* input, const int res, float* errors )245 QuantizeSubband ( unsigned int* qu_output, const float* input, const int res, float* errors, const int maxNsOrder ) 242 246 { 243 247 int n; … … 249 253 float signal; 250 254 251 for ( n = 0; n < 36 - MAX_NS_ORDER; n++, input++, qu_output++ ) {255 for ( n = 0; n < 36 - maxNsOrder; n++, input++, qu_output++ ) { 252 256 // q = ftol(in), correct rounding 253 257 tmp = *input * mult + 0xFF8000;
Note: See TracChangeset
for help on using the changeset viewer.