aboutsummaryrefslogtreecommitdiffstats
path: root/common/jpeg/rdgif.c
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2009-06-25 20:41:17 +0000
committerDRC <dcommander@users.sourceforge.net>2009-06-25 20:41:17 +0000
commitf8a965e1c38c41fe8d7231589ec363e3e57a7d9b (patch)
tree067fd0af986deaae23e9592bcee58c149052e29b /common/jpeg/rdgif.c
parent246c3d951eefc593a1aaaed807cf294ccd9e3ee9 (diff)
downloadtigervnc-f8a965e1c38c41fe8d7231589ec363e3e57a7d9b.tar.gz
tigervnc-f8a965e1c38c41fe8d7231589ec363e3e57a7d9b.zip
Add back in cjpeg and djpeg utilities for testing purposes
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3859 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/jpeg/rdgif.c')
-rw-r--r--common/jpeg/rdgif.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/common/jpeg/rdgif.c b/common/jpeg/rdgif.c
new file mode 100644
index 00000000..b27c1675
--- /dev/null
+++ b/common/jpeg/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 */