From ef5089a32918787867b146abf2d71be7445a162e Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Sun, 5 Nov 2023 18:50:15 +0100 Subject: [PATCH] Intercept user-passed format and pass it to LinearLight in ComplexScaler --- vskernels/kernels/complex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vskernels/kernels/complex.py b/vskernels/kernels/complex.py index 2ef4287..d81e155 100644 --- a/vskernels/kernels/complex.py +++ b/vskernels/kernels/complex.py @@ -57,7 +57,7 @@ def func( if not linear and not has_custom_op: return operation(clip, width, height, shift, **kwargs) - with LinearLight(clip, linear, sigmoid, self) as ll: + with LinearLight(clip, linear, sigmoid, self, kwargs.pop('format', None)) as ll: ll.linear = operation(ll.linear, width, height, shift, **kwargs) return ll.out