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 G723 header file.
26 //
27 */
28 #ifndef __VADG723_H__
29 #define __VADG723_H__
30 
31 #include <ipps.h>
32 #include "owng723.h"
33 
34 struct _G723VADmemory {
35    Ipp32s  PrevEnergy;
36    Ipp32s  NoiseLevel;
37    Ipp16s  HangoverCounter;
38    Ipp16s  VADCounter;
39    Ipp32s  AdaptEnableFlag;
40    Ipp16s  OpenLoopDelay[4];
41 /*--------------*/
42    G723_Obj_t          objPrm;  /* must be on top     */
43    Ipp16s              PrevOpenLoopLags[2];
44    Ipp16s              prevSidLpc[G723_LPC_ORDERP1];
45    Ipp16s              SineWaveDetector;/* Sine wave detector */
46    G723_FrameType      PastFrameType;
47    Ipp32s              HPFltMem[2];/* High pass variables */
48    ScratchMem_Obj      Mem;
49 };
50 
51 void VoiceActivityDetectSize_G723(Ipp32s* pVADsize);
52 void VoiceActivityDetectInit_G723(Ipp8s* pVADmem);
53 void VoiceActivityDetect_G723(const Ipp16s *pSrc, const Ipp16s *pNoiseLPC,
54          const Ipp16s *pOpenLoopDelay, Ipp32s SineWaveDetector, Ipp32s *pVADDecision, Ipp32s *pAdaptEnableFlag, Ipp8s* pVADmem, Ipp16s *AlignBuff);
55 
56 #endif /*__VADG723_H__*/
57