diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2017-08-03 16:24:38 +0200 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2018-05-25 17:04:23 +0100 |
commit | d58a5b6a5a25134396661e1d805dfc567181e3af (patch) | |
tree | 81fd73bdea685954d183c2a6c077126018a47eb8 /m4 | |
parent | 5312ea3f359fbeeceef8be0a515d7600dba2b6c6 (diff) |
quic: Add test case for compression/decompression
This only adds a basic test relying on gdk-pixbuf.
The main limitation is that gdk-pixbuf does not handle 16bpp images,
nor 32bpp/no alpha images. I should have picked something else instead ;)
This allows at least to exercise the QUIC_IMAGE_TYPE_RGB24 and
QUIC_IMAGE_TYPE_RGBA codepaths.
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/spice-deps.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4 index e3ec8be..7c0cca4 100644 --- a/m4/spice-deps.m4 +++ b/m4/spice-deps.m4 @@ -161,6 +161,21 @@ AC_DEFUN([SPICE_CHECK_GLIB2], [ PKG_CHECK_MODULES(GLIB2, glib-2.0 >= 2.38 gio-2.0 >= 2.38 gthread-2.0 >= 2.38) ]) +# SPICE_CHECK_GDK_PIXBUF +# ---------------------- +# Check for the availability of gdk-pixbuf. If found, it will return the flags to use +# in the GDK_PIXBUF_CFLAGS and GDK_PIXBUF_LIBS variables, and it will define a +# HAVE_GDK_PIXBUF preprocessor symbol as well as a HAVE_GDK_PIXBUF Makefile conditional. +# ---------------- +AC_DEFUN([SPICE_CHECK_GDK_PIXBUF], [ + PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.26], [have_gdk_pixbuf=yes], [have_gdk_pixbuf=no]) + + AM_CONDITIONAL([HAVE_GDK_PIXBUF], [test "x$have_gdk_pixbuf" = "xyes"]) + if test "x$have_gdk_pixbuf" = "xyes" ; then + AC_DEFINE([HAVE_GDK_PIXBUF], [1], [Define if gdk-pixbuf was found]) + fi +]) + # SPICE_CHECK_PYTHON_MODULES() # -------------------------- # Adds a --enable-python-checks configure flags as well as checks for the |