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

📄 g723_platform_config.h

📁 windows环境下利用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) 2000 Intel Corporation. All Rights Reserved.
//
//  VSS:
//		$Workfile: g723_platform_config.h $
//      $Revision: 1 $
//      $Date: 05-05-24 17:57 $
//      $Archive: /ipp_sample/ipp5/ipp50/dev/src/arm_ppc/speech/g723/include/g723_platform_config.h $
//
//  Description:
//      G.723.1 cross-architecture sample code;
//		platform-dependent definitions
//
******************************************************************************/

/* Linux, all architectures */
#ifdef OS_LINUX

/*  Linux, XSC */
#ifdef ARCH_XSC

#include <ippdefs.h>
#include <ippSC.h>

/*  Linux, IA */
#else

#include <ippdefs.h>
#include <ippsc.h>

/* Definitions missing from ippSC.h on IA IPP */
typedef struct {
	Ipp16s	adaptEnableFlag;		/* adaptation enable flag */
	Ipp32s	prevFltEnergy;			/* previous filtered signal energy */
	Ipp32s	prevNoiseLevel;			/* previous noise level */
	Ipp16s	hangoverCount;			/* count for hangover frames */
	Ipp16s	vadVoiceCount;			/* count for VAD voice frames */
} IppG723AVadState;

typedef struct {
	Ipp16s	sidLpcAutoCorrExp;		/* exponent of the autocorrelation */
									/* coefficient of SID LPC coefficients */
	Ipp16s	sidLpcAutoCorr[11];		/* SID LPC coefficients autocorrelation */
	Ipp16s	qSidGainIndex;			/* quantized SID gain index */
	Ipp16s	residualEnergy[3];		/* residual energy of previous 3 frames */
	Ipp16s	sumFrame;				/* summation frames number */
} IppG723ADtxState;

#endif

/* Windows, all architectures */
#else

#include <ippdefs.h>
#include <ippsc.h>

/* Windows, XSC */
#ifdef ARCH_XSC

#define		GUI_TOP			40
#define		GUI_TV_TOP		30
#define		CTW_HANDLE		NULL
#define		FOPEN_TV		_wfopen

/* Windows, IA */
#else

#define		GUI_TOP			15
#define		GUI_TV_TOP		20
#define     CTW_HANDLE		hWnd
#define		FOPEN_TV		fopen

/* Definitions missing from ippSC.h on IA IPP */
typedef struct {
	Ipp16s	adaptEnableFlag;		/* adaptation enable flag */
	Ipp32s	prevFltEnergy;			/* previous filtered signal energy */
	Ipp32s	prevNoiseLevel;			/* previous noise level */
	Ipp16s	hangoverCount;			/* count for hangover frames */
	Ipp16s	vadVoiceCount;			/* count for VAD voice frames */
} IppG723AVadState;

typedef struct {
	Ipp16s	sidLpcAutoCorrExp;		/* exponent of the autocorrelation */
									/* coefficient of SID LPC coefficients */
	Ipp16s	sidLpcAutoCorr[11];		/* SID LPC coefficients autocorrelation */
	Ipp16s	qSidGainIndex;			/* quantized SID gain index */
	Ipp16s	residualEnergy[3];		/* residual energy of previous 3 frames */
	Ipp16s	sumFrame;				/* summation frames number */
} IppG723ADtxState;

#endif 
#endif 


⌨️ 快捷键说明

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