diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-01-31 16:21:06 -0800 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-02-01 07:03:32 -0800 |
commit | 70a18cd874a22452aca9e39e22275ed4538ed20b (patch) | |
tree | f67e6501f8d1195147a57a93230ed61fe7525b2a /distrib/jpeg-6b/rdgif.c | |
parent | 34f234393256163101b05c41ee4676bc68b57c65 (diff) | |
download | external_qemu-70a18cd874a22452aca9e39e22275ed4538ed20b.zip external_qemu-70a18cd874a22452aca9e39e22275ed4538ed20b.tar.gz external_qemu-70a18cd874a22452aca9e39e22275ed4538ed20b.tar.bz2 |
Include JPEG compression / decompression library into emulator build
We are going to need JPEG compression for transferring emulator's framebuffers to
the multi-touch supporting application running on an android device. The source
for JPEG compressor has been copied over from external/jpeg
To that I've added distrib/jpeg-6b/sources.make containing build instruction for
JPEG compressor. That file gets included into Makefile.common to compile JPEG
compressor sources along with the emulator sources.
Change-Id: I7bfccb7a10f873f90edabab5d3b1b2ca4dd57449
Diffstat (limited to 'distrib/jpeg-6b/rdgif.c')
-rw-r--r-- | distrib/jpeg-6b/rdgif.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/distrib/jpeg-6b/rdgif.c b/distrib/jpeg-6b/rdgif.c new file mode 100644 index 0000000..b27c167 --- /dev/null +++ b/distrib/jpeg-6b/rdgif.c @@ -0,0 +1,38 @@ +/* + * rdgif.c + * + * Copyright (C) 1991-1997, Thomas G. Lane. + * This file is part of the Independent JPEG Group's software. + * For conditions of distribution and use, see the accompanying README file. + * + * This file contains routines to read input images in GIF format. + * + ***************************************************************************** + * NOTE: to avoid entanglements with Unisys' patent on LZW compression, * + * the ability to read GIF files has been removed from the IJG distribution. * + * Sorry about that. * + ***************************************************************************** + * + * We are required to state that + * "The Graphics Interchange Format(c) is the Copyright property of + * CompuServe Incorporated. GIF(sm) is a Service Mark property of + * CompuServe Incorporated." + */ + +#include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */ + +#ifdef GIF_SUPPORTED + +/* + * The module selection routine for GIF format input. + */ + +GLOBAL(cjpeg_source_ptr) +jinit_read_gif (j_compress_ptr cinfo) +{ + fprintf(stderr, "GIF input is unsupported for legal reasons. Sorry.\n"); + exit(EXIT_FAILURE); + return NULL; /* keep compiler happy */ +} + +#endif /* GIF_SUPPORTED */ |