File size: 4,073 Bytes
d11178d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
FFMPEG-SCALER(1)					      FFMPEG-SCALER(1)

NAME
       ffmpeg-scaler - FFmpeg video scaling and pixel format converter

DESCRIPTION
       The FFmpeg rescaler provides a high-level interface to the libswscale
       library image conversion utilities. In particular it allows one to
       perform image rescaling and pixel format conversion.

SCALER OPTIONS
       The video scaler supports the following named options.

       Options may be set by specifying -option value in the FFmpeg tools,
       with a few API-only exceptions noted below.  For programmatic use, they
       can be set explicitly in the "SwsContext" options or through the
       libavutil/opt.h API.

       sws_flags
	   Set the scaler flags. This is also used to set the scaling
	   algorithm. Only a single algorithm should be selected. Default
	   value is bicubic.

	   It accepts the following values:

	   fast_bilinear
	       Select fast bilinear scaling algorithm.

	   bilinear
	       Select bilinear scaling algorithm.

	   bicubic
	       Select bicubic scaling algorithm.

	   experimental
	       Select experimental scaling algorithm.

	   neighbor
	       Select nearest neighbor rescaling algorithm.

	   area
	       Select averaging area rescaling algorithm.

	   bicublin
	       Select bicubic scaling algorithm for the luma component,
	       bilinear for chroma components.

	   gauss
	       Select Gaussian rescaling algorithm.

	   sinc
	       Select sinc rescaling algorithm.

	   lanczos
	       Select Lanczos rescaling algorithm. The default width (alpha)
	       is 3 and can be changed by setting "param0".

	   spline
	       Select natural bicubic spline rescaling algorithm.

	   print_info
	       Enable printing/debug logging.

	   accurate_rnd
	       Enable accurate rounding.

	   full_chroma_int
	       Enable full chroma interpolation.

	   full_chroma_inp
	       Select full chroma input.

	   bitexact
	       Enable bitexact output.

       srcw (API only)
	   Set source width.

       srch (API only)
	   Set source height.

       dstw (API only)
	   Set destination width.

       dsth (API only)
	   Set destination height.

       src_format (API only)
	   Set source pixel format (must be expressed as an integer).

       dst_format (API only)
	   Set destination pixel format (must be expressed as an integer).

       src_range (boolean)
	   If value is set to 1, indicates source is full range. Default value
	   is 0, which indicates source is limited range.

       dst_range (boolean)
	   If value is set to 1, enable full range for destination. Default
	   value is 0, which enables limited range.

       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.

       sws_dither
	   Set the dithering algorithm. Accepts one of the following values.
	   Default value is auto.

	   auto
	       automatic choice

	   none
	       no dithering

	   bayer
	       bayer dither

	   ed  error diffusion dither

	   a_dither
	       arithmetic dither, based using addition

	   x_dither
	       arithmetic dither, based using xor (more random/less apparent
	       patterning that a_dither).

       alphablend
	   Set the alpha blending to use when the input has alpha but the
	   output does not.  Default value is none.

	   uniform_color
	       Blend onto a uniform background color

	   checkerboard
	       Blend onto a checkerboard

	   none
	       No blending

SEE ALSO
       ffmpeg(1), ffplay(1), ffprobe(1), libswscale(3)

AUTHORS
       The FFmpeg developers.

       For details about the authorship, see the Git history of the project
       (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command git log in
       the FFmpeg source directory, or browsing the online repository at
       <https://git.ffmpeg.org/ffmpeg>.

       Maintainers for the specific components are listed in the file
       MAINTAINERS in the source code tree.

							      FFMPEG-SCALER(1)