Skip to content

Commit

Permalink
Preview: Set default dither to "random"
Browse files Browse the repository at this point in the history
  • Loading branch information
mawen1250 committed Jul 16, 2016
1 parent 8cd56af commit 8d3f083
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mvsfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2622,6 +2622,7 @@ def GrayScale(clip, matrix=None):
## matrix, full, dither, kernel, a1, a2, prefer_props correspond to matrix_in, range_in, dither_type,
## resample_filter_uv, filter_param_a_uv, filter_param_b_uv, prefer_props in resize.Bicubic.
## "matrix" is passed to GetMatrix(id=True) first.
## default dither: random
## default chroma resampler: kernel="bicubic", a1=0, a2=0.5, also known as "Catmull-Rom"
################################################################################################################################
def Preview(clips, plane=None, compat=None, matrix=None, full=None, depth=None,\
Expand Down Expand Up @@ -2655,6 +2656,8 @@ def Preview(clips, plane=None, compat=None, matrix=None, full=None, depth=None,\
dFormat = core.register_format(vs.RGB, sample, depth, 0, 0).id

# Parameters
if dither is None:
dither = "random"
if kernel is None:
kernel = "bicubic"
if a1 is None and a2 is None:
Expand Down

0 comments on commit 8d3f083

Please sign in to comment.