Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-11 08:55:34 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-11 08:55:34 +0300
commit7e8a487ed2e31e24d679d437b569740d825009c2 (patch)
tree5fe5d47acd8fd56fbdeb748d31c522b0aca7361c /libcelt/quant_pitch.h
parentcb7a2a3d52f562792c2efe81b204048ef9a5065c (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.h7
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 */