memory_update.m

来自「g729音频编解码」· M 代码 · 共 19 行

M
19
字号
function exc=Memory_update(gp_qua,gc_qua,vn,cn,xn,yn,zn)

%   /*------------------------------------------------------*
%    * - Find the total excitation                          *
%    * - update filters memories for finding the target     *
%    *   vector in the next subframe                        *
%    *------------------------------------------------------*/

%gp_qua,gc_qua,vn,cn----quantinized gp ,quantinized gc
%exc---total excitation

global Filterstate;

exc=zeros(1,40);
ewn=zeros(1,40);
exc=(gp_qua*vn+gc_qua*cn);
ewn=xn-gp_qua*yn-gc_qua*zn;
Filterstate=round(ewn(31:end));

⌨️ 快捷键说明

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