Changeset 66 for mppenc/branches/r2d/src/mppenc.h
- Timestamp:
- 10/02/06 23:20:16 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mppenc/branches/r2d/src/mppenc.h
r65 r66 74 74 // extern UintMax_t BufferedBits; // counter for the number of written bits in the bitstream 75 75 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 77 void FlushBitstream ( FILE* fp, const mpc_uint32_t* buffer, size_t words32bit ); 78 void UpdateHeader ( FILE* fp, mpc_uint32_t Frames, Uint ValidSamples ); 79 void WriteBits ( mpc_encoder_t*, const mpc_uint32_t input, const unsigned int bits ); 80 void WriteBitsAt ( mpc_encoder_t*, const mpc_uint32_t input, const unsigned int bits, const BitstreamPos pos ); 81 void GetBitstreamPos ( mpc_encoder_t*, BitstreamPos* const pos ); 81 82 82 83 // cvd.c 83 int CVD2048 ( const float*, int* );84 int CVD2048 ( PsyModel*, const float*, int* ); 84 85 85 86 … … 140 141 float ISNR_Schaetzer ( const float* samples, const float comp, const int res); 141 142 float 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 );143 void QuantizeSubband ( unsigned int* qu_output, const float* input, const int res, float* errors, const int maxNsOrder ); 143 144 void QuantizeSubbandWithNoiseShaping ( unsigned int* qu_output, const float* input, const int res, float* errors, const float* FIR ); 144 145 … … 146 147 147 148 149 // FIXME : no more globals 148 150 // encode_sv7.c 149 151 extern unsigned char MS_Flag [32]; // subband-wise mid/side flag … … 153 155 extern int SCF_Index_R [32] [3]; // Scalefactor-index for Bitstream 154 156 157 // FIXME : put in lib header 155 158 void 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);159 void 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 ); 160 void WriteBitstream_SV7 ( mpc_encoder_t*, const int, const SubbandQuantTyp* ); 161 void FinishBitstream ( mpc_encoder_t* ); 159 162 160 163
Note: See TracChangeset
for help on using the changeset viewer.