123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>FFmpeg documentation</title>
- <link rel="stylesheet" href="bootstrap.min.css" />
- <link rel="stylesheet" href="style.min.css" />
-
- <meta name="description" content="FFmpeg Scaler Documentation: ">
- <meta name="keywords" content="FFmpeg documentation : FFmpeg Scaler ">
- <meta name="Generator" content="texi2html 5.0">
- <!-- Created on March 9, 2020 by texi2html 5.0 -->
- <!--
- texi2html was written by:
- Lionel Cons <Lionel.Cons@cern.ch> (original author)
- Karl Berry <karl@freefriends.org>
- Olaf Bachmann <obachman@mathematik.uni-kl.de>
- and many others.
- Maintained by: Many creative people.
- Send bugs and suggestions to <texi2html-bug@nongnu.org>
-
- -->
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- </head>
- <body>
- <div class="container">
-
- <h1 class="titlefont">FFmpeg Scaler Documentation</h1>
- <hr>
- <a name="SEC_Top"></a>
-
- <a name="SEC_Contents"></a>
- <h1>Table of Contents</h1>
-
- <div class="contents">
-
- <ul class="no-bullet">
- <li><a name="toc-Description" href="#Description">1 Description</a></li>
- <li><a name="toc-Scaler-Options" href="#Scaler-Options">2 Scaler Options</a></li>
- <li><a name="toc-See-Also" href="#See-Also">3 See Also</a></li>
- <li><a name="toc-Authors" href="#Authors">4 Authors</a></li>
- </ul>
- </div>
-
-
- <hr size="6">
- <a name="Description"></a>
- <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-Description">1 Description</a></h1>
-
- <p>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.
- </p>
-
- <p><a name="scaler_005foptions"></a>
- </p><a name="Scaler-Options"></a>
- <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-Scaler-Options">2 Scaler Options</a></h1>
-
- <p>The video scaler supports the following named options.
- </p>
- <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
- FFmpeg tools, with a few API-only exceptions noted below.
- For programmatic use, they can be set explicitly in the
- <code>SwsContext</code> options or through the ‘<tt>libavutil/opt.h</tt>’ API.
- </p>
- <dl compact="compact">
- <dd>
- <p><a name="sws_005fflags"></a>
- </p></dd>
- <dt>‘<samp>sws_flags</samp>’</dt>
- <dd><p>Set the scaler flags. This is also used to set the scaling
- algorithm. Only a single algorithm should be selected. Default
- value is ‘<samp>bicubic</samp>’.
- </p>
- <p>It accepts the following values:
- </p><dl compact="compact">
- <dt>‘<samp>fast_bilinear</samp>’</dt>
- <dd><p>Select fast bilinear scaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>bilinear</samp>’</dt>
- <dd><p>Select bilinear scaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>bicubic</samp>’</dt>
- <dd><p>Select bicubic scaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>experimental</samp>’</dt>
- <dd><p>Select experimental scaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>neighbor</samp>’</dt>
- <dd><p>Select nearest neighbor rescaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>area</samp>’</dt>
- <dd><p>Select averaging area rescaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>bicublin</samp>’</dt>
- <dd><p>Select bicubic scaling algorithm for the luma component, bilinear for
- chroma components.
- </p>
- </dd>
- <dt>‘<samp>gauss</samp>’</dt>
- <dd><p>Select Gaussian rescaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>sinc</samp>’</dt>
- <dd><p>Select sinc rescaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>lanczos</samp>’</dt>
- <dd><p>Select Lanczos rescaling algorithm. The default width (alpha) is 3 and can be
- changed by setting <code>param0</code>.
- </p>
- </dd>
- <dt>‘<samp>spline</samp>’</dt>
- <dd><p>Select natural bicubic spline rescaling algorithm.
- </p>
- </dd>
- <dt>‘<samp>print_info</samp>’</dt>
- <dd><p>Enable printing/debug logging.
- </p>
- </dd>
- <dt>‘<samp>accurate_rnd</samp>’</dt>
- <dd><p>Enable accurate rounding.
- </p>
- </dd>
- <dt>‘<samp>full_chroma_int</samp>’</dt>
- <dd><p>Enable full chroma interpolation.
- </p>
- </dd>
- <dt>‘<samp>full_chroma_inp</samp>’</dt>
- <dd><p>Select full chroma input.
- </p>
- </dd>
- <dt>‘<samp>bitexact</samp>’</dt>
- <dd><p>Enable bitexact output.
- </p></dd>
- </dl>
-
- </dd>
- <dt>‘<samp>srcw <var>(API only)</var></samp>’</dt>
- <dd><p>Set source width.
- </p>
- </dd>
- <dt>‘<samp>srch <var>(API only)</var></samp>’</dt>
- <dd><p>Set source height.
- </p>
- </dd>
- <dt>‘<samp>dstw <var>(API only)</var></samp>’</dt>
- <dd><p>Set destination width.
- </p>
- </dd>
- <dt>‘<samp>dsth <var>(API only)</var></samp>’</dt>
- <dd><p>Set destination height.
- </p>
- </dd>
- <dt>‘<samp>src_format <var>(API only)</var></samp>’</dt>
- <dd><p>Set source pixel format (must be expressed as an integer).
- </p>
- </dd>
- <dt>‘<samp>dst_format <var>(API only)</var></samp>’</dt>
- <dd><p>Set destination pixel format (must be expressed as an integer).
- </p>
- </dd>
- <dt>‘<samp>src_range <var>(boolean)</var></samp>’</dt>
- <dd><p>If value is set to <code>1</code>, indicates source is full range. Default value is
- <code>0</code>, which indicates source is limited range.
- </p>
- </dd>
- <dt>‘<samp>dst_range <var>(boolean)</var></samp>’</dt>
- <dd><p>If value is set to <code>1</code>, enable full range for destination. Default value
- is <code>0</code>, which enables limited range.
- </p>
- <p><a name="sws_005fparams"></a>
- </p></dd>
- <dt>‘<samp>param0, param1</samp>’</dt>
- <dd><p>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.
- </p>
- </dd>
- <dt>‘<samp>sws_dither</samp>’</dt>
- <dd><p>Set the dithering algorithm. Accepts one of the following
- values. Default value is ‘<samp>auto</samp>’.
- </p>
- <dl compact="compact">
- <dt>‘<samp>auto</samp>’</dt>
- <dd><p>automatic choice
- </p>
- </dd>
- <dt>‘<samp>none</samp>’</dt>
- <dd><p>no dithering
- </p>
- </dd>
- <dt>‘<samp>bayer</samp>’</dt>
- <dd><p>bayer dither
- </p>
- </dd>
- <dt>‘<samp>ed</samp>’</dt>
- <dd><p>error diffusion dither
- </p>
- </dd>
- <dt>‘<samp>a_dither</samp>’</dt>
- <dd><p>arithmetic dither, based using addition
- </p>
- </dd>
- <dt>‘<samp>x_dither</samp>’</dt>
- <dd><p>arithmetic dither, based using xor (more random/less apparent patterning that
- a_dither).
- </p>
- </dd>
- </dl>
-
- </dd>
- <dt>‘<samp>alphablend</samp>’</dt>
- <dd><p>Set the alpha blending to use when the input has alpha but the output does not.
- Default value is ‘<samp>none</samp>’.
- </p>
- <dl compact="compact">
- <dt>‘<samp>uniform_color</samp>’</dt>
- <dd><p>Blend onto a uniform background color
- </p>
- </dd>
- <dt>‘<samp>checkerboard</samp>’</dt>
- <dd><p>Blend onto a checkerboard
- </p>
- </dd>
- <dt>‘<samp>none</samp>’</dt>
- <dd><p>No blending
- </p>
- </dd>
- </dl>
-
- </dd>
- </dl>
-
-
- <a name="See-Also"></a>
- <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-See-Also">3 See Also</a></h1>
-
- <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>,
- <a href="libswscale.html">libswscale</a>
- </p>
-
- <a name="Authors"></a>
- <h1 class="chapter"><a href="ffmpeg-scaler.html#toc-Authors">4 Authors</a></h1>
-
- <p>The FFmpeg developers.
- </p>
- <p>For details about the authorship, see the Git history of the project
- (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
- <code>git log</code> in the FFmpeg source directory, or browsing the
- online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
- </p>
- <p>Maintainers for the specific components are listed in the file
- ‘<tt>MAINTAINERS</tt>’ in the source code tree.
- </p>
-
- </div>
- </body>
- </html>
|