scaler.texi 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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.
  13. It accepts the following values:
  14. @table @samp
  15. @item fast_bilinear
  16. Select fast bilinear scaling algorithm.
  17. @item bilinear
  18. Select bilinear scaling algorithm.
  19. @item bicubic
  20. Select bicubic scaling algorithm.
  21. @item experimental
  22. Select experimental scaling algorithm.
  23. @item neighbor
  24. Select nearest neighbor rescaling algorithm.
  25. @item area
  26. Select averaging area rescaling algorithm.
  27. @item bicublin
  28. Select bicubic scaling algorithm for the luma component, bilinear for
  29. chroma components.
  30. @item gauss
  31. Select Gaussian rescaling algorithm.
  32. @item sinc
  33. Select sinc rescaling algorithm.
  34. @item lanczos
  35. Select Lanczos rescaling algorithm.
  36. @item spline
  37. Select natural bicubic spline rescaling algorithm.
  38. @item print_info
  39. Enable printing/debug logging.
  40. @item accurate_rnd
  41. Enable accurate rounding.
  42. @item full_chroma_int
  43. Enable full chroma interpolation.
  44. @item full_chroma_inp
  45. Select full chroma input.
  46. @item bitexact
  47. Enable bitexact output.
  48. @end table
  49. @item srcw
  50. Set source width.
  51. @item srch
  52. Set source height.
  53. @item dstw
  54. Set destination width.
  55. @item dsth
  56. Set destination height.
  57. @item src_format
  58. Set source pixel format (must be expressed as an integer).
  59. @item dst_format
  60. Set destination pixel format (must be expressed as an integer).
  61. @item src_range
  62. Select source range.
  63. @item dst_range
  64. Select destination range.
  65. @anchor{sws_params}
  66. @item param0, param1
  67. Set scaling algorithm parameters. The specified values are specific of
  68. some scaling algorithms and ignored by others. The specified values
  69. are floating point number values.
  70. @item sws_dither
  71. Set the dithering algorithm. Accepts one of the following
  72. values. Default value is @samp{auto}.
  73. @table @samp
  74. @item auto
  75. automatic choice
  76. @item none
  77. no dithering
  78. @item bayer
  79. bayer dither
  80. @item ed
  81. error diffusion dither
  82. @item a_dither
  83. arithmetic dither, based using addition
  84. @item x_dither
  85. arithmetic dither, based using xor (more random/less apparent patterning that
  86. a_dither).
  87. @end table
  88. @item alphablend
  89. Set the alpha blending to use when the input has alpha but the output does not.
  90. Default value is @samp{none}.
  91. @table @samp
  92. @item uniform_color
  93. Blend onto a uniform background color
  94. @item checkerboard
  95. Blend onto a checkerboard
  96. @item none
  97. No blending
  98. @end table
  99. @end table
  100. @c man end SCALER OPTIONS