diff options
author | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-02-11 08:55:34 +0300 |
---|---|---|
committer | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-02-11 08:55:34 +0300 |
commit | 7e8a487ed2e31e24d679d437b569740d825009c2 (patch) | |
tree | 5fe5d47acd8fd56fbdeb748d31c522b0aca7361c /libcelt/quant_pitch.h | |
parent | cb7a2a3d52f562792c2efe81b204048ef9a5065c (diff) |
No longer encoding the pitch index if the gain is zero anyway.
Diffstat (limited to 'libcelt/quant_pitch.h')
-rw-r--r-- | libcelt/quant_pitch.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libcelt/quant_pitch.h b/libcelt/quant_pitch.h index 99c21b0..ad2ec74 100644 --- a/libcelt/quant_pitch.h +++ b/libcelt/quant_pitch.h @@ -35,9 +35,10 @@ #include "entenc.h" #include "entdec.h" -void quant_pitch(float *gains, int len, ec_enc *enc); +/* If this returns 0, the gain is zero (don't encode the pitch index) */ +int quant_pitch(float *gains, int len, ec_enc *enc); - -void unquant_pitch(float *gains, int len, ec_dec *dec); +/* If this returns 0, the gain is zero (don't decode the pitch index) */ +int unquant_pitch(float *gains, int len, ec_dec *dec); #endif /* QUANT_PITCH_H */ |