📄 g729ev_fec_tools.h
字号:
/* ITU-T G.729EV Optimization/Characterization Candidate *//* Version: 1.0.a *//* Revision Date: June 28, 2006 *//* ITU-T G.729EV Optimization/Characterization Candidate ANSI-C Source Code Copyright (c) 2006 France Telecom, Matsushita Electric, Mindspeed, Siemens AG, ETRI, VoiceAge Corp. All rights reserved*/#ifndef __G729EV_TOOLS_H__#define __G729EV_TOOLS_H__/*-----------------------------------------------------------* * Tool library * ~~~~~~~~~~~~~~~~~~~ *-----------------------------------------------------------*//* Fixed-point definitions and prototypes */#include "G729EV_MAIN_defines.h"#include "G729EV_G729_defines.h"#include "stl.h"void G729EV_Copy32(const Word32 x[], /* i: input vector */ Word32 y[], /* o: output vector */ const Word16 L /* i: vector length */ );Word16 G729EV_Emaximum2( /* o: return index with energy value in vector Q0 */ const Word16 Qvec, /* i: Q of input vector Q0 */ const Word16 * vec, /* i: input vector Qx */ const Word16 lvec, /* i: length of input vector Q0 */ Word32 * ener_max /* o: maximum energy value Q0 */ );Word16 G729EV_Find_max( /* o: return index with maximum value in vector */ const Word16 * vec, /* i: input vector */ const Word16 lvec /* i: length of input vector */ );Word32 G729EV_Mean32( /* o: mean of the elements of the vector */ const Word32 in[], /* i: input vector */ const Word16 L /* i: length of input vector */ );/*----------------------------------------------------------------------------------* * Function Name : Dot_product() * Compute scalar product of <x[],y[]> using accumulator. * Performs no normalization, as opposed to Dot_product12() *----------------------------------------------------------------------------------*/Word32 G729EV_Dot_product( /* o: Sum */ const Word16 x[], /* i: 12bits: x vector */ const Word16 y[], /* i: 12bits: y vector */ const Word16 lg /* i: vector length */ );void G729EV_Set_zero32(Word32 x[], /* i/o: vector to clear */ const Word16 L /* i: length of vector */ );void G729EV_Scale_sig(Word16 x[], /* i/o: signal to scale Qx */ const Word16 lg, /* i: size of x[] Q0 */ const Word16 exp0 /* i: exponent: x = round(x << exp) Qx
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -