⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usc_ec.h

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 H
字号:
/*****************************************************************************
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright (c) 2005 Intel Corporation. All Rights Reserved.
//
// Intel(R) Integrated Performance Primitives
//
//     USC - Unified Speech Codec interface library
//
//  Purpose: Unified Echo Canceller Interface header file.
//               Structures and functions declarations.
//***************************************************************************/
#ifndef __USC_EC_H__
#define __USC_EC_H__
#include "usc_base.h"

typedef enum {
   EC_SUBBAND     = 0,
   EC_FULLBAND    = 1,
   EC_FASTSUBBAND = 2
} USC_EC_Algs;

typedef enum {
   AD_OFF       = 0,
   AD_FULLADAPT = 1,
   AD_LITEADAPT = 2
} USC_AdaptType;

/* USC echo canceller modes */
typedef struct {
   USC_AdaptType adapt;      /* 0 - disable adaptation, 1 - enable full adaptation, 2 - enable lite adaptation  */
   int           zeroCoeff;  /* 0 - no zero coeffs of filters, 1 - zero coeffs of filters  */
   int           nlp;        /* 0 - disable NLP, 1 - enable NLP */
   int           td;         /* 0 - disable ToneDisabler, 1 - enable ToneDisabler */
   int           ah;         /* 0 - disable anti-howling, 1 - enable anti-howling */
}USC_EC_Modes;

/* USC echo canceller option */
typedef struct {
   USC_EC_Algs algType;    /* EC algorithm type set up into init() */
   USC_PCMType pcmType;
   int         echotail;   /* value of echo tail length, ms: in range [1, 200] for subband algorithm, [1, 16] for fullband algorithm */
   USC_EC_Modes modes;
}USC_EC_Option;

/* USC echo canceller information */
typedef struct {
   const char        *name;      /* type of EC name */
   int               framesize;  /* EC frame size in bytes */
   USC_EC_Option     params;
}USC_EC_Info;


typedef struct {

    USC_baseFxns std;

   /*   CancelEcho()
        pSin - pointer to send-in PCM data [input]
        pSin - pointer to receive-in PCM data [input]
        pSin - pointer to send-out PCM data [output]
    */
    USC_Status (*CancelEcho)(USC_Handle handle, short *pSin, short *pRin, short *pSout);

} USC_EC_Fxns;

#endif /* __USC_EC_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -