forge
Explore
Log in

Don't you dare go Hollow

S10: aac QmfGrid alias for analyze_plane's return type

Browse files at this commit

9cca91ea236a6caac72b0d2472d5bccaad022fe4Ahmet Kaan GümüşParent: d3338f0
crates/ec-aac/src/sbr_chain.rsmodified+3 -1
@@ -496,11 +496,13 @@ impl SbrChain {
496 }496 }
497 }497 }
498 498
499+type QmfGrid = Vec<Vec<Complex<f64>>>;
500+
499 fn analyze_plane(501 fn analyze_plane(
500 state: &mut ChannelState,502 state: &mut ChannelState,
501 plane: &[f32],503 plane: &[f32],
502 num_slots: usize,504 num_slots: usize,
503-) -> (Vec<Vec<Complex<f64>>>, Vec<[Complex<f64>; ANALYSIS_BANDS]>) {505+) -> (QmfGrid, Vec<[Complex<f64>; ANALYSIS_BANDS]>) {
504 let mut low_cur = vec![vec![Complex::ZERO; num_slots]; ANALYSIS_BANDS];506 let mut low_cur = vec![vec![Complex::ZERO; num_slots]; ANALYSIS_BANDS];
505 let mut raw = Vec::with_capacity(num_slots);507 let mut raw = Vec::with_capacity(num_slots);
506 for slot in 0..num_slots {508 for slot in 0..num_slots {