From 7832204c99e78d021b6fbe1a6f996cc5c89fb054 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 13 Apr 2020 20:42:34 +0200 Subject: zimg: add support for 1 bit per pixel formats Again worthless, slow, and only for libswscale parity. With this, we support all formats libswscale supports, except bayer input, and rgb4/bgr4 output. We even support some formats libswscale doesn't. It's possible that the zimg wrapper isn't always as fast as libswscale. But there is optimization potential: the inner repack loops are self-contained enough that they could be reasonably be implemented in assembler (probably), and doing everything slice-wise should reduce the overhead of the separate pack/unpack stages. --- test/ref/zimg_formats.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ref/zimg_formats.txt b/test/ref/zimg_formats.txt index ef5b650a3f..26d260a70e 100644 --- a/test/ref/zimg_formats.txt +++ b/test/ref/zimg_formats.txt @@ -74,8 +74,8 @@ grayf32be Zin Zout SWSin SWSout | mediacodec | mmal | - monob SWSin SWSout | - monow SWSin SWSout | + monob Zin Zout SWSin SWSout | + monow Zin Zout SWSin SWSout | nv12 Zin Zout SWSin SWSout | nv16 Zin Zout | nv20 Zin Zout | -- cgit v1.2.3