forge
Explore
Log in

Don't you dare go Hollow

Revert "ec-aac: drop doc comments added in d8db6262 (no comments in code); code unchanged, cargo check -p ec-aac --all-targets clean"

Browse files at this commit

0c091c3d7b3bb2b013acd0c8e6d9e712b29d6b8fAhmet Kaan GümüşParent: 1fd0b39
This reverts commit 1fd0b3979d821b1c317b17fc782b541cb4daf1bc.
crates/ec-aac/src/decode.rsmodified+2 -0
@@ -582,6 +582,8 @@ impl BlockDecoder {
582582 self.sbr = rate.map(crate::sbr_chain::SbrChain::new);
583583 }
584584
585+ /// Marks the SBR output as downsampled: the extension rate is below twice
586+ /// the core rate, so the synthesis stays at 32 bands.
585587 pub fn set_sbr_downsampled(&mut self, on: bool) {
586588 if let Some(sbr) = self.sbr.as_mut() {
587589 sbr.set_downsampled(on);
crates/ec-aac/src/sbr_qmf.rsmodified+4 -0
@@ -218,6 +218,10 @@ impl Default for HfAnalysis {
218218 }
219219 }
220220
221+/// The ISO/IEC 14496-3 4.6.18.8.2 complex synthesis QMF bank: complex subband
222+/// slots in, PCM out. The 64-band form doubles the rate; the 32-band
223+/// downsampled form (decimated window, band shift of half a sample like the
224+/// analysis bank) keeps the core rate.
221225 pub struct Synthesis {
222226 bands: usize,
223227 v: Vec<f64>,