Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/spandsp/private/gsm0610.h @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Fri, 25 Jun 2010 15:50:58 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
|---|---|
| 1 /* | |
| 2 * SpanDSP - a series of DSP components for telephony | |
| 3 * | |
| 4 * private/gsm0610.h - GSM 06.10 full rate speech codec. | |
| 5 * | |
| 6 * Written by Steve Underwood <steveu@coppice.org> | |
| 7 * | |
| 8 * Copyright (C) 2006 Steve Underwood | |
| 9 * | |
| 10 * All rights reserved. | |
| 11 * | |
| 12 * This program is free software; you can redistribute it and/or modify | |
| 13 * it under the terms of the GNU Lesser General Public License version 2.1, | |
| 14 * as published by the Free Software Foundation. | |
| 15 * | |
| 16 * This program is distributed in the hope that it will be useful, | |
| 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 * GNU Lesser General Public License for more details. | |
| 20 * | |
| 21 * You should have received a copy of the GNU Lesser General Public | |
| 22 * License along with this program; if not, write to the Free Software | |
| 23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 24 * | |
| 25 * $Id: gsm0610.h,v 1.2 2008/11/15 14:27:29 steveu Exp $ | |
| 26 */ | |
| 27 | |
| 28 #if !defined(_SPANDSP_PRIVATE_GSM0610_H_) | |
| 29 #define _SPANDSP_PRIVATE_GSM0610_H_ | |
| 30 | |
| 31 /*! | |
| 32 GSM 06.10 FR codec state descriptor. This defines the state of | |
| 33 a single working instance of the GSM 06.10 FR encoder or decoder. | |
| 34 */ | |
| 35 struct gsm0610_state_s | |
| 36 { | |
| 37 /*! \brief One of the packing modes */ | |
| 38 int packing; | |
| 39 | |
| 40 int16_t dp0[280]; | |
| 41 | |
| 42 /*! Preprocessing */ | |
| 43 int16_t z1; | |
| 44 int32_t L_z2; | |
| 45 /*! Pre-emphasis */ | |
| 46 int16_t mp; | |
| 47 | |
| 48 /*! Short term delay filter */ | |
| 49 int16_t u[8]; | |
| 50 int16_t LARpp[2][8]; | |
| 51 int16_t j; | |
| 52 | |
| 53 /*! Long term synthesis */ | |
| 54 int16_t nrp; | |
| 55 /*! Short term synthesis */ | |
| 56 int16_t v[9]; | |
| 57 /*! Decoder postprocessing */ | |
| 58 int16_t msr; | |
| 59 | |
| 60 /*! Encoder data */ | |
| 61 int16_t e[50]; | |
| 62 }; | |
| 63 | |
| 64 #endif | |
| 65 /*- End of include ---------------------------------------------------------*/ |
