From: Pierre Ossman Date: Wed, 9 Jul 2014 12:12:12 +0000 (+0200) Subject: Add more 8 bpp conversion tests X-Git-Tag: v1.3.90~44^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e18132cec26c7364d30c29d4837f5ccc4b2803c0;p=tigervnc.git Add more 8 bpp conversion tests --- diff --git a/tests/pixelconv.cxx b/tests/pixelconv.cxx index 1d19b88e..2676daa9 100644 --- a/tests/pixelconv.cxx +++ b/tests/pixelconv.cxx @@ -180,6 +180,19 @@ int main(int argc, char **argv) srcpf.parse("rgb232"); doTests(dstpf, srcpf); + /* rgb232 targets */ + + dstpf.parse("rgb232"); + + srcpf.parse("rgb888"); + doTests(dstpf, srcpf); + + srcpf.parse("rgb565"); + doTests(dstpf, srcpf); + + srcpf.parse("bgr232"); + doTests(dstpf, srcpf); + /* rgb565 with endian conversion (both ways) */ dstpf = rfb::PixelFormat(32, 24, false, true, 255, 255, 255, 0, 8, 16);