aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-11-03 18:27:58 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-11-03 18:27:58 +0100
commit70d30944dffff71a2b6fed6f8143c4ef2aecea3c (patch)
tree9fb1fa8c958fb2146bb5cbb3f824bb540894beda
parent561d0f7901f186b779e6fdaf26640355319324ba (diff)
downloadnihav-70d30944dffff71a2b6fed6f8143c4ef2aecea3c.tar.gz
rv6: edge emulation should align to 16x16 luma blocks
Reported by Peter Ross
-rw-r--r--nihav-realmedia/src/codecs/rv60dsp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/nihav-realmedia/src/codecs/rv60dsp.rs b/nihav-realmedia/src/codecs/rv60dsp.rs
index 3a90123..829d325 100644
--- a/nihav-realmedia/src/codecs/rv60dsp.rs
+++ b/nihav-realmedia/src/codecs/rv60dsp.rs
@@ -492,7 +492,7 @@ impl RV60DSP {
luma_mc(dst, doffset, dstride, src, soffset, sstride, w, h, cx, cy);
} else {
let mut ebuf: [u8; 70*70] = [0; 70*70];
- edge_emu(prev_frame, (x as isize) + (dx as isize) - 2, (y as isize) + (dy as isize) - 2, w+5, h+5, &mut ebuf, 70, 0, 0);
+ edge_emu(prev_frame, (x as isize) + (dx as isize) - 2, (y as isize) + (dy as isize) - 2, w+5, h+5, &mut ebuf, 70, 0, 4);
luma_mc(dst, doffset, dstride, &ebuf, 70*2 + 2, 70, w, h, cx, cy);
}
}
@@ -520,7 +520,7 @@ impl RV60DSP {
chroma_mc(frame.data, doffset, dstride, src, soffset, sstride, cw, ch, cx, cy);
} else {
let mut ebuf: [u8; 40*40] = [0; 40*40];
- edge_emu(prev_frame, ((x >> 1) as isize) + (dx as isize), ((y >> 1) as isize) + (dy as isize), cw+1, ch+1, &mut ebuf, 40, comp, 0);
+ edge_emu(prev_frame, ((x >> 1) as isize) + (dx as isize), ((y >> 1) as isize) + (dy as isize), cw+1, ch+1, &mut ebuf, 40, comp, 3);
chroma_mc(frame.data, doffset, dstride, &ebuf, 0, 40, cw, ch, cx, cy);
}
}