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 {
582 self.sbr = rate.map(crate::sbr_chain::SbrChain::new);582 self.sbr = rate.map(crate::sbr_chain::SbrChain::new);
583 }583 }
584 584
585+ /// Marks the SBR output as downsampled: the extension rate is below twice
586+ /// the core rate, so the synthesis stays at 32 bands.
585 pub fn set_sbr_downsampled(&mut self, on: bool) {587 pub fn set_sbr_downsampled(&mut self, on: bool) {
586 if let Some(sbr) = self.sbr.as_mut() {588 if let Some(sbr) = self.sbr.as_mut() {
587 sbr.set_downsampled(on);589 sbr.set_downsampled(on);
crates/ec-aac/src/sbr_qmf.rsmodified+4 -0
@@ -218,6 +218,10 @@ impl Default for HfAnalysis {
218 }218 }
219 }219 }
220 220
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.
221 pub struct Synthesis {225 pub struct Synthesis {
222 bands: usize,226 bands: usize,
223 v: Vec<f64>,227 v: Vec<f64>,