Skip to content

Commit

Permalink
Merge pull request #21
Browse files Browse the repository at this point in the history
Merge branch AmusementClub/mod
  • Loading branch information
Infiziert90 authored Jun 23, 2022
2 parents 86e8467 + 013199a commit 7b66296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions getnative/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __repr__(self):
_DefineScaler("bicubic", b=1 / 3, c=1 / 3),
_DefineScaler("bicubic", b=.5, c=0),
_DefineScaler("bicubic", b=0, c=.5),
_DefineScaler("bicubic", b=0, c=.75),
_DefineScaler("bicubic", b=1, c=0),
_DefineScaler("bicubic", b=0, c=1),
_DefineScaler("bicubic", b=.2, c=.5),
Expand Down
8 changes: 4 additions & 4 deletions getnative/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ def get_source_filter(core, imwri, args):
if ext in {".py", ".pyw", ".vpy"}:
print("Using custom VapourSynth script as a source. This may cause garbage results. Only do this if you know what you are doing.")
return vpy_source_filter
source_filter = get_attr(core, 'ffms2.Source')
if source_filter:
print("Using ffms2 as source filter")
return lambda input_file: source_filter(input_file, alpha=False)
source_filter = get_attr(core, 'lsmas.LWLibavSource')
if source_filter:
print("Using lsmas.LWLibavSource as source filter")
return source_filter
source_filter = get_attr(core, 'ffms2.Source')
if source_filter:
print("Using ffms2 as source filter")
return lambda input_file: source_filter(input_file, alpha=False)
source_filter = get_attr(core, 'lsmas.LSMASHVideoSource')
if source_filter:
print("Using lsmas.LSMASHVideoSource as source filter")
Expand Down

0 comments on commit 7b66296

Please sign in to comment.