decodeacbsf.m

来自「ITU-T G.723.1 Speech Coder: Matlab imple」· M 代码 · 共 27 行

M
27
字号
function [L, b] = DecodeACBSF (ACBLC, ACBbIB, PMode, LPrev, Pitchpar)% Decode adaptive codebook parameters for one subframe% $Id: DecodeACBSF.m 1.1 2004/07/09 G.723.1-v2r1a $if (PMode == 1)  L = ACBLC + Pitchpar.PMin(PMode);  if (L > Pitchpar.PMax(PMode))    error ('DecodeACB: Forbidden pitch lag');  endelse  ACBLI = ACBLC + 1;  L = LPrev + Pitchpar.LOffs{PMode}(ACBLI);end% Determine the pitch coefficient vector / codebook indicesbI = ACBbIB(1);CBookI = ACBbIB(2);if (bI > size (Pitchpar.b{CBookI}, 2))  error ('DecodeACB: Invalid gain index');end% Pitch coefficient vectorb = Pitchpar.b{CBookI}(:,bI);return

⌨️ 快捷键说明

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