doc/scaler.texi
d17aaad6
 @anchor{scaler_options}
702e7438
 @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
c3458f06
 FFmpeg tools, with a few API-only exceptions noted below.
 For programmatic use, they can be set explicitly in the
702e7438
 @code{SwsContext} options or through the @file{libavutil/opt.h} API.
 
 @table @option
 
31b6300f
 @anchor{sws_flags}
702e7438
 @item sws_flags
 Set the scaler flags. This is also used to set the scaling
890320b1
 algorithm. Only a single algorithm should be selected. Default
 value is @samp{bicubic}.
702e7438
 
 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.
 
575b9577
 @item bicublin
702e7438
 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
7458fa11
 Select Lanczos rescaling algorithm. The default width (alpha) is 3 and can be
 changed by setting @code{param0}.
702e7438
 
 @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
 
c3458f06
 @item srcw @var{(API only)}
702e7438
 Set source width.
 
c3458f06
 @item srch @var{(API only)}
702e7438
 Set source height.
 
c3458f06
 @item dstw @var{(API only)}
702e7438
 Set destination width.
 
c3458f06
 @item dsth @var{(API only)}
702e7438
 Set destination height.
 
c3458f06
 @item src_format @var{(API only)}
702e7438
 Set source pixel format (must be expressed as an integer).
 
c3458f06
 @item dst_format @var{(API only)}
702e7438
 Set destination pixel format (must be expressed as an integer).
 
b99c73ab
 @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.
702e7438
 
b99c73ab
 @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.
702e7438
 
dec23859
 @anchor{sws_params}
702e7438
 @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.
 
8fafaf18
 @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
3e601662
 
 @item a_dither
 arithmetic dither, based using addition
 
 @item x_dither
 arithmetic dither, based using xor (more random/less apparent patterning that
 a_dither).
 
8fafaf18
 @end table
 
d0e0757e
 @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
 
c5ebeaa3
 @item checkerboard
 Blend onto a checkerboard
 
d0e0757e
 @item none
 No blending
 
 @end table
 
702e7438
 @end table
 
 @c man end SCALER OPTIONS