use std::ptr;
use std::f32::consts;
-use formats::*;
-use frame::*;
+use crate::formats::*;
+use crate::frame::*;
use super::super::*;
-use io::bitreader::*;
-use io::codebook::*;
-use dsp::fft::*;
-use dsp::window::*;
+use crate::io::bitreader::*;
+use crate::io::codebook::*;
+use crate::dsp::fft::*;
+use crate::dsp::window::*;
const BANDS: usize = 32;
const COEFFS: usize = 256;
self.ba.band_width[i] = 0;
}
}
-
+
for i in 0..BANDS-1 {
if self.ba.band_width[i] > 0 {
self.ba.band_present[i] = br.read_bool()?;
ch_data.cw[i] = quant[val - 1] * ch_data.adj_floor[band];
} else {
ch_data.cw[i] = -quant[max - val - 1] * ch_data.adj_floor[band];
- }
+ }
}
}
}
#[cfg(test)]
mod test {
- use test::dec_video::*;
+ use crate::test::dec_video::*;
#[test]
fn test_imc() {
// let file = "assets/neal73_saber.avi";