private/gsm0610.h

00001 /*
00002  * SpanDSP - a series of DSP components for telephony
00003  *
00004  * private/gsm0610.h - GSM 06.10 full rate speech codec.
00005  *
00006  * Written by Steve Underwood <steveu@coppice.org>
00007  *
00008  * Copyright (C) 2006 Steve Underwood
00009  *
00010  * All rights reserved.
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU Lesser General Public License version 2.1,
00014  * as published by the Free Software Foundation.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Lesser General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Lesser General Public
00022  * License along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00024  *
00025  * $Id: gsm0610.h,v 1.2 2008/11/15 14:27:29 steveu Exp $
00026  */
00027 
00028 #if !defined(_SPANDSP_PRIVATE_GSM0610_H_)
00029 #define _SPANDSP_PRIVATE_GSM0610_H_
00030 
00031 /*!
00032     GSM 06.10 FR codec state descriptor. This defines the state of
00033     a single working instance of the GSM 06.10 FR encoder or decoder.
00034 */
00035 struct gsm0610_state_s
00036 {
00037     /*! \brief One of the packing modes */
00038     int packing;
00039 
00040     int16_t dp0[280];
00041 
00042     /*! Preprocessing */
00043     int16_t z1;
00044     int32_t L_z2;
00045     /*! Pre-emphasis */
00046     int16_t mp;
00047 
00048     /*! Short term delay filter */
00049     int16_t u[8];
00050     int16_t LARpp[2][8];
00051     int16_t j;
00052 
00053     /*! Long term synthesis */
00054     int16_t nrp;
00055     /*! Short term synthesis */
00056     int16_t v[9];
00057     /*! Decoder postprocessing */
00058     int16_t msr;
00059     
00060     /*! Encoder data */
00061     int16_t e[50];
00062 };
00063 
00064 #endif
00065 /*- End of include ---------------------------------------------------------*/

Generated on Tue Aug 4 03:35:59 2009 for spandsp by  doxygen 1.5.9