From 80372610ef8f8a64ce3c22c4f61857f5029217d6 Mon Sep 17 00:00:00 2001 From: LightArrowsEXE Date: Tue, 3 Sep 2024 13:39:23 +0200 Subject: [PATCH] Eedi3: Add opt=3 if `mclip` --- vsaa/antialiasers/eedi3.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vsaa/antialiasers/eedi3.py b/vsaa/antialiasers/eedi3.py index d4139d7..ecdba45 100644 --- a/vsaa/antialiasers/eedi3.py +++ b/vsaa/antialiasers/eedi3.py @@ -29,6 +29,7 @@ class EEDI3(_Antialiaser): vthresh1: float = 64.0 vthresh2: float = 4.0 + opt: int = 0 device: int = -1 opencl: bool = dc_field(default=False, kw_only=True) @@ -59,6 +60,10 @@ def get_aa_args(self, clip: vs.VideoNode, **kwargs: Any) -> dict[str, Any]: if self.opencl: args |= dict(device=self.device) + # opt=3 appears to always give reliable speed boosts if mclip is used. + if self.mclip is not None or kwargs.get('mclip'): + args |= dict(opt=self.opt or kwargs.get('opt') or 3) + return args def interpolate(self, clip: vs.VideoNode, double_y: bool, **kwargs: Any) -> vs.VideoNode: