| OLD | NEW |
| 1 /* Copyright (c) 2007-2008 CSIRO | 1 /* Copyright (c) 2007-2008 CSIRO |
| 2 Copyright (c) 2007-2009 Xiph.Org Foundation | 2 Copyright (c) 2007-2009 Xiph.Org Foundation |
| 3 Written by Jean-Marc Valin */ | 3 Written by Jean-Marc Valin */ |
| 4 /* | 4 /* |
| 5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
| 6 modification, are permitted provided that the following conditions | 6 modification, are permitted provided that the following conditions |
| 7 are met: | 7 are met: |
| 8 | 8 |
| 9 - Redistributions of source code must retain the above copyright | 9 - Redistributions of source code must retain the above copyright |
| 10 notice, this list of conditions and the following disclaimer. | 10 notice, this list of conditions and the following disclaimer. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #ifndef QUANT_BANDS | 29 #ifndef QUANT_BANDS |
| 30 #define QUANT_BANDS | 30 #define QUANT_BANDS |
| 31 | 31 |
| 32 #include "arch.h" | 32 #include "arch.h" |
| 33 #include "modes.h" | 33 #include "modes.h" |
| 34 #include "entenc.h" | 34 #include "entenc.h" |
| 35 #include "entdec.h" | 35 #include "entdec.h" |
| 36 #include "mathops.h" | 36 #include "mathops.h" |
| 37 | 37 |
| 38 #ifdef FIXED_POINT |
| 39 extern const signed char eMeans[25]; |
| 40 #else |
| 41 extern const opus_val16 eMeans[25]; |
| 42 #endif |
| 43 |
| 38 void amp2Log2(const CELTMode *m, int effEnd, int end, | 44 void amp2Log2(const CELTMode *m, int effEnd, int end, |
| 39 celt_ener *bandE, opus_val16 *bandLogE, int C); | 45 celt_ener *bandE, opus_val16 *bandLogE, int C); |
| 40 | 46 |
| 41 void log2Amp(const CELTMode *m, int start, int end, | 47 void log2Amp(const CELTMode *m, int start, int end, |
| 42 celt_ener *eBands, const opus_val16 *oldEBands, int C); | 48 celt_ener *eBands, const opus_val16 *oldEBands, int C); |
| 43 | 49 |
| 44 void quant_coarse_energy(const CELTMode *m, int start, int end, int effEnd, | 50 void quant_coarse_energy(const CELTMode *m, int start, int end, int effEnd, |
| 45 const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget, | 51 const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget, |
| 46 opus_val16 *error, ec_enc *enc, int C, int LM, | 52 opus_val16 *error, ec_enc *enc, int C, int LM, |
| 47 int nbAvailableBytes, int force_intra, opus_val32 *delayedIntra, | 53 int nbAvailableBytes, int force_intra, opus_val32 *delayedIntra, |
| 48 int two_pass, int loss_rate); | 54 int two_pass, int loss_rate, int lfe); |
| 49 | 55 |
| 50 void quant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBa
nds, opus_val16 *error, int *fine_quant, ec_enc *enc, int C); | 56 void quant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBa
nds, opus_val16 *error, int *fine_quant, ec_enc *enc, int C); |
| 51 | 57 |
| 52 void quant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *ol
dEBands, opus_val16 *error, int *fine_quant, int *fine_priority, int bits_left,
ec_enc *enc, int C); | 58 void quant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *ol
dEBands, opus_val16 *error, int *fine_quant, int *fine_priority, int bits_left,
ec_enc *enc, int C); |
| 53 | 59 |
| 54 void unquant_coarse_energy(const CELTMode *m, int start, int end, opus_val16 *ol
dEBands, int intra, ec_dec *dec, int C, int LM); | 60 void unquant_coarse_energy(const CELTMode *m, int start, int end, opus_val16 *ol
dEBands, int intra, ec_dec *dec, int C, int LM); |
| 55 | 61 |
| 56 void unquant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldE
Bands, int *fine_quant, ec_dec *dec, int C); | 62 void unquant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldE
Bands, int *fine_quant, ec_dec *dec, int C); |
| 57 | 63 |
| 58 void unquant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *
oldEBands, int *fine_quant, int *fine_priority, int bits_left, ec_dec *dec, int
C); | 64 void unquant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *
oldEBands, int *fine_quant, int *fine_priority, int bits_left, ec_dec *dec, int
C); |
| 59 | 65 |
| 60 #endif /* QUANT_BANDS */ | 66 #endif /* QUANT_BANDS */ |
| OLD | NEW |