📄 pwfe.c
字号:
/* Version 1.2 Last modified: May 1998 */
#include <stdio.h>
#include <stdlib.h>
#include "typedef.h"
/************************************************************************/
/* */
/* ADAPTIVE BANDWIDTH EXPANSION FOR THE PERCEPTUAL WEIGHTING FILTER */
/* */
/* W(z) = A (z/gamma1) / A(z/gamma2) */
/* */
/************************************************************************/
void perc_vare (
Word16 *gamma1, /* Bandwidth expansion parameter */
Word16 *gamma2, /* Bandwidth expansion parameter */
Word16 high_stat /* high_stat indication (see file bwfw.c) */
)
{
if (high_stat == 0) {
gamma1[0] = 29491;
gamma1[1] = 29491;
gamma2[0] = 13107;
gamma2[1] = 13107;
}
else {
gamma1[0] = 32112;
gamma1[1] = 32112;
gamma2[0] = 13107;
gamma2[1] = 13107;
}
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -