Skip to content

Commit

Permalink
guided_deband: specify the correct range (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ichunjo authored Mar 12, 2024
1 parent 91c60be commit d1a3eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsdeband/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def guided_deband(
if clip.format.sample_type is vs.FLOAT:
bin_thr = 1.5 / 255 if range_in.is_full else [1.5 / 219, 1.5 / 224]
else:
bin_thr = scale_value(0.005859375, 32, clip, range_in)
bin_thr = scale_value(0.005859375, 32, clip, range_out=range_in)

bin_thr = normalize_seq(bin_thr, clip.format.num_planes)

Expand Down

0 comments on commit d1a3eac

Please sign in to comment.