Skip to content

Commit

Permalink
Ensure package never fetches VSCore at import and holds a reference t…
Browse files Browse the repository at this point in the history
…o it
  • Loading branch information
Setsugennoao committed Jun 17, 2023
1 parent 69edfcc commit 9ceb397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion vsaa/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _transpose(before: bool, is_width: int) -> None:

@dataclass(kw_only=True)
class DoubleRater(SingleRater):
merge_func: Callable[[vs.VideoNode, vs.VideoNode], vs.VideoNode] = core.std.Merge
merge_func: Callable[[vs.VideoNode, vs.VideoNode], vs.VideoNode] = core.proxied.std.Merge

def _aa(self, clip: vs.VideoNode, y: bool = True, x: bool = False, **kwargs: Any) -> vs.VideoNode:
original_field = int(self.field)
Expand Down
8 changes: 1 addition & 7 deletions vsaa/antialiasers/nnedi3.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@ class NNEDI3(_FullInterpolate, _Antialiaser):

opencl: bool | None = None

def __post_init__(self) -> None:
super().__post_init__()

if self.opencl is None:
self.opencl = hasattr(core, 'sneedif')

def is_full_interpolate_enabled(self, x: bool, y: bool) -> bool:
return not not self.opencl
return not not (hasattr(core, 'sneedif') if self.opencl is None else self.opencl)

def get_aa_args(self, clip: vs.VideoNode, **kwargs: Any) -> dict[str, Any]:
assert clip.format
Expand Down

0 comments on commit 9ceb397

Please sign in to comment.