| OLD | NEW |
| 1 /* | 1 /* |
| 2 * rdgif.c | 2 * rdgif.c |
| 3 * | 3 * |
| 4 * Copyright (C) 1991-1997, Thomas G. Lane. | 4 * Copyright (C) 1991-1997, Thomas G. Lane. |
| 5 * This file is part of the Independent JPEG Group's software. | 5 * This file is part of the Independent JPEG Group's software. |
| 6 * For conditions of distribution and use, see the accompanying README file. | 6 * For conditions of distribution and use, see the accompanying README.ijg |
| 7 * file. |
| 7 * | 8 * |
| 8 * This file contains routines to read input images in GIF format. | 9 * This file contains routines to read input images in GIF format. |
| 9 * | 10 * |
| 10 ***************************************************************************** | 11 ***************************************************************************** |
| 11 * NOTE: to avoid entanglements with Unisys' patent on LZW compression, * | 12 * NOTE: to avoid entanglements with Unisys' patent on LZW compression, * |
| 12 * the ability to read GIF files has been removed from the IJG distribution. * | 13 * the ability to read GIF files has been removed from the IJG distribution. * |
| 13 * Sorry about that. * | 14 * Sorry about that. * |
| 14 ***************************************************************************** | 15 ***************************************************************************** |
| 15 * | 16 * |
| 16 * We are required to state that | 17 * We are required to state that |
| 17 * "The Graphics Interchange Format(c) is the Copyright property of | 18 * "The Graphics Interchange Format(c) is the Copyright property of |
| 18 * CompuServe Incorporated. GIF(sm) is a Service Mark property of | 19 * CompuServe Incorporated. GIF(sm) is a Service Mark property of |
| 19 * CompuServe Incorporated." | 20 * CompuServe Incorporated." |
| 20 */ | 21 */ |
| 21 | 22 |
| 22 #include "cdjpeg.h"» » /* Common decls for cjpeg/djpeg applications */ | 23 #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */ |
| 23 | 24 |
| 24 #ifdef GIF_SUPPORTED | 25 #ifdef GIF_SUPPORTED |
| 25 | 26 |
| 26 /* | 27 /* |
| 27 * The module selection routine for GIF format input. | 28 * The module selection routine for GIF format input. |
| 28 */ | 29 */ |
| 29 | 30 |
| 30 GLOBAL(cjpeg_source_ptr) | 31 GLOBAL(cjpeg_source_ptr) |
| 31 jinit_read_gif (j_compress_ptr cinfo) | 32 jinit_read_gif (j_compress_ptr cinfo) |
| 32 { | 33 { |
| 33 fprintf(stderr, "GIF input is unsupported for legal reasons. Sorry.\n"); | 34 fprintf(stderr, "GIF input is unsupported for legal reasons. Sorry.\n"); |
| 34 exit(EXIT_FAILURE); | 35 exit(EXIT_FAILURE); |
| 35 return NULL;» » » /* keep compiler happy */ | 36 return NULL; /* keep compiler happy */ |
| 36 } | 37 } |
| 37 | 38 |
| 38 #endif /* GIF_SUPPORTED */ | 39 #endif /* GIF_SUPPORTED */ |
| OLD | NEW |