Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 1 | /* |
| 2 | * rdgif.c |
| 3 | * |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 4 | * Copyright (C) 1991-1997, Thomas G. Lane. |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 5 | * This file is part of the Independent JPEG Group's software. |
DRC | 7e3acc0 | 2015-10-10 10:25:46 -0500 | [diff] [blame] | 6 | * For conditions of distribution and use, see the accompanying README.ijg |
| 7 | * file. |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 8 | * |
| 9 | * This file contains routines to read input images in GIF format. |
| 10 | * |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 11 | ***************************************************************************** |
| 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. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 16 | * |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 17 | * We are required to state that |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 18 | * "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 | |
DRC | e5eaf37 | 2014-05-09 18:00:32 +0000 | [diff] [blame] | 23 | #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */ |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 24 | |
| 25 | #ifdef GIF_SUPPORTED |
| 26 | |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 27 | /* |
| 28 | * The module selection routine for GIF format input. |
| 29 | */ |
| 30 | |
Thomas G. Lane | 489583f | 1996-02-07 00:00:00 +0000 | [diff] [blame] | 31 | GLOBAL(cjpeg_source_ptr) |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 32 | jinit_read_gif (j_compress_ptr cinfo) |
| 33 | { |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 34 | fprintf(stderr, "GIF input is unsupported for legal reasons. Sorry.\n"); |
| 35 | exit(EXIT_FAILURE); |
DRC | e5eaf37 | 2014-05-09 18:00:32 +0000 | [diff] [blame] | 36 | return NULL; /* keep compiler happy */ |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | #endif /* GIF_SUPPORTED */ |