Skip to content

Commit

Permalink
Update downscaler defaults to account for rfactor < 1
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 committed Sep 23, 2024
1 parent 1c87700 commit 8bafd64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vsaa/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def based_aa(
aaw, aah = [(round(r * rfactor) + 1) & ~1 for r in (ss_clip.width, ss_clip.height)]

if downscaler is None:
if (aaw / func.work_clip.width).is_integer() and (aah / func.work_clip.height).is_integer():
if ((max(aaw, func.work_clip.width) / min(aaw, func.work_clip.width)).is_integer() and
(max(aah, func.work_clip.height) / min(aah, func.work_clip.height)).is_integer()):
downscaler = Box
else:
downscaler = Catrom
Expand Down

0 comments on commit 8bafd64

Please sign in to comment.