blob: ff9258d6eb18f972871502cfde80416251631fe4 [file] [log] [blame]
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +00001/*
2 * rdgif.c
3 *
Thomas G. Lane5ead57a1998-03-27 00:00:00 +00004 * Copyright (C) 1991-1997, Thomas G. Lane.
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +00005 * This file is part of the Independent JPEG Group's software.
Alex Naidis6eb7d372016-10-16 23:10:08 +02006 * For conditions of distribution and use, see the accompanying README.ijg
7 * file.
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +00008 *
9 * This file contains routines to read input images in GIF format.
10 *
Thomas G. Lane5ead57a1998-03-27 00:00:00 +000011 *****************************************************************************
12 * NOTE: to avoid entanglements with Unisys' patent on LZW compression, *
13 * the ability to read GIF files has been removed from the IJG distribution. *
14 * Sorry about that. *
15 *****************************************************************************
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +000016 *
Thomas G. Lane5ead57a1998-03-27 00:00:00 +000017 * We are required to state that
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +000018 * "The Graphics Interchange Format(c) is the Copyright property of
19 * CompuServe Incorporated. GIF(sm) is a Service Mark property of
20 * CompuServe Incorporated."
21 */
22
DRCe5eaf372014-05-09 18:00:32 +000023#include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +000024
25#ifdef GIF_SUPPORTED
26
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +000027/*
28 * The module selection routine for GIF format input.
29 */
30
Thomas G. Lane489583f1996-02-07 00:00:00 +000031GLOBAL(cjpeg_source_ptr)
Leon Scroggins III3993b372018-07-16 10:43:45 -040032jinit_read_gif(j_compress_ptr cinfo)
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +000033{
Thomas G. Lane5ead57a1998-03-27 00:00:00 +000034 fprintf(stderr, "GIF input is unsupported for legal reasons. Sorry.\n");
35 exit(EXIT_FAILURE);
DRCe5eaf372014-05-09 18:00:32 +000036 return NULL; /* keep compiler happy */
Thomas G. Lane36a4ccc1994-09-24 00:00:00 +000037}
38
39#endif /* GIF_SUPPORTED */