1 /*/////////////////////////////////////////////////////////////////////////////
2 //
3 //                  INTEL CORPORATION PROPRIETARY INFORMATION
4 //     This software is supplied under the terms of a license agreement or
5 //     nondisclosure agreement with Intel Corporation and may not be copied
6 //     or disclosed except in accordance with the terms of that agreement.
7 //          Copyright(c) 2005-2011 Intel Corporation. All Rights Reserved.
8 //
9 //     Intel(R) Integrated Performance Primitives
10 //     USC - Unified Speech Codec interface library
11 //
12 // By downloading and installing USC codec, you hereby agree that the
13 // accompanying Materials are being provided to you under the terms and
14 // conditions of the End User License Agreement for the Intel(R) Integrated
15 // Performance Primitives product previously accepted by you. Please refer
16 // to the file ippEULA.rtf or ippEULA.txt located in the root directory of your Intel(R) IPP
17 // product installation for more information.
18 //
19 // A speech coding standards promoted by ITU, ETSI, 3GPP and other
20 // organizations. Implementations of these standards, or the standard enabled
21 // platforms may require licenses from various entities, including
22 // Intel Corporation.
23 //
24 //
25 // Purpose: USC VAD G729 header file.
26 //
27 */
28 #ifndef __VADG729_H__
29 #define __VADG729_H__
30 
31 #include <ipps.h>
32 #include "owng729.h"
33 
34 struct _VADmemory {
35 /**/    G729Coder_Obj       objPrm;
36 /**/    ScratchMem_Obj      Mem;
37 /**/    Ipp16s   speechHistory[SPEECH_BUF_DIM];
38 /**/    Ipp16s   BWDsynth[TBWD_DIM];
39 /**/    Ipp16s   encPrm[19];
40 /**/    Ipp16s   prevSubfrLPC[LPF_DIM+1];
41 /**/    Ipp8s    *preProc;/*highpasspreprocessingfiltermemory*/
42 
43     Ipp16s   LSFMean[LPF_DIM];
44     Ipp16s   minBuf[16];
45     Ipp16s   musicRC[10];
46     Ipp16s   VADPrev;
47     Ipp16s   VADPPrev;
48     Ipp16s   minPrev;
49     Ipp16s   minNext;
50     Ipp16s   minVAD;
51     Ipp16s   EMean;
52     Ipp16s   SEMean;
53     Ipp16s   SLEMean;
54     Ipp16s   SZCMean;
55     Ipp16s   VADPrevEnergy;
56     Ipp16s   SILcounter;
57     Ipp16s   updateCounter;
58     Ipp16s   extCounter;
59     Ipp16s   VADflag;
60     Ipp16s   VADflag2;
61     Ipp16s   lessCounter;
62     Ipp16s   frameCounter;
63     Ipp16s   musicCounter;
64     Ipp16s   musicSEMean;
65     Ipp16s   musicMCounter;
66     Ipp16s   conscCounter;
67     Ipp16s   conscCounterFlagP;
68     Ipp16s   MeanPgain;
69     Ipp16s   count_pflag;
70     Ipp16s   conscCounterFlagR;
71     Ipp16s   Mcount_pflag;
72 };
73 
74 //void SynthesisFilterSize_G729 (Ipp32s *pSize);
75 void VoiceActivityDetectSize_G729(Ipp32s *pSrc);
76 void VoiceActivityDetectInit_G729(Ipp8s *pSrc);
77 void VoiceActivityDetect_G729(Ipp16s *pSrc,Ipp16s *pLSF,Ipp32s *pAutoCorr,
78                               Ipp16s autoExp, Ipp16s rc, Ipp16s *pVad, Ipp8s*pVADmem,Ipp16s *pTmp);
79 
80 #endif /*__VADG729_H__*/
81