comparison aacsbr.c @ 11668:db33423d99ac libavcodec

Reindent
author alexc
date Fri, 30 Apr 2010 21:43:29 +0000
parents 6818ea5a25a2
children 53584d5f86b8
comparison
equal deleted inserted replaced
11667:6818ea5a25a2 11668:db33423d99ac
1718 1718
1719 if (sbr->start) { 1719 if (sbr->start) {
1720 sbr_dequant(sbr, id_aac); 1720 sbr_dequant(sbr, id_aac);
1721 } 1721 }
1722 for (ch = 0; ch < nch; ch++) { 1722 for (ch = 0; ch < nch; ch++) {
1723 /* decode channel */ 1723 /* decode channel */
1724 sbr_qmf_analysis(&ac->dsp, &sbr->rdft, ch ? R : L, sbr->data[ch].analysis_filterbank_samples, 1724 sbr_qmf_analysis(&ac->dsp, &sbr->rdft, ch ? R : L, sbr->data[ch].analysis_filterbank_samples,
1725 (float*)sbr->qmf_filter_scratch, 1725 (float*)sbr->qmf_filter_scratch,
1726 sbr->data[ch].W, 1/(-1024 * ac->sf_scale)); 1726 sbr->data[ch].W, 1/(-1024 * ac->sf_scale));
1727 sbr_lf_gen(ac, sbr, sbr->X_low, sbr->data[ch].W); 1727 sbr_lf_gen(ac, sbr, sbr->X_low, sbr->data[ch].W);
1728 if (sbr->start) { 1728 if (sbr->start) {
1729 sbr_hf_inverse_filter(sbr->alpha0, sbr->alpha1, sbr->X_low, sbr->k[0]); 1729 sbr_hf_inverse_filter(sbr->alpha0, sbr->alpha1, sbr->X_low, sbr->k[0]);
1730 sbr_chirp(sbr, &sbr->data[ch]); 1730 sbr_chirp(sbr, &sbr->data[ch]);
1731 sbr_hf_gen(ac, sbr, sbr->X_high, sbr->X_low, sbr->alpha0, sbr->alpha1, 1731 sbr_hf_gen(ac, sbr, sbr->X_high, sbr->X_low, sbr->alpha0, sbr->alpha1,
1732 sbr->data[ch].bw_array, sbr->data[ch].t_env, 1732 sbr->data[ch].bw_array, sbr->data[ch].t_env,
1733 sbr->data[ch].bs_num_env); 1733 sbr->data[ch].bs_num_env);
1734 1734
1735 // hf_adj 1735 // hf_adj
1736 sbr_mapping(ac, sbr, &sbr->data[ch], sbr->data[ch].e_a); 1736 sbr_mapping(ac, sbr, &sbr->data[ch], sbr->data[ch].e_a);
1737 sbr_env_estimate(sbr->e_curr, sbr->X_high, sbr, &sbr->data[ch]); 1737 sbr_env_estimate(sbr->e_curr, sbr->X_high, sbr, &sbr->data[ch]);
1738 sbr_gain_calc(ac, sbr, &sbr->data[ch], sbr->data[ch].e_a); 1738 sbr_gain_calc(ac, sbr, &sbr->data[ch], sbr->data[ch].e_a);
1739 sbr_hf_assemble(sbr->data[ch].Y, sbr->X_high, sbr, &sbr->data[ch], 1739 sbr_hf_assemble(sbr->data[ch].Y, sbr->X_high, sbr, &sbr->data[ch],
1740 sbr->data[ch].e_a); 1740 sbr->data[ch].e_a);
1741 } 1741 }
1742 1742
1743 /* synthesis */ 1743 /* synthesis */
1744 sbr_x_gen(sbr, sbr->X, sbr->X_low, sbr->data[ch].Y, ch); 1744 sbr_x_gen(sbr, sbr->X, sbr->X_low, sbr->data[ch].Y, ch);
1745 } 1745 }
1746 sbr_qmf_synthesis(&ac->dsp, &sbr->mdct, L, sbr->X, sbr->qmf_filter_scratch, 1746 sbr_qmf_synthesis(&ac->dsp, &sbr->mdct, L, sbr->X, sbr->qmf_filter_scratch,
1747 sbr->data[0].synthesis_filterbank_samples, 1747 sbr->data[0].synthesis_filterbank_samples,
1748 &sbr->data[0].synthesis_filterbank_samples_offset, 1748 &sbr->data[0].synthesis_filterbank_samples_offset,
1749 downsampled, 1749 downsampled,