X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Fscale%2Fscale.rs;h=a0bd0cab078f9dab6d2793d45856bdee0f360bb0;hb=acabf1634bd688a55af95b93217e12b55c30b18a;hp=fc97bd78e97230926f69255b034c60a597031c07;hpb=b7c882c1ce6f86c07c2340751200e3a060942826;p=nihav.git 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())