Split off decoder code

This commit is contained in:
Jean-Marc Valin 2019-03-17 13:24:58 -04:00
parent 8dcccc8934
commit e63292bd56
6 changed files with 168 additions and 122 deletions

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2017-2018 Mozilla */
/* Copyright (c) 2017-2019 Mozilla */
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
@ -43,8 +43,6 @@
#include "lpcnet.h"
#define NB_DELTA_CEPS 6
//#define NB_FEATURES (2*NB_BANDS+3+LPC_ORDER)
@ -318,8 +316,6 @@ int quantize_diff(float *x, float *left, float *right, float *codebook, int bits
return id;
}
#define FORBIDDEN_INTERP 7
int interp_search(const float *x, const float *left, const float *right, float *dist_out)
{
int i, k;