星火微课系统客户端
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ffmpeg-scaler.html 7.8KB

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