1 @anchor{scaler_options}
2 @chapter Scaler Options
3 @c man begin SCALER OPTIONS
5 The video scaler supports the following named options.
7 Options may be set by specifying -@var{option} @var{value} in the
8 FFmpeg tools, with a few API-only exceptions noted below.
9 For programmatic use, they can be set explicitly in the
10 @code{SwsContext} options or through the @file{libavutil/opt.h} API.
16 Set the scaler flags. This is also used to set the scaling
17 algorithm. Only a single algorithm should be selected. Default
18 value is @samp{bicubic}.
20 It accepts the following values:
23 Select fast bilinear scaling algorithm.
26 Select bilinear scaling algorithm.
29 Select bicubic scaling algorithm.
32 Select experimental scaling algorithm.
35 Select nearest neighbor rescaling algorithm.
38 Select averaging area rescaling algorithm.
41 Select bicubic scaling algorithm for the luma component, bilinear for
45 Select Gaussian rescaling algorithm.
48 Select sinc rescaling algorithm.
51 Select Lanczos rescaling algorithm. The default width (alpha) is 3 and can be
52 changed by setting @code{param0}.
55 Select natural bicubic spline rescaling algorithm.
58 Enable printing/debug logging.
61 Enable accurate rounding.
64 Enable full chroma interpolation.
67 Select full chroma input.
70 Enable bitexact output.
73 @item srcw @var{(API only)}
76 @item srch @var{(API only)}
79 @item dstw @var{(API only)}
80 Set destination width.
82 @item dsth @var{(API only)}
83 Set destination height.
85 @item src_format @var{(API only)}
86 Set source pixel format (must be expressed as an integer).
88 @item dst_format @var{(API only)}
89 Set destination pixel format (must be expressed as an integer).
91 @item src_range @var{(boolean)}
92 If value is set to @code{1}, indicates source is full range. Default value is
93 @code{0}, which indicates source is limited range.
95 @item dst_range @var{(boolean)}
96 If value is set to @code{1}, enable full range for destination. Default value
97 is @code{0}, which enables limited range.
101 Set scaling algorithm parameters. The specified values are specific of
102 some scaling algorithms and ignored by others. The specified values
103 are floating point number values.
106 Set the dithering algorithm. Accepts one of the following
107 values. Default value is @samp{auto}.
120 error diffusion dither
123 arithmetic dither, based using addition
126 arithmetic dither, based using xor (more random/less apparent patterning that
132 Set the alpha blending to use when the input has alpha but the output does not.
133 Default value is @samp{none}.
137 Blend onto a uniform background color
140 Blend onto a checkerboard
149 @c man end SCALER OPTIONS