sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef _RPELTP_H sl@0: #define _RPELTP_H sl@0: sl@0: #include "types.h" sl@0: sl@0: const TInt KFrameSize = 160; sl@0: const TInt KSubFrameSize = 40; sl@0: sl@0: #define FRAMESIZE KFrameSize /* samples in speech frame */ sl@0: #define SUBFRAMESIZE KSubFrameSize /* samples in subframe */ sl@0: sl@0: class CGSM610FR_Encoder; sl@0: class CGSM610FR_Decoder; sl@0: sl@0: void reset_encoder( CGSM610FR_Encoder* aEncoder ); sl@0: void reset_decoder( CGSM610FR_Decoder* aDecoder ); sl@0: sl@0: void prepr( CGSM610FR_Encoder* aEncoder, int2 sof[], int2 so[] ); sl@0: void preemp( CGSM610FR_Encoder* aEncoder, int2 s[], int2 sof[] ); sl@0: int2 autoc( int4 L_ACF[], int2 s[] ); /* scalauto is returned */ sl@0: void schur( int2 r[], int4 L_ACF[] ); sl@0: void larcomp( int2 LAR[], int2 r[] ); sl@0: void codlar( int2 LARc[], int2 LAR[] ); sl@0: void declar( int2 LARpp[], int2 LARc[] ); sl@0: void cparc1( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] ); sl@0: void cparc2( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] ); sl@0: void cparc3( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] ); sl@0: void cparc4( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] ); sl@0: void crp( int2 rp[], int2 LARp[] ); sl@0: void invfil( CGSM610FR_Encoder* aEncoder, int2 d[], int2 s[], int2 rp[], int k_start, int k_end ); sl@0: void ltpcomp( CGSM610FR_Encoder* aEncoder, int2 *Nc, int2 *bc, int2 d[], int k_start ); sl@0: void ltpfil( CGSM610FR_Encoder* aEncoder, int2 e[], int2 dpp[], int2 d[], int2 bc, int2 Nc, int k_start ); sl@0: void weight( int2 x[], int2 e[] ); sl@0: int2 gridsel( int2 xM[], int2 x[] ); sl@0: void expman( int2 *EXP, int2 *mant, int2 xmaxc ); sl@0: int2 quantize_xmax( int2 xmax ); sl@0: int2 apcm( int2 *xmaxc, int2 xMc[], int2 xM[], int2 *EXP, int2 *mant ); sl@0: void iapcm( int2 xMp[], int2 xMc[], int2 EXP, int2 mant ); sl@0: void gridpos( int2 ep[], int2 xMp[], int2 Mc ); sl@0: void ltpupd( CGSM610FR_Encoder* aEncoder, int2 dpp[], int2 ep[] ); sl@0: void ltpsyn( CGSM610FR_Decoder* aDecoder, int2 erp[], int2 wt[], int2 bcr, int2 Ncr ); sl@0: void synfil( CGSM610FR_Decoder* aDecoder, int2 sr[], int2 wt[], int2 rrp[], int k_start, int k_end ); sl@0: sl@0: void postpr( CGSM610FR_Decoder* aDecoder, int2 srop[], int2 sr[] ); sl@0: sl@0: #endif sl@0: