VP8 decoder
[nihav.git] / nihav-duck / src / codecs / vp78dsp.rs
index 04545bd40754b64c6cdd26e3f6353c04294a02a8..bc0bbb3d5b3f3ceb6d1a27327941e7000abee5e2 100644 (file)
@@ -129,6 +129,13 @@ pub trait IntraPred {
             off += stride;
         }
     }
+    fn ipred_const(dst: &mut [u8], off: usize, stride: usize, dc: u8) {
+        for row in dst[off..].chunks_mut(stride).take(Self::SIZE) {
+            for el in row[..Self::SIZE].iter_mut() {
+                *el = dc;
+            }
+        }
+    }
 }
 
 pub struct IPred16x16 {}