You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
3.1KB

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