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 commit0c091c3d7b3bb2b013acd0c8e6d9e712b29d6b8fParent: 1fd0b392 changed files +6 -0
crates/ec-aac/src/decode.rsmodified+2 -0
| @@ -582,6 +582,8 @@ impl BlockDecoder { | ||
| 582 | 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 | 587 | pub fn set_sbr_downsampled(&mut self, on: bool) { |
| 586 | 588 | if let Some(sbr) = self.sbr.as_mut() { |
| 587 | 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 | 225 | pub struct Synthesis { |
| 222 | 226 | bands: usize, |
| 223 | 227 | v: Vec<f64>, |