Skip to content

Commit

Permalink
replace_low_frequencies: remove DCTFlicker
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 authored Oct 14, 2024
1 parent f7e3896 commit 389d5d9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vsrgtools/freqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def replace_low_frequencies(
flt: vs.VideoNode, ref: vs.VideoNode, LFR: float, DCTFlicker: bool = False,
flt: vs.VideoNode, ref: vs.VideoNode, LFR: float,
planes: PlanesT = None, mode: ConvMode = ConvMode.HV
) -> vs.VideoNode:
func = FunctionUtil(flt, replace_low_frequencies, planes, (vs.YUV, vs.GRAY))
Expand All @@ -39,10 +39,6 @@ def replace_low_frequencies(

expr = 'x y - z + '

if DCTFlicker:
sec = scale_value(sin(e) + 0.1, 8, func.work_clip, range_out=ColorRange.FULL)
expr += f'y z - D! y z = swap dup D@ 0 = 0 D@ 0 < -1 1 ? ? {sec} * + ?'

flt_blur = gauss_blur(func.work_clip, f_cut, None, mode)
ref_blur = gauss_blur(ref_work_clip, f_cut, None, mode)

Expand Down

0 comments on commit 389d5d9

Please sign in to comment.