summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-07-09 14:12:12 +0200
committerPierre Ossman <ossman@cendio.se>2014-07-09 14:16:08 +0200
commite18132cec26c7364d30c29d4837f5ccc4b2803c0 (patch)
tree30e516748e8d7ab945243081fd3e0eab482247a8
parent8163f54b35f0faee2ac8a1eea1098f1464bcf115 (diff)
downloadtigervnc-e18132cec26c7364d30c29d4837f5ccc4b2803c0.tar.gz
tigervnc-e18132cec26c7364d30c29d4837f5ccc4b2803c0.zip
Add more 8 bpp conversion tests
-rw-r--r--tests/pixelconv.cxx13
1 files changed, 13 insertions, 0 deletions
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);