Skip to content

Commit

Permalink
Use supergauss as luma lowpass when specified in format (oyvindln#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Olt authored and JuniorIsAJitterbug committed Feb 22, 2024
1 parent 6f8c35c commit 447ff9a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions vhsdecode/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,16 @@ def _computevideofilters_b(self):
# Video (luma) main de-emphasis
filter_deemp = gen_video_main_deemp_fft_params(DP, self.freq_hz, self.blocklen)

(_, filter_video_lpf) = gen_video_lpf_params(
DP, self.freq_hz_half, self.blocklen
)
if DP.get("video_lpf_supergauss", False) is True:
filter_video_lpf = supergauss(
np.linspace(0, self.freq_hz_half, self.blocklen // 2 + 1),
DP["video_lpf_freq"],
DP["video_lpf_order"],
)
else:
(_, filter_video_lpf) = gen_video_lpf_params(
DP, self.freq_hz_half, self.blocklen
)

if DP.get("video_custom_luma_filters", None) is not None:
self.Filters["FCustomVideo"] = gen_custom_video_filters(
Expand Down

0 comments on commit 447ff9a

Please sign in to comment.