2013-09-30 14:50:44 +00:00
|
|
|
@anchor{scaler_options}
|
2013-03-19 19:04:57 +00:00
|
|
|
@chapter Scaler Options
|
|
|
|
@c man begin SCALER OPTIONS
|
|
|
|
|
|
|
|
The video scaler supports the following named options.
|
|
|
|
|
|
|
|
Options may be set by specifying -@var{option} @var{value} in the
|
2019-05-17 07:32:04 +00:00
|
|
|
FFmpeg tools, with a few API-only exceptions noted below.
|
|
|
|
For programmatic use, they can be set explicitly in the
|
2013-03-19 19:04:57 +00:00
|
|
|
@code{SwsContext} options or through the @file{libavutil/opt.h} API.
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
|
2013-09-30 14:03:44 +00:00
|
|
|
@anchor{sws_flags}
|
2013-03-19 19:04:57 +00:00
|
|
|
@item sws_flags
|
|
|
|
Set the scaler flags. This is also used to set the scaling
|
2016-12-23 00:27:49 +00:00
|
|
|
algorithm. Only a single algorithm should be selected. Default
|
|
|
|
value is @samp{bicubic}.
|
2013-03-19 19:04:57 +00:00
|
|
|
|
|
|
|
It accepts the following values:
|
|
|
|
@table @samp
|
|
|
|
@item fast_bilinear
|
|
|
|
Select fast bilinear scaling algorithm.
|
|
|
|
|
|
|
|
@item bilinear
|
|
|
|
Select bilinear scaling algorithm.
|
|
|
|
|
|
|
|
@item bicubic
|
|
|
|
Select bicubic scaling algorithm.
|
|
|
|
|
|
|
|
@item experimental
|
|
|
|
Select experimental scaling algorithm.
|
|
|
|
|
|
|
|
@item neighbor
|
|
|
|
Select nearest neighbor rescaling algorithm.
|
|
|
|
|
|
|
|
@item area
|
|
|
|
Select averaging area rescaling algorithm.
|
|
|
|
|
2014-03-24 21:04:52 +00:00
|
|
|
@item bicublin
|
2013-03-19 19:04:57 +00:00
|
|
|
Select bicubic scaling algorithm for the luma component, bilinear for
|
|
|
|
chroma components.
|
|
|
|
|
|
|
|
@item gauss
|
|
|
|
Select Gaussian rescaling algorithm.
|
|
|
|
|
|
|
|
@item sinc
|
|
|
|
Select sinc rescaling algorithm.
|
|
|
|
|
|
|
|
@item lanczos
|
2019-05-26 15:52:00 +00:00
|
|
|
Select Lanczos rescaling algorithm. The default width (alpha) is 3 and can be
|
|
|
|
changed by setting @code{param0}.
|
2013-03-19 19:04:57 +00:00
|
|
|
|
|
|
|
@item spline
|
|
|
|
Select natural bicubic spline rescaling algorithm.
|
|
|
|
|
|
|
|
@item print_info
|
|
|
|
Enable printing/debug logging.
|
|
|
|
|
|
|
|
@item accurate_rnd
|
|
|
|
Enable accurate rounding.
|
|
|
|
|
|
|
|
@item full_chroma_int
|
|
|
|
Enable full chroma interpolation.
|
|
|
|
|
|
|
|
@item full_chroma_inp
|
|
|
|
Select full chroma input.
|
|
|
|
|
|
|
|
@item bitexact
|
|
|
|
Enable bitexact output.
|
|
|
|
@end table
|
|
|
|
|
2019-05-17 07:32:04 +00:00
|
|
|
@item srcw @var{(API only)}
|
2013-03-19 19:04:57 +00:00
|
|
|
Set source width.
|
|
|
|
|
2019-05-17 07:32:04 +00:00
|
|
|
@item srch @var{(API only)}
|
2013-03-19 19:04:57 +00:00
|
|
|
Set source height.
|
|
|
|
|
2019-05-17 07:32:04 +00:00
|
|
|
@item dstw @var{(API only)}
|
2013-03-19 19:04:57 +00:00
|
|
|
Set destination width.
|
|
|
|
|
2019-05-17 07:32:04 +00:00
|
|
|
@item dsth @var{(API only)}
|
2013-03-19 19:04:57 +00:00
|
|
|
Set destination height.
|
|
|
|
|
2019-05-17 07:32:04 +00:00
|
|
|
@item src_format @var{(API only)}
|
2013-03-19 19:04:57 +00:00
|
|
|
Set source pixel format (must be expressed as an integer).
|
|
|
|
|
2019-05-17 07:32:04 +00:00
|
|
|
@item dst_format @var{(API only)}
|
2013-03-19 19:04:57 +00:00
|
|
|
Set destination pixel format (must be expressed as an integer).
|
|
|
|
|
2019-05-17 08:58:02 +00:00
|
|
|
@item src_range @var{(boolean)}
|
|
|
|
If value is set to @code{1}, indicates source is full range. Default value is
|
|
|
|
@code{0}, which indicates source is limited range.
|
2013-03-19 19:04:57 +00:00
|
|
|
|
2019-05-17 08:58:02 +00:00
|
|
|
@item dst_range @var{(boolean)}
|
|
|
|
If value is set to @code{1}, enable full range for destination. Default value
|
|
|
|
is @code{0}, which enables limited range.
|
2013-03-19 19:04:57 +00:00
|
|
|
|
2016-01-20 14:29:13 +00:00
|
|
|
@anchor{sws_params}
|
2013-03-19 19:04:57 +00:00
|
|
|
@item param0, param1
|
|
|
|
Set scaling algorithm parameters. The specified values are specific of
|
|
|
|
some scaling algorithms and ignored by others. The specified values
|
|
|
|
are floating point number values.
|
|
|
|
|
2013-09-30 14:54:46 +00:00
|
|
|
@item sws_dither
|
|
|
|
Set the dithering algorithm. Accepts one of the following
|
|
|
|
values. Default value is @samp{auto}.
|
|
|
|
|
|
|
|
@table @samp
|
|
|
|
@item auto
|
|
|
|
automatic choice
|
|
|
|
|
|
|
|
@item none
|
|
|
|
no dithering
|
|
|
|
|
|
|
|
@item bayer
|
|
|
|
bayer dither
|
|
|
|
|
|
|
|
@item ed
|
|
|
|
error diffusion dither
|
2014-03-23 01:13:26 +00:00
|
|
|
|
|
|
|
@item a_dither
|
|
|
|
arithmetic dither, based using addition
|
|
|
|
|
|
|
|
@item x_dither
|
|
|
|
arithmetic dither, based using xor (more random/less apparent patterning that
|
|
|
|
a_dither).
|
|
|
|
|
2013-09-30 14:54:46 +00:00
|
|
|
@end table
|
|
|
|
|
2015-08-06 14:36:05 +00:00
|
|
|
@item alphablend
|
|
|
|
Set the alpha blending to use when the input has alpha but the output does not.
|
|
|
|
Default value is @samp{none}.
|
|
|
|
|
|
|
|
@table @samp
|
|
|
|
@item uniform_color
|
|
|
|
Blend onto a uniform background color
|
|
|
|
|
2015-08-09 15:11:53 +00:00
|
|
|
@item checkerboard
|
|
|
|
Blend onto a checkerboard
|
|
|
|
|
2015-08-06 14:36:05 +00:00
|
|
|
@item none
|
|
|
|
No blending
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2013-03-19 19:04:57 +00:00
|
|
|
@end table
|
|
|
|
|
|
|
|
@c man end SCALER OPTIONS
|