]> git.sesse.net Git - casparcg/blob - dependencies/ffmpeg/doc/ffmpeg-scaler.html
Upgraded ffmpeg to newest stable
[casparcg] / dependencies / ffmpeg / doc / ffmpeg-scaler.html
1 <!DOCTYPE html>
2 <html>
3 <!-- Created on June 19, 2014 by texi2html 1.82 -->
4 <!--
5 texi2html was written by: 
6             Lionel Cons <Lionel.Cons@cern.ch> (original author)
7             Karl Berry  <karl@freefriends.org>
8             Olaf Bachmann <obachman@mathematik.uni-kl.de>
9             and many others.
10 Maintained by: Many creative people.
11 Send bugs and suggestions to <texi2html-bug@nongnu.org>
12
13 -->
14 <head>
15 <title>FFmpeg documentation : FFmpeg Scaler </title>
16
17 <meta name="description" content="FFmpeg Scaler Documentation: ">
18 <meta name="keywords" content="FFmpeg documentation : FFmpeg Scaler ">
19 <meta name="Generator" content="texi2html 1.82">
20 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
21 <link rel="stylesheet" type="text/css" href="default.css" />
22
23 <link rel="icon" href="favicon.png" type="image/png" />
24 </head>
25 <body>
26 <div id="container">
27 <div id="body">
28
29 <a name="SEC_Top"></a>
30 <h1 class="settitle">FFmpeg Scaler Documentation</h1>
31
32 <a name="SEC_Contents"></a>
33 <h1>Table of Contents</h1>
34 <div class="contents">
35
36 <ul class="toc">
37   <li><a name="toc-Description" href="#Description">1. Description</a></li>
38   <li><a name="toc-Scaler-Options" href="#Scaler-Options">2. Scaler Options</a></li>
39   <li><a name="toc-See-Also" href="#See-Also">3. See Also</a></li>
40   <li><a name="toc-Authors" href="#Authors">4. Authors</a></li>
41 </ul>
42 </div>
43
44 <a name="Description"></a>
45 <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-Description">1. Description</a></h1>
46
47 <p>The FFmpeg rescaler provides a high-level interface to the libswscale
48 library image conversion utilities. In particular it allows one to perform
49 image rescaling and pixel format conversion.
50 </p>
51
52 <p><a name="scaler_005foptions"></a>
53 </p><a name="Scaler-Options"></a>
54 <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-Scaler-Options">2. Scaler Options</a></h1>
55
56 <p>The video scaler supports the following named options.
57 </p>
58 <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
59 FFmpeg tools. For programmatic use, they can be set explicitly in the
60 <code>SwsContext</code> options or through the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API.
61 </p>
62 <dl compact="compact">
63 <dd>
64 <p><a name="sws_005fflags"></a>
65 </p></dd>
66 <dt> &lsquo;<samp>sws_flags</samp>&rsquo;</dt>
67 <dd><p>Set the scaler flags. This is also used to set the scaling
68 algorithm. Only a single algorithm should be selected.
69 </p>
70 <p>It accepts the following values:
71 </p><dl compact="compact">
72 <dt> &lsquo;<samp>fast_bilinear</samp>&rsquo;</dt>
73 <dd><p>Select fast bilinear scaling algorithm.
74 </p>
75 </dd>
76 <dt> &lsquo;<samp>bilinear</samp>&rsquo;</dt>
77 <dd><p>Select bilinear scaling algorithm.
78 </p>
79 </dd>
80 <dt> &lsquo;<samp>bicubic</samp>&rsquo;</dt>
81 <dd><p>Select bicubic scaling algorithm.
82 </p>
83 </dd>
84 <dt> &lsquo;<samp>experimental</samp>&rsquo;</dt>
85 <dd><p>Select experimental scaling algorithm.
86 </p>
87 </dd>
88 <dt> &lsquo;<samp>neighbor</samp>&rsquo;</dt>
89 <dd><p>Select nearest neighbor rescaling algorithm.
90 </p>
91 </dd>
92 <dt> &lsquo;<samp>area</samp>&rsquo;</dt>
93 <dd><p>Select averaging area rescaling algorithm.
94 </p>
95 </dd>
96 <dt> &lsquo;<samp>bicublin</samp>&rsquo;</dt>
97 <dd><p>Select bicubic scaling algorithm for the luma component, bilinear for
98 chroma components.
99 </p>
100 </dd>
101 <dt> &lsquo;<samp>gauss</samp>&rsquo;</dt>
102 <dd><p>Select Gaussian rescaling algorithm.
103 </p>
104 </dd>
105 <dt> &lsquo;<samp>sinc</samp>&rsquo;</dt>
106 <dd><p>Select sinc rescaling algorithm.
107 </p>
108 </dd>
109 <dt> &lsquo;<samp>lanczos</samp>&rsquo;</dt>
110 <dd><p>Select lanczos rescaling algorithm.
111 </p>
112 </dd>
113 <dt> &lsquo;<samp>spline</samp>&rsquo;</dt>
114 <dd><p>Select natural bicubic spline rescaling algorithm.
115 </p>
116 </dd>
117 <dt> &lsquo;<samp>print_info</samp>&rsquo;</dt>
118 <dd><p>Enable printing/debug logging.
119 </p>
120 </dd>
121 <dt> &lsquo;<samp>accurate_rnd</samp>&rsquo;</dt>
122 <dd><p>Enable accurate rounding.
123 </p>
124 </dd>
125 <dt> &lsquo;<samp>full_chroma_int</samp>&rsquo;</dt>
126 <dd><p>Enable full chroma interpolation.
127 </p>
128 </dd>
129 <dt> &lsquo;<samp>full_chroma_inp</samp>&rsquo;</dt>
130 <dd><p>Select full chroma input.
131 </p>
132 </dd>
133 <dt> &lsquo;<samp>bitexact</samp>&rsquo;</dt>
134 <dd><p>Enable bitexact output.
135 </p></dd>
136 </dl>
137
138 </dd>
139 <dt> &lsquo;<samp>srcw</samp>&rsquo;</dt>
140 <dd><p>Set source width.
141 </p>
142 </dd>
143 <dt> &lsquo;<samp>srch</samp>&rsquo;</dt>
144 <dd><p>Set source height.
145 </p>
146 </dd>
147 <dt> &lsquo;<samp>dstw</samp>&rsquo;</dt>
148 <dd><p>Set destination width.
149 </p>
150 </dd>
151 <dt> &lsquo;<samp>dsth</samp>&rsquo;</dt>
152 <dd><p>Set destination height.
153 </p>
154 </dd>
155 <dt> &lsquo;<samp>src_format</samp>&rsquo;</dt>
156 <dd><p>Set source pixel format (must be expressed as an integer).
157 </p>
158 </dd>
159 <dt> &lsquo;<samp>dst_format</samp>&rsquo;</dt>
160 <dd><p>Set destination pixel format (must be expressed as an integer).
161 </p>
162 </dd>
163 <dt> &lsquo;<samp>src_range</samp>&rsquo;</dt>
164 <dd><p>Select source range.
165 </p>
166 </dd>
167 <dt> &lsquo;<samp>dst_range</samp>&rsquo;</dt>
168 <dd><p>Select destination range.
169 </p>
170 </dd>
171 <dt> &lsquo;<samp>param0, param1</samp>&rsquo;</dt>
172 <dd><p>Set scaling algorithm parameters. The specified values are specific of
173 some scaling algorithms and ignored by others. The specified values
174 are floating point number values.
175 </p>
176 </dd>
177 <dt> &lsquo;<samp>sws_dither</samp>&rsquo;</dt>
178 <dd><p>Set the dithering algorithm. Accepts one of the following
179 values. Default value is &lsquo;<samp>auto</samp>&rsquo;.
180 </p>
181 <dl compact="compact">
182 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
183 <dd><p>automatic choice
184 </p>
185 </dd>
186 <dt> &lsquo;<samp>none</samp>&rsquo;</dt>
187 <dd><p>no dithering
188 </p>
189 </dd>
190 <dt> &lsquo;<samp>bayer</samp>&rsquo;</dt>
191 <dd><p>bayer dither
192 </p>
193 </dd>
194 <dt> &lsquo;<samp>ed</samp>&rsquo;</dt>
195 <dd><p>error diffusion dither
196 </p></dd>
197 </dl>
198
199 </dd>
200 </dl>
201
202
203 <a name="See-Also"></a>
204 <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-See-Also">3. See Also</a></h1>
205
206 <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>, <a href="ffserver.html">ffserver</a>,
207 <a href="libswscale.html">libswscale</a>
208 </p>
209
210 <a name="Authors"></a>
211 <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-Authors">4. Authors</a></h1>
212
213 <p>The FFmpeg developers.
214 </p>
215 <p>For details about the authorship, see the Git history of the project
216 (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
217 <code>git log</code> in the FFmpeg source directory, or browsing the
218 online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
219 </p>
220 <p>Maintainers for the specific components are listed in the file
221 &lsquo;<tt>MAINTAINERS</tt>&rsquo; in the source code tree.
222 </p>
223
224 <footer class="footer pagination-right">
225 <span class="label label-info">This document was generated by <em>Kyle Schwarz</em> on <em>June 19, 2014</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.</span></footer></div></div></body>