scaler.texi 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. @anchor{scaler_options}
  2. @chapter Scaler Options
  3. @c man begin SCALER OPTIONS
  4. The video scaler supports the following named options.
  5. Options may be set by specifying -@var{option} @var{value} in the
  6. FFmpeg tools. For programmatic use, they can be set explicitly in the
  7. @code{SwsContext} options or through the @file{libavutil/opt.h} API.
  8. @table @option
  9. @anchor{sws_flags}
  10. @item sws_flags
  11. Set the scaler flags. This is also used to set the scaling
  12. algorithm. Only a single algorithm should be selected. Default
  13. value is @samp{bicubic}.
  14. It accepts the following values:
  15. @table @samp
  16. @item fast_bilinear
  17. Select fast bilinear scaling algorithm.
  18. @item bilinear
  19. Select bilinear scaling algorithm.
  20. @item bicubic
  21. Select bicubic scaling algorithm.
  22. @item experimental
  23. Select experimental scaling algorithm.
  24. @item neighbor
  25. Select nearest neighbor rescaling algorithm.
  26. @item area
  27. Select averaging area rescaling algorithm.
  28. @item bicublin
  29. Select bicubic scaling algorithm for the luma component, bilinear for
  30. chroma components.
  31. @item gauss
  32. Select Gaussian rescaling algorithm.
  33. @item sinc
  34. Select sinc rescaling algorithm.
  35. @item lanczos
  36. Select Lanczos rescaling algorithm.
  37. @item spline
  38. Select natural bicubic spline rescaling algorithm.
  39. @item print_info
  40. Enable printing/debug logging.
  41. @item accurate_rnd
  42. Enable accurate rounding.
  43. @item full_chroma_int
  44. Enable full chroma interpolation.
  45. @item full_chroma_inp
  46. Select full chroma input.
  47. @item bitexact
  48. Enable bitexact output.
  49. @end table
  50. @item srcw
  51. Set source width.
  52. @item srch
  53. Set source height.
  54. @item dstw
  55. Set destination width.
  56. @item dsth
  57. Set destination height.
  58. @item src_format
  59. Set source pixel format (must be expressed as an integer).
  60. @item dst_format
  61. Set destination pixel format (must be expressed as an integer).
  62. @item src_range
  63. Select source range.
  64. @item dst_range
  65. Select destination range.
  66. @anchor{sws_params}
  67. @item param0, param1
  68. Set scaling algorithm parameters. The specified values are specific of
  69. some scaling algorithms and ignored by others. The specified values
  70. are floating point number values.
  71. @item sws_dither
  72. Set the dithering algorithm. Accepts one of the following
  73. values. Default value is @samp{auto}.
  74. @table @samp
  75. @item auto
  76. automatic choice
  77. @item none
  78. no dithering
  79. @item bayer
  80. bayer dither
  81. @item ed
  82. error diffusion dither
  83. @item a_dither
  84. arithmetic dither, based using addition
  85. @item x_dither
  86. arithmetic dither, based using xor (more random/less apparent patterning that
  87. a_dither).
  88. @end table
  89. @item alphablend
  90. Set the alpha blending to use when the input has alpha but the output does not.
  91. Default value is @samp{none}.
  92. @table @samp
  93. @item uniform_color
  94. Blend onto a uniform background color
  95. @item checkerboard
  96. Blend onto a checkerboard
  97. @item none
  98. No blending
  99. @end table
  100. @end table
  101. @c man end SCALER OPTIONS