diff options
| author | erdgeist@erdgeist.org <erdgeist@bauklotz.fritz.box> | 2019-07-04 23:26:09 +0200 |
|---|---|---|
| committer | erdgeist@erdgeist.org <erdgeist@bauklotz.fritz.box> | 2019-07-04 23:26:09 +0200 |
| commit | f02dfce6e6c34b3d8a7b8a0e784b506178e331fa (patch) | |
| tree | 45556e6104242d4702689760433d7321ae74ec17 /interp.h | |
stripdown of version 0.9
Diffstat (limited to 'interp.h')
| -rw-r--r-- | interp.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/interp.h b/interp.h new file mode 100644 index 0000000..1247b7e --- /dev/null +++ b/interp.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /*---------------------------------------------------------------------------*\ | ||
| 2 | |||
| 3 | FILE........: interp.h | ||
| 4 | AUTHOR......: David Rowe | ||
| 5 | DATE CREATED: 9/10/09 | ||
| 6 | |||
| 7 | Interpolation of 20ms frames to 10ms frames. | ||
| 8 | |||
| 9 | \*---------------------------------------------------------------------------*/ | ||
| 10 | |||
| 11 | /* | ||
| 12 | Copyright (C) 2009 David Rowe | ||
| 13 | |||
| 14 | All rights reserved. | ||
| 15 | |||
| 16 | This program is free software; you can redistribute it and/or modify | ||
| 17 | it under the terms of the GNU Lesser General Public License version 2.1, as | ||
| 18 | published by the Free Software Foundation. This program is | ||
| 19 | distributed in the hope that it will be useful, but WITHOUT ANY | ||
| 20 | WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 21 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | ||
| 22 | License for more details. | ||
| 23 | |||
| 24 | You should have received a copy of the GNU Lesser General Public License | ||
| 25 | along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 26 | */ | ||
| 27 | |||
| 28 | #ifndef __INTERP__ | ||
| 29 | #define __INTERP__ | ||
| 30 | |||
| 31 | #include "kiss_fft.h" | ||
| 32 | |||
| 33 | void interpolate(MODEL *interp, MODEL *prev, MODEL *next); | ||
| 34 | void interpolate_lsp(kiss_fft_cfg fft_dec_cfg, | ||
| 35 | MODEL *interp, MODEL *prev, MODEL *next, | ||
| 36 | float *prev_lsps, float prev_e, | ||
| 37 | float *next_lsps, float next_e, | ||
| 38 | float *ak_interp, float *lsps_interp, float Wo_min); | ||
| 39 | void interp_Wo(MODEL *interp, MODEL *prev, MODEL *next, float Wo_min); | ||
| 40 | void interp_Wo2(MODEL *interp, MODEL *prev, MODEL *next, float weight, float Wo_min); | ||
| 41 | float interp_energy(float prev, float next); | ||
| 42 | float interp_energy2(float prev, float next, float weight); | ||
| 43 | void interpolate_lsp_ver2(float interp[], float prev[], float next[], float weight, int order); | ||
| 44 | |||
| 45 | #endif | ||
