From b532ef0866cefe260ad0f08550f7c40d3580d0d7 Mon Sep 17 00:00:00 2001 From: Javier Celaya Date: Thu, 13 Nov 2014 17:00:58 +0100 Subject: Add LZ4 compression support. - Add lz4 encoder to compress an image of type LZ4 (see spice_common). - Add code in red_worker to use LZ4 when it is enabled, and the client supports it through its display capability, or fallback to LZ. - Add enable_lz4 switch in the configure script. Show LZ4 support at the end. --- server/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/Makefile.am') diff --git a/server/Makefile.am b/server/Makefile.am index f162a184..3cef2430 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -6,6 +6,7 @@ AM_CPPFLAGS = \ -DRED_STATISTICS \ $(COMMON_CFLAGS) \ $(GLIB2_CFLAGS) \ + $(LZ4_CFLAGS) \ $(PIXMAN_CFLAGS) \ $(SASL_CFLAGS) \ $(SLIRP_CFLAGS) \ @@ -35,6 +36,7 @@ libspice_server_la_LIBADD = \ $(GL_LIBS) \ $(GLIB2_LIBS) \ $(JPEG_LIBS) \ + $(LZ4_LIBS) \ $(LIBRT) \ $(PIXMAN_LIBS) \ $(SASL_LIBS) \ @@ -75,6 +77,8 @@ libspice_server_la_SOURCES = \ inputs_channel.h \ jpeg_encoder.c \ jpeg_encoder.h \ + lz4_encoder.c \ + lz4_encoder.h \ main_channel.c \ main_channel.h \ mjpeg_encoder.c \ -- cgit