Skip to content

Commit

Permalink
fix adg_mask
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 committed Dec 11, 2024
1 parent 2873c93 commit 64f9451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsmasktools/spat_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def adg_mask(

assert check_variable(clip, func)

use_complex = complexpr_available and clip.format.bits_per_sample > 16
use_complex = complexpr_available and clip.format.bits_per_sample > 16 or relative

luma, prop = plane(clip, 0), 'P' if use_complex else None
y, y_inv = luma.std.PlaneStats(prop=prop), luma.std.Invert().std.PlaneStats(prop=prop)
Expand Down

0 comments on commit 64f9451

Please sign in to comment.