X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-realmedia%2Fsrc%2Fcodecs%2Frv60dsp.rs;h=3a90123f44d9571a24acc747e43d530385bfdac3;hb=a15d97ad1e674adeebbc73f36aed9cf826d4af31;hp=760777a4e31d0a8178897abc8d5495b5649b3662;hpb=fa57381ec2a3b8c441aa1388492b9ca037cfcf78;p=nihav.git diff --git a/nihav-realmedia/src/codecs/rv60dsp.rs b/nihav-realmedia/src/codecs/rv60dsp.rs index 760777a..3a90123 100644 --- a/nihav-realmedia/src/codecs/rv60dsp.rs +++ b/nihav-realmedia/src/codecs/rv60dsp.rs @@ -58,7 +58,7 @@ macro_rules! filter_row { }); } -#[allow(clippy::cyclomatic_complexity)] +#[allow(clippy::cognitive_complexity)] fn luma_mc(dst: &mut [u8], mut didx: usize, dstride: usize, src: &[u8], mut sidx: usize, sstride: usize, w: usize, h: usize, cx: usize, cy: usize) { if (cx == 0) && (cy == 0) { for _ in 0..h { @@ -543,7 +543,7 @@ impl RV60DSP { filter_luma_edge(frame.data, offset, 1, stride, mode_l, mode_r, lim1, lim2); } if ((str_l | str_r) >= 2) && deblock_chroma { - for comp in 1..2 { + for comp in 1..3 { let stride = frame.stride[comp]; let offset = frame.offset[comp] + (xpos >> 1) + (ypos >> 1) * stride; filter_chroma_edge(frame.data, offset, 1, stride, mode_l, mode_r, lim1, lim2); @@ -568,7 +568,7 @@ impl RV60DSP { filter_luma_edge(frame.data, offset, stride, 1, mode_t, mode_d, lim1, lim2); } if ((str_t | str_d) >= 2) && deblock_chroma { - for comp in 1..2 { + for comp in 1..3 { let stride = frame.stride[comp]; let offset = frame.offset[comp] + (xpos >> 1) + (ypos >> 1) * stride; filter_chroma_edge(frame.data, offset, stride, 1, mode_t, mode_d, lim1, lim2); @@ -784,7 +784,7 @@ impl IntraPredContext { sum += diff; } } - #[allow(clippy::cyclomatic_complexity)] + #[allow(clippy::cognitive_complexity)] pub fn pred_angle(&self, dst: &mut [u8], mut doff: usize, dstride: usize, size: usize, angle: usize, filter: bool) { let mut filtered1: [u8; 96] = [0; 96]; let mut filtered2: [u8; 96] = [0; 96];