From: drowe67 Date: Tue, 1 Nov 2011 00:26:02 +0000 (+0000) Subject: tried LSP differences 1-4 plus VQ in log and linear LSP domain for LSPs4-10 but not... X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=a9e97931f0217e08f0ea99b418d320f3aad55942;p=freetel-svn-tracking.git tried LSP differences 1-4 plus VQ in log and linear LSP domain for LSPs4-10 but not happy with results on hts2a git-svn-id: https://svn.code.sf.net/p/freetel/code@295 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/Makefile.am b/codec2-dev/src/Makefile.am index 93995db9..5f23697f 100644 --- a/codec2-dev/src/Makefile.am +++ b/codec2-dev/src/Makefile.am @@ -26,7 +26,7 @@ CODEBOOKSD= \ $D/dlsp2.txt \ $D/dlsp3.txt \ $D/dlsp4.txt \ - $(top_srcdir)/unittest/lspdlog5-10_1024.txt + $(top_srcdir)/unittest/lsp45678910.txt # lspd VQ quantisers diff --git a/codec2-dev/src/Makefile.in b/codec2-dev/src/Makefile.in index 0c3274c4..603c08bc 100644 --- a/codec2-dev/src/Makefile.in +++ b/codec2-dev/src/Makefile.in @@ -240,7 +240,7 @@ CODEBOOKSD = \ $D/dlsp2.txt \ $D/dlsp3.txt \ $D/dlsp4.txt \ - $(top_srcdir)/unittest/lspdlog5-10_1024.txt + $(top_srcdir)/unittest/lsp45678910.txt # lspd VQ quantisers diff --git a/codec2-dev/src/quantise.c b/codec2-dev/src/quantise.c index 1f3443fe..c3cb7092 100644 --- a/codec2-dev/src/quantise.c +++ b/codec2-dev/src/quantise.c @@ -135,10 +135,13 @@ void lspd_quantise( float lsp__hz[LPC_MAX]; float dlsp[LPC_MAX]; float dlsp_[LPC_MAX]; + float lsplog[LPC_MAX]; + float lsplog_[LPC_MAX]; float wt[LPC_MAX]; const float *cb; float se; int indexes[LPC_MAX]; + float diff1,diff2; for(i=0; i