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