Changeset 359 for libmpc/trunk/libmpcdec


Ignore:
Timestamp:
10/02/07 12:20:18 (17 years ago)
Author:
r2d
Message:

changed mpc_quantizer size

Location:
libmpc/trunk/libmpcdec
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/mpc_decoder.c

    r314 r359  
    205205    MPC_SAMPLE_FORMAT* YL;
    206206    MPC_SAMPLE_FORMAT* YR;
    207     mpc_int32_t*    L;
    208     mpc_int32_t*    R;
     207    mpc_int16_t*    L;
     208    mpc_int16_t*    R;
    209209        const mpc_int32_t Last_Band = d->max_band;
    210210
     
    453453    /***************************** Samples ****************************/
    454454    for ( n = 0; n < Max_used_Band; n++ ) {
    455                 mpc_int32_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];
    456456                do {
    457457                        mpc_int32_t k;
     
    615615        /***************************** Samples ****************************/
    616616        for ( n = 0; n < Max_used_Band; n++ ) {
    617                 mpc_int32_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];
    618618                static const unsigned int thres[] = {0, 0, 3, 0, 0, 1, 3, 4, 8};
    619619                static const mpc_int8_t HuffQ2_var[5*5*5] =
  • libmpc/trunk/libmpcdec/requant.c

    r262 r359  
    4343/* C O N S T A N T S */
    4444// Bits per sample for chosen quantizer
    45 const mpc_uint32_t  Res_bit [18] = {
     45const mpc_uint8_t  Res_bit [18] = {
    4646    0,  0,  0,  0,  0,  0,  0,  0,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16
    4747};
     
    6565// Requantization offset
    6666// 2*D+1 = steps of quantizer
    67 const mpc_int32_t  __Dc [1 + 18] = {
     67const mpc_int16_t  __Dc [1 + 18] = {
    6868      2,
    6969      0,     1,     2,     3,     4,     7,    15,    31,    63,
  • libmpc/trunk/libmpcdec/requant.h

    r137 r359  
    4848
    4949/* C O N S T A N T S */
    50 const mpc_uint32_t      Res_bit [18];     ///< Bits per sample for chosen quantizer
     50const mpc_uint8_t      Res_bit [18];     ///< Bits per sample for chosen quantizer
    5151const MPC_SAMPLE_FORMAT __Cc    [1 + 18]; ///< Requantization coefficients
    52 const mpc_int32_t       __Dc    [1 + 18]; ///< Requantization offset
     52const mpc_int16_t       __Dc    [1 + 18]; ///< Requantization offset
    5353
    5454#define Cc (__Cc + 1)
Note: See TracChangeset for help on using the changeset viewer.