#[cfg(feature="decoder_vmd")]
pub mod vmd;
#[cfg(feature="decoder_vx")]
+#[allow(clippy::erasing_op)]
+#[allow(clippy::identity_op)]
pub mod vx;
const GAME_CODECS: &[DecoderInfo] = &[
}
fn apply_lpc(dst: &mut [i32], src: &[i32], hist: &mut [i32], filt: &[i32; 8]) {
- let mut hidx = 0;
- for (out, src) in dst.iter_mut().zip(src.iter()) {
+ for (hidx, (out, src)) in dst.iter_mut().zip(src.iter()).enumerate() {
let mut sum = *src << 14;
for i in 0..8 {
sum += hist[(hidx + i) & 7] * filt[i];
let samp = sum >> 14;
*out = samp;
hist[hidx & 7] = samp;
- hidx += 1;
}
}
impl<'a> DemuxCore<'a> for VXDemuxer<'a> {
#[allow(unused_variables)]
+ #[allow(clippy::cast_lossless)]
fn open(&mut self, strmgr: &mut StreamManager, _seek_index: &mut SeekIndex) -> DemuxerResult<()> {
let src = &mut self.src;