From d8002f1dde94771952b301f4ebe331c52bc71871 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 May 2020 17:56:44 +0200 Subject: video: separate repacking code from zimg and make it independent For whatever purpose. If anything, this makes the zimg wrapper cleaner. The added tests are not particular exhaustive, but nice to have. This also makes the scale_zimg.c test pretty useless, because it only tests repacking (going through the zimg wrapper). In theory, the repack_tests things could also be used on scalers, but I guess it doesn't matter. Some things are added over the previous zimg wrapper code. For example, some fringe formats can now be expanded to 8 bit per component for convenience. --- wscript_build.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index 2a656a604d..93933e7371 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -402,6 +402,7 @@ def build(ctx): ( "test/json.c", "tests" ), ( "test/linked_list.c", "tests" ), ( "test/paths.c", "tests" ), + ( "test/repack.c", "tests && zimg" ), ( "test/scale_sws.c", "tests" ), ( "test/scale_test.c", "tests" ), ( "test/scale_zimg.c", "tests && zimg" ), @@ -529,6 +530,7 @@ def build(ctx): ( "video/out/win32/droptarget.c", "win32-desktop" ), ( "video/out/win_state.c"), ( "video/out/x11_common.c", "x11" ), + ( "video/repack.c" ), ( "video/sws_utils.c" ), ( "video/zimg.c", "zimg" ), ( "video/vaapi.c", "vaapi" ), -- cgit v1.2.3