summaryrefslogtreecommitdiffstats
path: root/libavcodec/g729dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/g729dec.c')
-rw-r--r--libavcodec/g729dec.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index 9870864..f00e597 100644
--- a/libavcodec/g729dec.c
+++ b/libavcodec/g729dec.c
@@ -31,6 +31,24 @@
#include "bitstream.h"
/**
+ * minimum quantized LSF value (3.2.4)
+ * 0.005 in Q13
+ */
+#define LSFQ_MIN 40
+
+/**
+ * maximum quantized LSF value (3.2.4)
+ * 3.135 in Q13
+ */
+#define LSFQ_MAX 25681
+
+/**
+ * minimum LSF distance (3.2.4)
+ * 0.0391 in Q13
+ */
+#define LSFQ_DIFF_MIN 321
+
+/**
* \brief pseudo random number generator
*/
static inline uint16_t g729_random(uint16_t value)
OpenPOWER on IntegriCloud