1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/Codecs/Inc/Gsm610CodecCommon/rpeltp.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,62 @@
1.4 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef _RPELTP_H
1.20 +#define _RPELTP_H
1.21 +
1.22 +#include "types.h"
1.23 +
1.24 +const TInt KFrameSize = 160;
1.25 +const TInt KSubFrameSize = 40;
1.26 +
1.27 +#define FRAMESIZE KFrameSize /* samples in speech frame */
1.28 +#define SUBFRAMESIZE KSubFrameSize /* samples in subframe */
1.29 +
1.30 +class CGSM610FR_Encoder;
1.31 +class CGSM610FR_Decoder;
1.32 +
1.33 +void reset_encoder( CGSM610FR_Encoder* aEncoder );
1.34 +void reset_decoder( CGSM610FR_Decoder* aDecoder );
1.35 +
1.36 +void prepr( CGSM610FR_Encoder* aEncoder, int2 sof[], int2 so[] );
1.37 +void preemp( CGSM610FR_Encoder* aEncoder, int2 s[], int2 sof[] );
1.38 +int2 autoc( int4 L_ACF[], int2 s[] ); /* scalauto is returned */
1.39 +void schur( int2 r[], int4 L_ACF[] );
1.40 +void larcomp( int2 LAR[], int2 r[] );
1.41 +void codlar( int2 LARc[], int2 LAR[] );
1.42 +void declar( int2 LARpp[], int2 LARc[] );
1.43 +void cparc1( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] );
1.44 +void cparc2( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] );
1.45 +void cparc3( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] );
1.46 +void cparc4( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] );
1.47 +void crp( int2 rp[], int2 LARp[] );
1.48 +void invfil( CGSM610FR_Encoder* aEncoder, int2 d[], int2 s[], int2 rp[], int k_start, int k_end );
1.49 +void ltpcomp( CGSM610FR_Encoder* aEncoder, int2 *Nc, int2 *bc, int2 d[], int k_start );
1.50 +void ltpfil( CGSM610FR_Encoder* aEncoder, int2 e[], int2 dpp[], int2 d[], int2 bc, int2 Nc, int k_start );
1.51 +void weight( int2 x[], int2 e[] );
1.52 +int2 gridsel( int2 xM[], int2 x[] );
1.53 +void expman( int2 *EXP, int2 *mant, int2 xmaxc );
1.54 +int2 quantize_xmax( int2 xmax );
1.55 +int2 apcm( int2 *xmaxc, int2 xMc[], int2 xM[], int2 *EXP, int2 *mant );
1.56 +void iapcm( int2 xMp[], int2 xMc[], int2 EXP, int2 mant );
1.57 +void gridpos( int2 ep[], int2 xMp[], int2 Mc );
1.58 +void ltpupd( CGSM610FR_Encoder* aEncoder, int2 dpp[], int2 ep[] );
1.59 +void ltpsyn( CGSM610FR_Decoder* aDecoder, int2 erp[], int2 wt[], int2 bcr, int2 Ncr );
1.60 +void synfil( CGSM610FR_Decoder* aDecoder, int2 sr[], int2 wt[], int2 rrp[], int k_start, int k_end );
1.61 +
1.62 +void postpr( CGSM610FR_Decoder* aDecoder, int2 srop[], int2 sr[] );
1.63 +
1.64 +#endif
1.65 +