Mercurial > libavcodec.hg
comparison aacsbr.c @ 11677:ed3d232c9d31 libavcodec
10l: The SBR refactor requires the use of 2 independent output X buffers.
author | alexc |
---|---|
date | Mon, 03 May 2010 19:21:35 +0000 |
parents | f838fa3eefee |
children | 9103a9b3573a |
comparison
equal
deleted
inserted
replaced
11676:ceec2fb08b8e | 11677:ed3d232c9d31 |
---|---|
1748 sbr_hf_assemble(sbr->data[ch].Y, sbr->X_high, sbr, &sbr->data[ch], | 1748 sbr_hf_assemble(sbr->data[ch].Y, sbr->X_high, sbr, &sbr->data[ch], |
1749 sbr->data[ch].e_a); | 1749 sbr->data[ch].e_a); |
1750 } | 1750 } |
1751 | 1751 |
1752 /* synthesis */ | 1752 /* synthesis */ |
1753 sbr_x_gen(sbr, sbr->X, sbr->X_low, sbr->data[ch].Y, ch); | 1753 sbr_x_gen(sbr, sbr->X[ch], sbr->X_low, sbr->data[ch].Y, ch); |
1754 } | 1754 } |
1755 sbr_qmf_synthesis(&ac->dsp, &sbr->mdct, L, sbr->X, sbr->qmf_filter_scratch, | 1755 sbr_qmf_synthesis(&ac->dsp, &sbr->mdct, L, sbr->X[0], sbr->qmf_filter_scratch, |
1756 sbr->data[0].synthesis_filterbank_samples, | 1756 sbr->data[0].synthesis_filterbank_samples, |
1757 &sbr->data[0].synthesis_filterbank_samples_offset, | 1757 &sbr->data[0].synthesis_filterbank_samples_offset, |
1758 downsampled, | 1758 downsampled, |
1759 ac->add_bias, -1024 * ac->sf_scale); | 1759 ac->add_bias, -1024 * ac->sf_scale); |
1760 if (nch == 2) | 1760 if (nch == 2) |
1761 sbr_qmf_synthesis(&ac->dsp, &sbr->mdct, R, sbr->X, sbr->qmf_filter_scratch, | 1761 sbr_qmf_synthesis(&ac->dsp, &sbr->mdct, R, sbr->X[1], sbr->qmf_filter_scratch, |
1762 sbr->data[1].synthesis_filterbank_samples, | 1762 sbr->data[1].synthesis_filterbank_samples, |
1763 &sbr->data[1].synthesis_filterbank_samples_offset, | 1763 &sbr->data[1].synthesis_filterbank_samples_offset, |
1764 downsampled, | 1764 downsampled, |
1765 ac->add_bias, -1024 * ac->sf_scale); | 1765 ac->add_bias, -1024 * ac->sf_scale); |
1766 } | 1766 } |