分类:
2015-11-17 11:08:31
:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://kware.blogbus.com/logs/30704854.html
1. lr, ro, xr 之类的变量是什么?
- get_scale_factors(ch, gr);
输出:scalefac[ch]
for (sfb=0; sfb<8; sfb++)
scalefac[ch].l[sfb] = br.hgetbits(slen[0][gr_info.scalefac_compress]);
for (sfb=3; sfb<6; sfb++) for (window=0; window<3; window++)
scalefac[ch].s[window][sfb] = br.hgetbits(slen[0][gr_info.scalefac_compress]);
- huffman_decode(ch, gr);
输出:is_1d
is_1d[index++] = v[0]; is_1d[index++] = w[0];
is_1d[index++] = x[0]; is_1d[index++] = y[0];
- dequantize_sample(ro[ch], ch, gr);
输出:ro
float[][] xr_1d = xr; // 输出 xr = ro
- stereo(gr);
输出:is_pos, is_ratio
if (lsf) i_stereo_k_values(is_pos[i], io_type, i);
else is_ratio[i] = TAN12[is_pos[i]];
- reorder(lr[ch], ch, gr);
输出:lr
float[][] xr_1d = xr; // xr = lr
- antialias(ch, gr);
输出:out_1d[src_idx1] = (bu * cs[ss]) - (bd * ca[ss]);
out_1d[src_idx2] = (bd * cs[ss]) + (bu * ca[ss]);
- hybrid(ch, gr);
输出:
inv_mdct(tsOutCopy, rawout, bt);
for (int cc=0; cc<18; cc++) tsOut[cc+sb18] = tsOutCopy[cc];
tsOut[0 + sb18] = rawout[0] + prvblk[ch][sb18 + 0];
prvblk[ch][sb18 + 0] = rawout[18];
2. *_1d 是什么变量?一维?
xr_1d 临时局部变量
is_1d 全局变量
out_1d 全局变量
3. Miscs
FDCT - Forward Discrete Cosine Transform 正向离散余弦变换, 把空间域表示的图变换成频率域的。