GNU Radio 3.5.1 C++ API
interp.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002 
00003   FILE........: interp.h
00004   AUTHOR......: David Rowe
00005   DATE CREATED: 9/10/09
00006 
00007   Interpolation of 20ms frames to 10ms frames.
00008 
00009 \*---------------------------------------------------------------------------*/
00010 
00011 /*
00012   Copyright (C) 2009 David Rowe
00013 
00014   All rights reserved.
00015 
00016   This program is free software; you can redistribute it and/or modify
00017   it under the terms of the GNU Lesser General Public License version 2.1, as
00018   published by the Free Software Foundation.  This program is
00019   distributed in the hope that it will be useful, but WITHOUT ANY
00020   WARRANTY; without even the implied warranty of MERCHANTABILITY or
00021   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
00022   License for more details.
00023 
00024   You should have received a copy of the GNU Lesser General Public License
00025   along with this program; if not, see <http://www.gnu.org/licenses/>.
00026 */
00027 
00028 #ifndef __INTERP__
00029 #define __INTERP__
00030 
00031 #define RES_POINTS 20
00032 
00033 void interpolate(MODEL *interp, MODEL *prev, MODEL *next);
00034 void interpolate_lsp(MODEL *interp, MODEL *prev, MODEL *next, 
00035                      float *prev_lsps, float  prev_e,
00036                      float *next_lsps, float  next_e,
00037                      float *ak_interp);
00038 float resample_amp(MODEL *model, int m);
00039 float resample_amp_nl(MODEL *model, int m, float Ares_prev[]);
00040 
00041 #endif