Home | History | Annotate | Download | only in src

Lines Matching refs:sfb

233     int32 sfb;
310 sfbTemp = i; /* from that (long) sfb on we have intensity stereo */
320 /* 2. long blocks from intensity border up to sfb band 6: intensity */
323 for (sfb = sfbTemp; sfb < 6; sfb++)
325 sfbStart = mp3_sfBandIndex[sfreq].l[sfb]; /* = Start in 0 ... 575 */
326 sfbNo = mp3_sfBandIndex[sfreq].l[sfb+1] - mp3_sfBandIndex[sfreq].l[sfb]; /* No of lines to process */
328 if ((uint32)(scalefac_R->l[sfb]) != scalefac_IIP_buffer[sfb])
330 pvmp3_st_intensity_ver2(xr, xl, io, scalefac_R->l[sfb], sfbStart, sfbNo);
338 /* 3. now process all sfb with short blocks (3...12), all in intensity mode */
343 * for all sfb in intensity mode, but only
346 /* to do this for all sfb we have to get information for last scale factor band:
347 * here we clearly have more than one sfb in intensity mode,
351 scalefac_IIP_buffer[36 + j] = scalefac_IIP_buffer[33 + j]; /* legal/illegal in sfb 12 same as in sfb 11 */
353 for (sfb = 3; sfb < 13; sfb++)
355 sfbNo = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; /* No of lines to process */
356 sfbStart = 3 * mp3_sfBandIndex[sfreq].s[sfb] + j * sfbNo;
358 if ((uint32)(scalefac_R->s[j][sfb]) != scalefac_IIP_buffer[3*sfb + j])
360 pvmp3_st_intensity_ver2(xr, xl, io, scalefac_R->s[j][sfb], sfbStart, sfbNo);
381 for (sfb = 12; sfb >= 3; sfb--)
383 int32 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb];
385 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1;
391 sfbcnt = sfb;
392 sfb = -10;
406 sfbTemp = sfbcnt; /* from this (short) sfb on we have intensity mode */
407 /* can have values between 3 (all short sfb in intensity) */
408 /* and 13 (no short sfb in intensity mode) */
410 /* 3. from sfbTemp to last sfb calculate is_ratio values: */
412 /* for all sfb in intensity mode, but only */
415 /* to do this for all sfb we have to get information for last scale factor band: */
417 /* more than one sfb in intensity mode,
422 scalefac_IIP_buffer[36 + j] = scalefac_IIP_buffer[33 + j]; /* legal/illegal in sfb 12 same as in sfb 11 */
424 else if (sfbTemp == sfb)
425 /* only sfb 12 in intensity mode, use factors corresponding to is_pos[12] == 0 */
430 /* if sfbTemp > sfb (no sfb in intensity mode): do nothing */
433 /* 4. do normal stereo or MS stereo from sfb 3 to < sfbTemp: */
434 for (sfb = 3; sfb < sfbTemp; sfb++)
436 sfbNo = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb];
437 sfbStart = 3 * mp3_sfBandIndex[sfreq].s[sfb
445 /* 5. now intensity stereo processing of the remaining sfb's: */
447 for (sfb = sfbTemp; sfb < 13; sfb++)
449 sfbNo = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; /* No of lines to process */
450 sfbStart = 3 * mp3_sfBandIndex[sfreq].s[sfb] + j * sfbNo;
451 if ((uint32)(scalefac_R->s[j][sfb]) != scalefac_IIP_buffer[3*sfb + j])
453 pvmp3_st_intensity_ver2(xr, xl, io, scalefac_R->s[j][sfb], sfbStart, sfbNo);
464 /* long blocks 0 up to sfb band 6: no intensity */
483 for (sfb = 12; sfb >= 0; sfb--)
485 int32 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb];
486 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1;
492 sfbcnt = sfb;
493 sfb = -10;
504 sfbTemp = sfbcnt; /* from this (short) sfb on we have intensity mode */
505 /* can have values between 3 (all short sfb in intensity) */
506 /* and 13 (no short sfb in intensity mode) */
509 for all sfb in intensity mode, but only
512 /* to do this for all sfb we have to get information for last scale factor band: */
514 /* more than one sfb in intensity mode,
519 scalefac_IIP_buffer[36 + j] = scalefac_IIP_buffer[33 + j]; /* legal/illegal in sfb 12 same as in sfb 11 */
522 /* only sfb 12 in intensity mode, use factors corresponding to is_pos[12] == 0 */
527 /* if sfbTemp > sfb (no sfb in intensity mode): do nothing */
531 /* first process lower sfb's not in intensity mode */
532 for (sfb = 0; sfb < sfbTemp; sfb++)
534 sfbNo = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb];
535 sfbStart = 3 * mp3_sfBandIndex[sfreq].s[sfb] + j * sfbNo;
543 /* now intensity stereo processing of the remaining sfb's: */
544 for (sfb = sfbTemp; sfb < 13; sfb++)
546 sfbNo = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; /* No of lines to process */
547 sfbStart = 3 * mp3_sfBandIndex[sfreq].s[sfb] + j * sfbNo;
549 if ((uint32)(scalefac_R->s[j][sfb]) != scalefac_IIP_buffer[3*sfb + j])
551 pvmp3_st_intensity_ver2(xr, xl, io, scalefac_R->s[j][sfb], sfbStart, sfbNo);
618 /* all xr[1][][] are 0: set IS bound sfb to 0 */
623 /* xr[1][0][0] is unequal 0 and all others are 0: set IS bound sfb to 1 */
628 sfbTemp = i; /* from this (long) sfb on we have intensity mode */
629 /* can have values between 0 (all long sfb in intensity) */
630 /* and 22 (no long sfb in intensity mode) */
633 for all sfb in intensity mode, but only if they
636 /* to do this for all sfb we have to get information for last scale factor band: */
638 /* more than one sfb in intensity mode, */
642 scalefac_IIP_buffer[21] = scalefac_IIP_buffer[20]; /* legal/illegal in sfb 21 same as in sfb 20 */
645 /* only sfb 21 in intensity mode, is_pos[21] = 0 */
650 /* if sfbTemp > 21 (no sfb in intensity mode): do nothing */
654 /* first process lower sfb's not in intensity mode */
664 /* now intensity stereo processing of the remaining sfb's: */
665 for (sfb = sfbTemp; sfb < 22; sfb++)
667 sfbNo = mp3_sfBandIndex[sfreq].l[sfb+1] - mp3_sfBandIndex[sfreq].l[sfb]; /* number of lines to process */
668 sfbStart = mp3_sfBandIndex[sfreq].l[sfb]; /* start of sfb */
670 if ((uint32)(scalefac_R->l[sfb]) != scalefac_IIP_buffer[sfb]) /* "legal" position ? */
672 pvmp3_st_intensity_ver2(xr, xl, io, scalefac_R->l[sfb], sfbStart, sfbNo);
679 } /* for (sfb = sfbTemp; sfb < 22; sfb++) */