path: root/
diff options
authorwm4 <wm4@nowhere>2019-10-20 01:54:45 +0200
committerwm4 <wm4@nowhere>2019-10-20 02:17:31 +0200
commit07aa29ed8e11797310bbc8d569cc58e29bb794e3 (patch)
tree12f04a4c2f70fdc40bf8cf7060635bccfff06935 /
parentfd539a542f04e88a8c5b245cc3c3b80b03c2a4b7 (diff)
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.
Diffstat (limited to '')
1 files changed, 1 insertions, 0 deletions
diff --git a/ b/
index d148ac7ae9..63495689fb 100644
--- a/
+++ b/
@@ -507,6 +507,7 @@ def build(ctx):
( "video/out/win_state.c"),
( "video/out/x11_common.c", "x11" ),
( "video/sws_utils.c" ),
+ ( "video/zimg.c", "zimg" ),
( "video/vaapi.c", "vaapi" ),
( "video/vdpau.c", "vdpau" ),
( "video/vdpau_mixer.c", "vdpau" ),