Skip to content

Commit

Permalink
presets: new submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Dec 5, 2023
1 parent 08ed731 commit 09a8c2e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lvsfunc/__init__.py
Expand Up @@ -9,11 +9,12 @@

# flake8: noqa

from . import comparison, deblock, exceptions, grain, hdcam, misc, util
from . import comparison, deblock, exceptions, grain, hdcam, misc, presets, util
from .comparison import *
from .deblock import *
from .exceptions import *
from .grain import *
from .hdcam import *
from .misc import *
from .presets import *
from .util import *
17 changes: 17 additions & 0 deletions lvsfunc/presets.py
@@ -0,0 +1,17 @@
from vsdenoise import MotionMode, MVToolsPreset, Prefilter, SADMode, SearchMode

__all__: list[str] = [
"MVLightPreset",
]


MVLightPreset = MVToolsPreset(
block_size=16, overlap=8, range_conversion=3.5,
sad_mode=(SADMode.ADAPTIVE_SPATIAL_MIXED, SADMode.ADAPTIVE_SATD_MIXED),
search=SearchMode.DIAMOND, motion=MotionMode.HIGH_SAD,
prefilter=Prefilter.DFTTEST(
slocation=[(0.0, 1.0), (0.4, 3.2), (0.45, 40.0), (1.0, 48.0)],
ssystem=1, planes=0
)
)
"""Light's MVTools preset."""

0 comments on commit 09a8c2e

Please sign in to comment.