X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-core%2Fsrc%2Fscale%2Fscale.rs;h=a0bd0cab078f9dab6d2793d45856bdee0f360bb0;hp=fc97bd78e97230926f69255b034c60a597031c07;hb=25e0bf9a974b1bb5a8f8b38e23b4a7e91db3eab0;hpb=d0d21988dc679ac5d87968da01a55ec3dc375fee diff --git a/nihav-core/src/scale/scale.rs b/nihav-core/src/scale/scale.rs index fc97bd7..a0bd0ca 100644 --- a/nihav-core/src/scale/scale.rs +++ b/nihav-core/src/scale/scale.rs @@ -100,7 +100,7 @@ macro_rules! scale_loop { } impl Kernel for NNResampler { - fn init(&mut self, in_fmt: &ScaleInfo, dest_fmt: &ScaleInfo) -> ScaleResult { + fn init(&mut self, in_fmt: &ScaleInfo, dest_fmt: &ScaleInfo, _options: &[(String, String)]) -> ScaleResult { 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())