Ignore:
Timestamp:
10/07/06 02:49:28 (18 years ago)
Author:
r2d
Message:
  • fixed a LOT of bugs
  • fixed a bug that took me 2 days to find :)
  • remember to ALWAYS use -Wall with a C compiler (C++ is great !!!)
  • files can be played, but are not bit identical with the 1.15w encoder (the last digits of floats are not the same) - must be fixed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mppenc/branches/r2d/libmpcpsy/libmpcpsy.h

    r65 r71  
    6464        unsigned int  MS_Channelmode;
    6565
    66         float         a          [PART_LONG];
    67         float         b          [PART_LONG];
    68         float         c          [PART_LONG];
    69         float         d          [PART_LONG];           // Integrations for tmpMask
    70         float         T_L        [PART_LONG];
    71         float         T_R        [PART_LONG];           // time-constants for tmpMask
    72         float         pre_erg_L[2][PART_SHORT];
    73         float         pre_erg_R[2][PART_SHORT];          // Preecho-control short
    74         float         PreThr_L   [PART_LONG];
    75         float         PreThr_R   [PART_LONG];           // for Pre-Echo-control L/R
    76         float         tmp_Mask_L [PART_LONG];
    77         float         tmp_Mask_R [PART_LONG];           // for Post-Masking L/R
    78         int           Vocal_L    [MAX_CVD_LINE + 4];
    79         int           Vocal_R    [MAX_CVD_LINE + 4];    // FFT-Line belongs to harmonic?
    80 
    8166        /* V A R I A B L E S */
    82         float  MinVal   [PART_LONG];               // contains minimum tonality soffsets
    83         float  Loudness [PART_LONG];               // weighting factors for loudness calculation
    84         float  SPRD     [PART_LONG] [PART_LONG];   // tabulated spreading function
    85         float  O_MAX;
    86         float  O_MIN;
    87         float  FAC1;
    88         float  FAC2;                               // constants for offset calculation
    89         float  partLtq  [PART_LONG];               // threshold in quiet (partitions)
    90         float  invLtq   [PART_LONG];               // inverse threshold in quiet (partitions, long)
    91         float  fftLtq   [512];                     // threshold in quiet (FFT)
    9267        float  Ltq_offset;                         // Offset for threshold in quiet
    9368        float  Ltq_max;                            // maximum level for threshold in quiet
     
    10479        float         FIR_L      [32] [MAX_NS_ORDER];
    10580        float         FIR_R      [32] [MAX_NS_ORDER];   // contains FIR-Filter for NoiseShaping
    106         float         ANSspec_L  [MAX_ANS_LINES];
    107         float         ANSspec_R  [MAX_ANS_LINES];       // L/R-masking thresholds for ANS
    108         float         ANSspec_M  [MAX_ANS_LINES];
    109         float         ANSspec_S  [MAX_ANS_LINES];       // M/S-masking thresholds for ANS
    11081        float         SNR_comp_L [32];
    11182        float         SNR_comp_R [32];             // SNR-compensation after SCF-combination and ANS-gain
     
    11586
    11687        // FIXME : remove this :
    117         int            SCF_Index_L [32] [3];
    118         int            SCF_Index_R [32] [3];              // Scalefactor-index for Bitstream
     88        int * SCF_Index_L;
     89        int * SCF_Index_R;              // Scalefactor-index for Bitstream
    11990
    12091} PsyModel;
Note: See TracChangeset for help on using the changeset viewer.