Skip to content
This repository has been archived by the owner on Feb 27, 2025. It is now read-only.

Commit

Permalink
Update mvtools presets
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 committed Jan 28, 2025
1 parent c8498f2 commit 42d3680
Showing 1 changed file with 14 additions and 71 deletions.
85 changes: 14 additions & 71 deletions vsdenoise/mvtools/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,102 +188,45 @@ def __init__(self) -> NoReturn:
raise NotImplementedError

@classproperty
def SMDE(self) -> MVToolsPreset:
def HQ_COHERENCE(self) -> MVToolsPreset:
return MVToolsPreset(
pel=2,
super_args=SuperArgs(
sharp=SharpMode.WIENER,
rfilter=RFilterMode.CUBIC,
# prefilter=Prefilter.NONE,
pad=8
),
analyze_args=AnalyzeArgs(
blksize=8,
overlap=2,
dct=SADMode.SPATIAL,
blksize=16,
overlap=8,
search=SearchMode.HEXAGON,
truemotion=MotionMode.COHERENCE,
dct=SADMode.ADAPTIVE_SPATIAL_MIXED,
),
recalculate_args=RecalculateArgs(
blksize=8,
overlap=2,
dct=SADMode.SPATIAL,
search=SearchMode.HEXAGON,
truemotion=MotionMode.COHERENCE,
),
degrain_args=DegrainArgs(thsad=300)
)

@classproperty
def CMDE(self) -> MVToolsPreset:
return MVToolsPreset(
pel=1,
super_args=SuperArgs(
sharp=SharpMode.WIENER,
rfilter=RFilterMode.CUBIC,
# prefilter=Prefilter.NONE,
pad=32
),
analyze_args=AnalyzeArgs(
blksize=32,
overlap=16,
dct=SADMode.SPATIAL,
search=SearchMode.HEXAGON,
truemotion=MotionMode.SAD,
),
recalculate_args=RecalculateArgs(
blksize=32,
overlap=16,
dct=SADMode.SPATIAL,
overlap=4,
search=SearchMode.HEXAGON,
truemotion=MotionMode.SAD,
),
degrain_args=DegrainArgs(thsad=300)
dct=SADMode.ADAPTIVE_SATD_MIXED,
)
)

@classproperty
def FAST(self) -> MVToolsPreset:
def HQ_SAD(self) -> MVToolsPreset:
return MVToolsPreset(
pel=1,
pel=2,
super_args=SuperArgs(
sharp=SharpMode.WIENER,
rfilter=RFilterMode.TRIANGLE,
# prefilter=Prefilter.MINBLUR3,
pad=32
),
analyze_args=AnalyzeArgs(
blksize=32,
overlap=16,
dct=SADMode.SPATIAL,
search=SearchMode.DIAMOND,
truemotion=MotionMode.SAD,
),
recalculate_args=RecalculateArgs(
blksize=32,
overlap=16,
dct=SADMode.SPATIAL,
search=SearchMode.DIAMOND,
truemotion=MotionMode.SAD,
),
degrain_args=DegrainArgs(thsad=60)
)

@classproperty
def NOISY(self) -> MVToolsPreset:
# prefilter=Prefilter.DFTTEST,
return MVToolsPreset(
pel=2,
analyze_args=AnalyzeArgs(
blksize=16,
overlap=8,
search=SearchMode.HEXAGON,
dct=SADMode.ADAPTIVE_SPATIAL_MIXED,
truemotion=MotionMode.SAD,
),
recalculate_args=RecalculateArgs(
blksize=16,
overlap=8,
blksize=8,
overlap=4,
search=SearchMode.HEXAGON,
dct=SADMode.ADAPTIVE_SATD_MIXED,
truemotion=MotionMode.SAD,
),
degrain_args=DegrainArgs(thsad=100)
)
)

0 comments on commit 42d3680

Please sign in to comment.