Lines Matching refs:idx

165             var idx = 0,
183 if (bandTypes[idx] !== ICStream.ZERO_BT) {
196 gain_i[idx++] = gainCache;
221 var idx = 0,
228 for (var sfb = 0; sfb < maxSFB; sfb++, idx++) {
229 if (bandTypes[idx] !== ICStream.ZERO_BT) {
230 var gain = gains[idx];
675 var idx = 0, groupOff = 0;
678 var end = sectEnd[idx];
680 … if (bandTypes[idx] === ICStream.INTENSITY_BT || bandTypes[idx] === ICStream.INTENSITY_BT2) {
681 for (; i < end; i++, idx++) {
682 var c = bandTypes[idx] === ICStream.INTENSITY_BT ? 1 : -1;
684 c *= element.ms_used[idx] ? -1 : 1;
686 var scale = c * scaleFactors[idx];
697 idx += end - i;
716 var groupOff = 0, idx = 0;
718 for (var i = 0; i < maxSFB; i++, idx++) {
719 … if (element.ms_used[idx] && sfbCBl[idx] < ICStream.NOISE_BT && sfbCBr[idx] < ICStream.NOISE_BT) {
2755 idx = 0,
2777 bandTypes[idx] = bandType;
2778 sectEnd[idx++] = end;
2788 idx = 0,
2796 var runEnd = sectEnd[idx];
2798 switch (bandTypes[idx]) {
2800 for (; i < runEnd; i++, idx++) {
2801 scaleFactors[idx] = 0;
2807 for(; i < runEnd; i++, idx++) {
2810 scaleFactors[idx] = tables.SCALEFACTOR_TABLE[-tmp + SF_OFFSET];
2815 for(; i < runEnd; i++, idx++) {
2823 scaleFactors[idx] = -tables.SCALEFACTOR_TABLE[tmp + SF_OFFSET];
2828 for(; i < runEnd; i++, idx++) {
2833 … scaleFactors[idx] = tables.SCALEFACTOR_TABLE[offset[0] - 100 + SF_OFFSET];
2879 var groupOff = 0, idx = 0;
2883 for (var sfb = 0; sfb < maxSFB; sfb++, idx++) {
2884 var hcb = bandTypes[idx],
2905 var scale = scaleFactors[idx] / Math.sqrt(energy);
2919 data[off + k + j] *= scaleFactors[idx];