aboutsummaryrefslogtreecommitdiffstats
path: root/include/gapk/codecs.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-28 16:16:21 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-28 16:18:09 +0200
commit526fc6e5e906937c3227b88c238d2a6d7e520434 (patch)
tree39b28bf096b8460de25b6126087e35b4d1a25758 /include/gapk/codecs.h
parentbd42eba35dca8ae23013ad0825d007a0a5f69091 (diff)
Fix HR codec block sizes
The ETSI reference codec actually uses an array of 20/22 16bit values rather than a "canonical" format. The conversion is what fmt_hr_ref.c is doing. However, codec_hr.c must then subsequently not check for the canonical input/output sizes, but those specific to it.
Diffstat (limited to 'include/gapk/codecs.h')
-rw-r--r--include/gapk/codecs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gapk/codecs.h b/include/gapk/codecs.h
index f62cb25..aa1c829 100644
--- a/include/gapk/codecs.h
+++ b/include/gapk/codecs.h
@@ -26,6 +26,8 @@
#define HR_CANON_LEN 14
#define EFR_CANON_LEN 31
#define PCM_CANON_LEN (160*sizeof(uint16_t))
+#define HR_REF_ENC_LEN (20 * sizeof(uint16_t))
+#define HR_REF_DEC_LEN (22 * sizeof(uint16_t))
enum codec_type {
CODEC_INVALID = 0,