core/scale: add options support
[nihav.git] / nihav-core / src / scale / scale.rs
index fc97bd78e97230926f69255b034c60a597031c07..a0bd0cab078f9dab6d2793d45856bdee0f360bb0 100644 (file)
@@ -100,7 +100,7 @@ macro_rules! scale_loop {
 }
 
 impl Kernel for NNResampler {
 }
 
 impl Kernel for NNResampler {
-    fn init(&mut self, in_fmt: &ScaleInfo, dest_fmt: &ScaleInfo) -> ScaleResult<NABufferType> {
+    fn init(&mut self, in_fmt: &ScaleInfo, dest_fmt: &ScaleInfo, _options: &[(String, String)]) -> ScaleResult<NABufferType> {
         let res = alloc_video_buffer(NAVideoInfo::new(dest_fmt.width, dest_fmt.height, false, in_fmt.fmt), 3);
         if res.is_err() { return Err(ScaleError::AllocError); }
         Ok(res.unwrap())
         let res = alloc_video_buffer(NAVideoInfo::new(dest_fmt.width, dest_fmt.height, false, in_fmt.fmt), 3);
         if res.is_err() { return Err(ScaleError::AllocError); }
         Ok(res.unwrap())