Changeset 359 for libmpc/trunk/libmpcdec
- Timestamp:
- 10/02/07 12:20:18 (17 years ago)
- Location:
- libmpc/trunk/libmpcdec
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_decoder.c
r314 r359 205 205 MPC_SAMPLE_FORMAT* YL; 206 206 MPC_SAMPLE_FORMAT* YR; 207 mpc_int 32_t* L;208 mpc_int 32_t* R;207 mpc_int16_t* L; 208 mpc_int16_t* R; 209 209 const mpc_int32_t Last_Band = d->max_band; 210 210 … … 453 453 /***************************** Samples ****************************/ 454 454 for ( n = 0; n < Max_used_Band; n++ ) { 455 mpc_int 32_t *q = d->Q[n].L, Res = d->Res_L[n];455 mpc_int16_t *q = d->Q[n].L, Res = d->Res_L[n]; 456 456 do { 457 457 mpc_int32_t k; … … 615 615 /***************************** Samples ****************************/ 616 616 for ( n = 0; n < Max_used_Band; n++ ) { 617 mpc_int 32_t *q = d->Q[n].L, Res = d->Res_L[n];617 mpc_int16_t *q = d->Q[n].L, Res = d->Res_L[n]; 618 618 static const unsigned int thres[] = {0, 0, 3, 0, 0, 1, 3, 4, 8}; 619 619 static const mpc_int8_t HuffQ2_var[5*5*5] = -
libmpc/trunk/libmpcdec/requant.c
r262 r359 43 43 /* C O N S T A N T S */ 44 44 // Bits per sample for chosen quantizer 45 const mpc_uint 32_t Res_bit [18] = {45 const mpc_uint8_t Res_bit [18] = { 46 46 0, 0, 0, 0, 0, 0, 0, 0, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 47 47 }; … … 65 65 // Requantization offset 66 66 // 2*D+1 = steps of quantizer 67 const mpc_int 32_t __Dc [1 + 18] = {67 const mpc_int16_t __Dc [1 + 18] = { 68 68 2, 69 69 0, 1, 2, 3, 4, 7, 15, 31, 63, -
libmpc/trunk/libmpcdec/requant.h
r137 r359 48 48 49 49 /* C O N S T A N T S */ 50 const mpc_uint 32_t Res_bit [18]; ///< Bits per sample for chosen quantizer50 const mpc_uint8_t Res_bit [18]; ///< Bits per sample for chosen quantizer 51 51 const MPC_SAMPLE_FORMAT __Cc [1 + 18]; ///< Requantization coefficients 52 const mpc_int 32_t __Dc [1 + 18]; ///< Requantization offset52 const mpc_int16_t __Dc [1 + 18]; ///< Requantization offset 53 53 54 54 #define Cc (__Cc + 1)
Note: See TracChangeset
for help on using the changeset viewer.