Skip to content

Commit

Permalink
Intercept user-passed format and pass it to LinearLight in ComplexScaler
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Nov 5, 2023
1 parent e4bdbda commit ef5089a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vskernels/kernels/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef5089a

Please sign in to comment.