mmlibs/mmfw/Codecs/Inc/Gsm610CodecCommon/rpeltp.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef _RPELTP_H
       
    17 #define _RPELTP_H
       
    18 
       
    19 #include "types.h"
       
    20 
       
    21 const TInt KFrameSize = 160;
       
    22 const TInt KSubFrameSize = 40;
       
    23 
       
    24 #define FRAMESIZE KFrameSize   /* samples in speech frame */
       
    25 #define SUBFRAMESIZE KSubFrameSize /* samples in subframe */
       
    26 
       
    27 class CGSM610FR_Encoder;
       
    28 class CGSM610FR_Decoder;
       
    29 
       
    30 void reset_encoder( CGSM610FR_Encoder* aEncoder );
       
    31 void reset_decoder( CGSM610FR_Decoder* aDecoder );
       
    32 
       
    33 void prepr( CGSM610FR_Encoder* aEncoder, int2 sof[], int2 so[] );
       
    34 void preemp( CGSM610FR_Encoder* aEncoder, int2 s[], int2 sof[] );
       
    35 int2 autoc( int4 L_ACF[], int2 s[] ); /* scalauto is returned */
       
    36 void schur( int2 r[], int4 L_ACF[] );
       
    37 void larcomp( int2 LAR[], int2 r[] );
       
    38 void codlar( int2 LARc[], int2 LAR[] );
       
    39 void declar( int2 LARpp[], int2 LARc[] );
       
    40 void cparc1( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] );
       
    41 void cparc2( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] );
       
    42 void cparc3( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] );
       
    43 void cparc4( int2 LARp[], int2 LARpp_prev[], int2 LARpp[] );
       
    44 void crp( int2 rp[], int2 LARp[] );
       
    45 void invfil( CGSM610FR_Encoder* aEncoder, int2 d[], int2 s[], int2 rp[], int k_start, int k_end );
       
    46 void ltpcomp( CGSM610FR_Encoder* aEncoder, int2 *Nc, int2 *bc, int2 d[], int k_start );
       
    47 void ltpfil( CGSM610FR_Encoder* aEncoder, int2 e[], int2 dpp[], int2 d[], int2 bc, int2 Nc, int k_start );
       
    48 void weight( int2 x[], int2 e[] );
       
    49 int2 gridsel( int2 xM[], int2 x[] );
       
    50 void expman( int2 *EXP, int2 *mant, int2 xmaxc );
       
    51 int2 quantize_xmax( int2 xmax );
       
    52 int2 apcm( int2 *xmaxc, int2 xMc[], int2 xM[], int2 *EXP, int2 *mant );
       
    53 void iapcm( int2 xMp[], int2 xMc[], int2 EXP, int2 mant );
       
    54 void gridpos( int2 ep[], int2 xMp[], int2 Mc );
       
    55 void ltpupd( CGSM610FR_Encoder* aEncoder, int2 dpp[], int2 ep[] );
       
    56 void ltpsyn( CGSM610FR_Decoder* aDecoder, int2 erp[], int2 wt[], int2 bcr, int2 Ncr );
       
    57 void synfil( CGSM610FR_Decoder* aDecoder, int2 sr[], int2 wt[], int2 rrp[], int k_start, int k_end );
       
    58 
       
    59 void postpr( CGSM610FR_Decoder* aDecoder, int2 srop[], int2 sr[] );
       
    60 
       
    61 #endif
       
    62