summaryrefslogtreecommitdiff
path: root/silk/NLSF_encode.c
diff options
context:
space:
mode:
authorKoen Vos <koenvos@users.noreply.github.com>2016-02-21 14:27:11 +0800
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-07-17 15:05:54 -0400
commit8daa4d373948aadbd155f03b3dbc2ce658dfac12 (patch)
tree5dd5facce7a74a84a13e9f24453008de90e55f00 /silk/NLSF_encode.c
parenteb2c8f38e6ddaf238d07c090131c47c5f23eacfc (diff)
downloadopus-8daa4d373948aadbd155f03b3dbc2ce658dfac12.tar.gz
take advantage of more efficient NLSF quantization by reducing number of survivors in search
JMV: edited to be a little more conservative
Diffstat (limited to 'silk/NLSF_encode.c')
-rw-r--r--silk/NLSF_encode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/silk/NLSF_encode.c b/silk/NLSF_encode.c
index dda6a168..fb3b04b8 100644
--- a/silk/NLSF_encode.c
+++ b/silk/NLSF_encode.c
@@ -37,7 +37,7 @@ POSSIBILITY OF SUCH DAMAGE.
/***********************/
opus_int32 silk_NLSF_encode( /* O Returns RD value in Q25 */
opus_int8 *NLSFIndices, /* I Codebook path vector [ LPC_ORDER + 1 ] */
- opus_int16 *pNLSF_Q15, /* I/O Quantized NLSF vector [ LPC_ORDER ] */
+ opus_int16 *pNLSF_Q15, /* I/O (Un)quantized NLSF vector [ LPC_ORDER ] */
const silk_NLSF_CB_struct *psNLSF_CB, /* I Codebook object */
const opus_int16 *pW_Q2, /* I NLSF weight vector [ LPC_ORDER ] */
const opus_int NLSF_mu_Q20, /* I Rate weight for the RD optimization */
@@ -117,7 +117,7 @@ opus_int32 silk_NLSF_encode( /* O Returns
silk_memcpy( &NLSFIndices[ 1 ], &tempIndices2[ bestIndex * MAX_LPC_ORDER ], psNLSF_CB->order * sizeof( opus_int8 ) );
/* Decode */
- silk_NLSF_decode( pNLSF_Q15, NLSFIndices, psNLSF_CB, -1 );
+ silk_NLSF_decode( pNLSF_Q15, NLSFIndices, psNLSF_CB );
ret = RD_Q25[ 0 ];
RESTORE_STACK;