Imported Debian version 2.4.3~trusty1
[deb_ffmpeg.git] / ffmpeg / doc / scaler.texi
CommitLineData
2ba45a60
DM
1@anchor{scaler_options}
2@chapter Scaler Options
3@c man begin SCALER OPTIONS
4
5The video scaler supports the following named options.
6
7Options may be set by specifying -@var{option} @var{value} in the
8FFmpeg tools. For programmatic use, they can be set explicitly in the
9@code{SwsContext} options or through the @file{libavutil/opt.h} API.
10
11@table @option
12
13@anchor{sws_flags}
14@item sws_flags
15Set the scaler flags. This is also used to set the scaling
16algorithm. Only a single algorithm should be selected.
17
18It accepts the following values:
19@table @samp
20@item fast_bilinear
21Select fast bilinear scaling algorithm.
22
23@item bilinear
24Select bilinear scaling algorithm.
25
26@item bicubic
27Select bicubic scaling algorithm.
28
29@item experimental
30Select experimental scaling algorithm.
31
32@item neighbor
33Select nearest neighbor rescaling algorithm.
34
35@item area
36Select averaging area rescaling algorithm.
37
38@item bicublin
39Select bicubic scaling algorithm for the luma component, bilinear for
40chroma components.
41
42@item gauss
43Select Gaussian rescaling algorithm.
44
45@item sinc
46Select sinc rescaling algorithm.
47
48@item lanczos
49Select lanczos rescaling algorithm.
50
51@item spline
52Select natural bicubic spline rescaling algorithm.
53
54@item print_info
55Enable printing/debug logging.
56
57@item accurate_rnd
58Enable accurate rounding.
59
60@item full_chroma_int
61Enable full chroma interpolation.
62
63@item full_chroma_inp
64Select full chroma input.
65
66@item bitexact
67Enable bitexact output.
68@end table
69
70@item srcw
71Set source width.
72
73@item srch
74Set source height.
75
76@item dstw
77Set destination width.
78
79@item dsth
80Set destination height.
81
82@item src_format
83Set source pixel format (must be expressed as an integer).
84
85@item dst_format
86Set destination pixel format (must be expressed as an integer).
87
88@item src_range
89Select source range.
90
91@item dst_range
92Select destination range.
93
94@item param0, param1
95Set scaling algorithm parameters. The specified values are specific of
96some scaling algorithms and ignored by others. The specified values
97are floating point number values.
98
99@item sws_dither
100Set the dithering algorithm. Accepts one of the following
101values. Default value is @samp{auto}.
102
103@table @samp
104@item auto
105automatic choice
106
107@item none
108no dithering
109
110@item bayer
111bayer dither
112
113@item ed
114error diffusion dither
115
116@item a_dither
117arithmetic dither, based using addition
118
119@item x_dither
120arithmetic dither, based using xor (more random/less apparent patterning that
121a_dither).
122
123@end table
124
125@end table
126
127@c man end SCALER OPTIONS