]> git.sesse.net Git - ffmpeg/blob - doc/scaler.texi
lavfi/testsrc: make nb_decimals available only in testsrc.
[ffmpeg] / doc / scaler.texi
1 @chapter Scaler Options
2 @c man begin SCALER OPTIONS
3
4 The video scaler supports the following named options.
5
6 Options may be set by specifying -@var{option} @var{value} in the
7 FFmpeg tools. For programmatic use, they can be set explicitly in the
8 @code{SwsContext} options or through the @file{libavutil/opt.h} API.
9
10 @table @option
11
12 @item sws_flags
13 Set the scaler flags. This is also used to set the scaling
14 algorithm. Only a single algorithm should be selected.
15
16 It accepts the following values:
17 @table @samp
18 @item fast_bilinear
19 Select fast bilinear scaling algorithm.
20
21 @item bilinear
22 Select bilinear scaling algorithm.
23
24 @item bicubic
25 Select bicubic scaling algorithm.
26
27 @item experimental
28 Select experimental scaling algorithm.
29
30 @item neighbor
31 Select nearest neighbor rescaling algorithm.
32
33 @item area
34 Select averaging area rescaling algorithm.
35
36 @item bicubiclin
37 Select bicubic scaling algorithm for the luma component, bilinear for
38 chroma components.
39
40 @item gauss
41 Select Gaussian rescaling algorithm.
42
43 @item sinc
44 Select sinc rescaling algorithm.
45
46 @item lanczos
47 Select lanczos rescaling algorithm.
48
49 @item spline
50 Select natural bicubic spline rescaling algorithm.
51
52 @item print_info
53 Enable printing/debug logging.
54
55 @item accurate_rnd
56 Enable accurate rounding.
57
58 @item full_chroma_int
59 Enable full chroma interpolation.
60
61 @item full_chroma_inp
62 Select full chroma input.
63
64 @item bitexact
65 Enable bitexact output.
66 @end table
67
68 @item srcw
69 Set source width.
70
71 @item srch
72 Set source height.
73
74 @item dstw
75 Set destination width.
76
77 @item dsth
78 Set destination height.
79
80 @item src_format
81 Set source pixel format (must be expressed as an integer).
82
83 @item dst_format
84 Set destination pixel format (must be expressed as an integer).
85
86 @item src_range
87 Select source range.
88
89 @item dst_range
90 Select destination range.
91
92 @item param0, param1
93 Set scaling algorithm parameters. The specified values are specific of
94 some scaling algorithms and ignored by others. The specified values
95 are floating point number values.
96
97 @end table
98
99 @c man end SCALER OPTIONS