X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fcodecs%2Fblockdsp.rs;h=3d39a9e37783449d333a6e061cfa17a08f4e1520;hb=5dd924ab75c9a695b34a754b718af16a694fb452;hp=2f02b8468682d7b035145bdfb6c120617b73475d;hpb=cf64af13518ee281beec24f32aa0e36317260b82;p=nihav.git diff --git a/src/codecs/blockdsp.rs b/src/codecs/blockdsp.rs index 2f02b84..3d39a9e 100644 --- a/src/codecs/blockdsp.rs +++ b/src/codecs/blockdsp.rs @@ -9,7 +9,7 @@ pub fn put_blocks(buf: &mut NAVideoBuffer, xpos: usize, ypos: usize, blk: &[ let mut idxv = buf.get_offset(2) + xpos * 8 + ypos * 8 * stridev; let mut data = buf.get_data_mut(); - let mut framebuf: &mut [u8] = data.as_mut_slice(); + let framebuf: &mut [u8] = data.as_mut_slice(); for j in 0..8 { for k in 0..8 { @@ -63,7 +63,7 @@ pub fn add_blocks(buf: &mut NAVideoBuffer, xpos: usize, ypos: usize, blk: &[ let mut idxv = buf.get_offset(2) + xpos * 8 + ypos * 8 * stridev; let mut data = buf.get_data_mut(); - let mut framebuf: &mut [u8] = data.as_mut_slice(); + let framebuf: &mut [u8] = data.as_mut_slice(); for j in 0..8 { for k in 0..8 { @@ -147,7 +147,7 @@ pub fn copy_blocks(dst: &mut NAVideoBuffer, src: &NAVideoBuffer, ebuf.resize((((pre + post) as usize) + bh) * ebuf_stride, 0); for comp in 0..3 { - let dstride = src.get_stride(comp); + let dstride = dst.get_stride(comp); let doff = dst.get_offset(comp); let mut ddta = dst.get_data_mut(); let mut dbuf: &mut [u8] = ddta.as_mut_slice(); @@ -170,7 +170,7 @@ pub fn copy_blocks(dst: &mut NAVideoBuffer, src: &NAVideoBuffer, let soff = src.get_offset(comp); let sdta = src.get_data(); let sbuf: &[u8] = sdta.as_slice(); - let dstride = src.get_stride(comp); + let dstride = dst.get_stride(comp); let doff = dst.get_offset(comp); let mut ddta = dst.get_data_mut(); let mut dbuf: &mut [u8] = ddta.as_mut_slice();