mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
video: add zimg wrapper
This provides a very similar API to sws_utils.h, which can be used to convert and scale from one mp_image to another. This commit adds only the code, but does not use it anywhere. The code is quite preliminary and barely tested. It supports only a few pixel formats, and will return failure for many others. (Unlike libswscale, which tries to support anything that FFmpeg knows.) zimg itself accepts only planar formats. Supporting other formats requires manual packing/unpacking. (Compared to libswscale, the zimg API is generally lower level, but allows for more flexibility.) Only BGR0 output was actually tested. It appears to work.
This commit is contained in:
@@ -3830,6 +3830,14 @@ Software Scaler
|
||||
``--sws-cvs=<v>``
|
||||
Software scaler chroma vertical shifting. See ``--sws-scaler``.
|
||||
|
||||
``--zimg--scaler=<point|bilinear|bicubic|spline16|lanczos>``
|
||||
Zimg luma scaler to use (default: bilinear).
|
||||
|
||||
``--zimg-fast=<yes|no>``
|
||||
Allow optimizations that help with performance, but reduce quality (default:
|
||||
yes). Currently, this may simplify gamma conversion operations.
|
||||
|
||||
|
||||
Audio Resampler
|
||||
---------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user