X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fcodecs%2Findeo%2Fimc.rs;h=f11daa90c29a3a7b7723ca80840dd7fe81a85808;hb=4a9d2671dbfa6cab657ef52d321f153174cb6e1b;hp=5ba1575bdc03703666ba3fe653c5b4ed241445db;hpb=9037cf6b83ce135243522ec154cd7ffb35f8c816;p=nihav.git diff --git a/src/codecs/indeo/imc.rs b/src/codecs/indeo/imc.rs index 5ba1575..f11daa9 100644 --- a/src/codecs/indeo/imc.rs +++ b/src/codecs/indeo/imc.rs @@ -2,13 +2,13 @@ use std::mem; 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; @@ -570,7 +570,7 @@ impl IMCDecoder { 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()?; @@ -721,7 +721,7 @@ impl IMCDecoder { 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]; - } + } } } } @@ -1107,7 +1107,7 @@ const IMC_CB_SELECTOR: [[usize; BANDS]; 4] = [ #[cfg(test)] mod test { - use test::dec_video::*; + use crate::test::dec_video::*; #[test] fn test_imc() { // let file = "assets/neal73_saber.avi";