3 <!-- Created on June 19, 2014 by texi2html 1.82 -->
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>
10 Maintained by: Many creative people.
11 Send bugs and suggestions to <texi2html-bug@nongnu.org>
15 <title>FFmpeg documentation : FFmpeg Scaler </title>
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" />
23 <link rel="icon" href="favicon.png" type="image/png" />
29 <a name="SEC_Top"></a>
30 <h1 class="settitle">FFmpeg Scaler Documentation</h1>
32 <a name="SEC_Contents"></a>
33 <h1>Table of Contents</h1>
34 <div class="contents">
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>
44 <a name="Description"></a>
45 <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-Description">1. Description</a></h1>
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.
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>
56 <p>The video scaler supports the following named options.
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 ‘<tt>libavutil/opt.h</tt>’ API.
62 <dl compact="compact">
64 <p><a name="sws_005fflags"></a>
66 <dt> ‘<samp>sws_flags</samp>’</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.
70 <p>It accepts the following values:
71 </p><dl compact="compact">
72 <dt> ‘<samp>fast_bilinear</samp>’</dt>
73 <dd><p>Select fast bilinear scaling algorithm.
76 <dt> ‘<samp>bilinear</samp>’</dt>
77 <dd><p>Select bilinear scaling algorithm.
80 <dt> ‘<samp>bicubic</samp>’</dt>
81 <dd><p>Select bicubic scaling algorithm.
84 <dt> ‘<samp>experimental</samp>’</dt>
85 <dd><p>Select experimental scaling algorithm.
88 <dt> ‘<samp>neighbor</samp>’</dt>
89 <dd><p>Select nearest neighbor rescaling algorithm.
92 <dt> ‘<samp>area</samp>’</dt>
93 <dd><p>Select averaging area rescaling algorithm.
96 <dt> ‘<samp>bicublin</samp>’</dt>
97 <dd><p>Select bicubic scaling algorithm for the luma component, bilinear for
101 <dt> ‘<samp>gauss</samp>’</dt>
102 <dd><p>Select Gaussian rescaling algorithm.
105 <dt> ‘<samp>sinc</samp>’</dt>
106 <dd><p>Select sinc rescaling algorithm.
109 <dt> ‘<samp>lanczos</samp>’</dt>
110 <dd><p>Select lanczos rescaling algorithm.
113 <dt> ‘<samp>spline</samp>’</dt>
114 <dd><p>Select natural bicubic spline rescaling algorithm.
117 <dt> ‘<samp>print_info</samp>’</dt>
118 <dd><p>Enable printing/debug logging.
121 <dt> ‘<samp>accurate_rnd</samp>’</dt>
122 <dd><p>Enable accurate rounding.
125 <dt> ‘<samp>full_chroma_int</samp>’</dt>
126 <dd><p>Enable full chroma interpolation.
129 <dt> ‘<samp>full_chroma_inp</samp>’</dt>
130 <dd><p>Select full chroma input.
133 <dt> ‘<samp>bitexact</samp>’</dt>
134 <dd><p>Enable bitexact output.
139 <dt> ‘<samp>srcw</samp>’</dt>
140 <dd><p>Set source width.
143 <dt> ‘<samp>srch</samp>’</dt>
144 <dd><p>Set source height.
147 <dt> ‘<samp>dstw</samp>’</dt>
148 <dd><p>Set destination width.
151 <dt> ‘<samp>dsth</samp>’</dt>
152 <dd><p>Set destination height.
155 <dt> ‘<samp>src_format</samp>’</dt>
156 <dd><p>Set source pixel format (must be expressed as an integer).
159 <dt> ‘<samp>dst_format</samp>’</dt>
160 <dd><p>Set destination pixel format (must be expressed as an integer).
163 <dt> ‘<samp>src_range</samp>’</dt>
164 <dd><p>Select source range.
167 <dt> ‘<samp>dst_range</samp>’</dt>
168 <dd><p>Select destination range.
171 <dt> ‘<samp>param0, param1</samp>’</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.
177 <dt> ‘<samp>sws_dither</samp>’</dt>
178 <dd><p>Set the dithering algorithm. Accepts one of the following
179 values. Default value is ‘<samp>auto</samp>’.
181 <dl compact="compact">
182 <dt> ‘<samp>auto</samp>’</dt>
183 <dd><p>automatic choice
186 <dt> ‘<samp>none</samp>’</dt>
190 <dt> ‘<samp>bayer</samp>’</dt>
194 <dt> ‘<samp>ed</samp>’</dt>
195 <dd><p>error diffusion dither
203 <a name="See-Also"></a>
204 <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-See-Also">3. See Also</a></h1>
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>
210 <a name="Authors"></a>
211 <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-Authors">4. Authors</a></h1>
213 <p>The FFmpeg developers.
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>.
220 <p>Maintainers for the specific components are listed in the file
221 ‘<tt>MAINTAINERS</tt>’ in the source code tree.
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>