Ignore:
Timestamp:
10/02/06 23:20:16 (18 years ago)
Author:
r2d
Message:
  • mppenc compiles and runs, but output is not playing
File:
1 edited

Legend:

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

    r65 r66  
    7474// extern UintMax_t     BufferedBits;              // counter for the number of written bits in the bitstream
    7575
    76 void  FlushBitstream    ( FILE* fp, const Uint32_t* buffer, size_t words32bit );
    77 void  UpdateHeader      ( FILE* fp, Uint32_t Frames, Uint ValidSamples );
    78 void  WriteBits         ( const Uint32_t input, const unsigned int bits );
    79 void  WriteBitsAt       ( const Uint32_t input, const unsigned int bits, const BitstreamPos pos );
    80 void  GetBitstreamPos   ( BitstreamPos* const pos );
     76// FIXME : put in lib header
     77void  FlushBitstream    ( FILE* fp, const mpc_uint32_t* buffer, size_t words32bit );
     78void  UpdateHeader      ( FILE* fp, mpc_uint32_t Frames, Uint ValidSamples );
     79void  WriteBits         ( mpc_encoder_t*, const mpc_uint32_t input, const unsigned int bits );
     80void  WriteBitsAt       ( mpc_encoder_t*, const mpc_uint32_t input, const unsigned int bits, const BitstreamPos pos );
     81void  GetBitstreamPos   ( mpc_encoder_t*, BitstreamPos* const pos );
    8182
    8283// cvd.c
    83 int    CVD2048 ( const float*, int* );
     84int    CVD2048 ( PsyModel*, const float*, int* );
    8485
    8586
     
    140141float  ISNR_Schaetzer                  ( const float* samples, const float comp, const int res);
    141142float  ISNR_Schaetzer_Trans            ( const float* samples, const float comp, const int res);
    142 void   QuantizeSubband                 ( unsigned int* qu_output, const float* input, const int res, float* errors );
     143void   QuantizeSubband                 ( unsigned int* qu_output, const float* input, const int res, float* errors, const int maxNsOrder );
    143144void   QuantizeSubbandWithNoiseShaping ( unsigned int* qu_output, const float* input, const int res, float* errors, const float* FIR );
    144145
     
    146147
    147148
     149// FIXME : no more globals
    148150// encode_sv7.c
    149151extern unsigned char  MS_Flag     [32];                  // subband-wise mid/side flag
     
    153155extern int            SCF_Index_R [32] [3];              // Scalefactor-index for Bitstream
    154156
     157// FIXME : put in lib header
    155158void         Init_SV7             ( void );
    156 void         WriteHeader_SV7      ( const unsigned int, const unsigned int, const unsigned int, const Uint32_t TotalFrames, const unsigned int SamplesRest, const unsigned int StreamVersion, const unsigned int SampleFreq );
    157 void         WriteBitstream_SV7   ( const int, const SubbandQuantTyp* );
    158 void         FinishBitstream      ( void );
     159void         WriteHeader_SV7      ( mpc_encoder_t*, const unsigned int, const unsigned int, const unsigned int, const Uint32_t TotalFrames, const unsigned int SamplesRest, const unsigned int StreamVersion, const unsigned int SampleFreq );
     160void         WriteBitstream_SV7   ( mpc_encoder_t*, const int, const SubbandQuantTyp* );
     161void         FinishBitstream      ( mpc_encoder_t* );
    159162
    160163
Note: See TracChangeset for help on using the changeset viewer.