rdgif.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * rdgif.c
  3. *
  4. * Copyright (C) 1991-1997, Thomas G. Lane.
  5. * This file is part of the Independent JPEG Group's software.
  6. * For conditions of distribution and use, see the accompanying README.ijg
  7. * file.
  8. *
  9. * This file contains routines to read input images in GIF format.
  10. *
  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. *****************************************************************************
  16. *
  17. * We are required to state that
  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. #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */
  23. #ifdef GIF_SUPPORTED
  24. /*
  25. * The module selection routine for GIF format input.
  26. */
  27. GLOBAL(cjpeg_source_ptr)
  28. jinit_read_gif(j_compress_ptr cinfo)
  29. {
  30. fprintf(stderr, "GIF input is unsupported for legal reasons. Sorry.\n");
  31. exit(EXIT_FAILURE);
  32. return NULL; /* keep compiler happy */
  33. }
  34. #endif /* GIF_SUPPORTED */