Lines Matching refs:sb

4546     for (var sb = 0; sb < bound; sb++) {
4552 allocation[ch][sb] = nb ? nb + 1 : 0;
4556 for (var sb = bound; sb < 32; sb++) {
4561 allocation[0][sb] =
4562 allocation[1][sb] = nb ? nb + 1 : 0;
4567 for (var sb = 0; sb < 32; sb++) {
4569 if (allocation[ch][sb]) {
4570 scalefactor[ch][sb] = stream.read(6);
4583 for (var sb = 0; sb < bound; sb++) {
4585 var nb = allocation[ch][sb];
4586 …frame.sbsample[ch][s][sb] = nb ? this.sample(stream, nb) * tables.SF_TABLE[scalefactor[ch][sb]] : …
4590 for (var sb = bound; sb < 32; sb++) {
4591 var nb = allocation[0][sb];
4596 frame.sbsample[ch][s][sb] = sample * tables.SF_TABLE[scalefactor[ch][sb]];
4600 frame.sbsample[ch][s][sb] = 0;
4760 for (var sb = 0; sb < bound; sb++) {
4761 var nbal = BITALLOC[offsets[sb]].nbal;
4764 allocation[ch][sb] = stream.read(nbal);
4767 for (var sb = bound; sb < sblimit; sb++) {
4768 var nbal = BITALLOC[offsets[sb]].nbal;
4770 allocation[0][sb] =
4771 allocation[1][sb] = stream.read(nbal);
4776 for (var sb = 0; sb < sblimit; sb++) {
4778 if (allocation[ch][sb])
4779 scfsi[ch][sb] = stream.read(2);
4789 for (var sb = 0; sb < sblimit; sb++) {
4791 if (allocation[ch][sb]) {
4792 scalefactor[ch][sb][0] = stream.read(6);
4794 switch (scfsi[ch][sb]) {
4796 scalefactor[ch][sb][2] =
4797 scalefactor[ch][sb][1] = scalefactor[ch][sb][0];
4801 scalefactor[ch][sb][1] = stream.read(6);
4806 scalefactor[ch][sb][2] = stream.read(6);
4809 if (scfsi[ch][sb] & 1)
4810 scalefactor[ch][sb][1] = scalefactor[ch][sb][scfsi[ch][sb] - 1];
4824 for (var sb = 0; sb < bound; sb++) {
4826 if (index = allocation[ch][sb]) {
4827 index = OFFSETS[BITALLOC[offsets[sb]].offset][index - 1];
4830 var scale = tables.SF_TABLE[scalefactor[ch][sb][gr >> 2]];
4832 frame.sbsample[ch][3 * gr + s][sb] = this.samples[s] * scale;
4836 frame.sbsample[ch][3 * gr + s][sb] = 0;
4843 for (var sb = bound; sb < sblimit; sb++) {
4844 if (index = allocation[0][sb]) {
4845 index = OFFSETS[BITALLOC[offsets[sb]].offset][index - 1];
4849 var scale = tables.SF_TABLE[scalefactor[ch][sb][gr >> 2]];
4851 frame.sbsample[ch][3 * gr + s][sb] = this.samples[s] * scale;
4857 frame.sbsample[ch][3 * gr + s][sb] = 0;
4866 for (var sb = sblimit; sb < 32; sb++) {
4867 frame.sbsample[ch][3 * gr + s][sb] = 0;
5206 var sb, l = 0, i, sblimit;
5232 for (var sb = 0; sb < 2; ++sb, l += 18) {
5234 this.overlap(output, frame.overlap[ch][sb], sample, sb);
5238 for (var sb = 0; sb < 2; ++sb, l += 18) {
5240 this.overlap(output, frame.overlap[ch][sb], sample, sb);
5256 for (var sb = 2; sb < sblimit; ++sb, l += 18) {
5258 this.overlap(output, frame.overlap[ch][sb], sample, sb);
5260 if (sb & 1)
5261 this.freqinver(sample, sb);
5265 for (var sb = 2; sb < sblimit; ++sb, l += 18) {
5267 this.overlap(output, frame.overlap[ch][sb], sample, sb);
5269 if (sb & 1)
5270 this.freqinver(sample, sb);
5275 for (var sb = sblimit; sb < 32; ++sb) {
5276 this.overlap_z(frame.overlap[ch][sb], sample, sb);
5278 if (sb & 1)
5279 this.freqinver(sample, sb);
6066 Layer3.prototype.overlap = function (output, overlap, sample, sb) { argument
6068 sample[i][sb] = output[i] + overlap[i];
6073 Layer3.prototype.freqinver = function (sample, sb) { argument
6075 sample[i][sb] = -sample[i][sb];
6078 Layer3.prototype.overlap_z = function (overlap, sample, sb) { argument
6080 sample[i][sb] = overlap[i];
6093 var sb = 0;
6095 var sb = 2;
6103 sbw[w] = sb;
6110 for (var l = 18 * sb; l < 576; ++l) {
6135 var len = (576 - 18 * sb);
6137 xr[18 * sb + i] = tmp2[sb + i];
7204 for (var sb = 1; sb < 16; ++sb) {