deanimate.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #ifndef DEANIMATE_H_INCLUDED
  2. #define DEANIMATE_H_INCLUDED
  3. /*********************************************************************
  4. *
  5. * File : $Source: /cvsroot/ijbswa/current/deanimate.h,v $
  6. *
  7. * Purpose : Declares functions to manipulate binary images on the
  8. * fly. High-level functions include:
  9. * - Deanimation of GIF images
  10. *
  11. * Functions declared include: gif_deanimate and buf_free.
  12. *
  13. *
  14. * Copyright : Written by and Copyright (C) 2001 - 2004 by the the
  15. * Privoxy team. https://www.privoxy.org/
  16. *
  17. * Based on ideas from the Image::DeAnim Perl module by
  18. * Ken MacFarlane, <ksm+cpan@universal.dca.net>
  19. *
  20. * Based on the Internet Junkbuster originally written
  21. * by and Copyright (C) 1997 Anonymous Coders and
  22. * Junkbusters Corporation. http://www.junkbusters.com
  23. *
  24. * This program is free software; you can redistribute it
  25. * and/or modify it under the terms of the GNU General
  26. * Public License as published by the Free Software
  27. * Foundation; either version 2 of the License, or (at
  28. * your option) any later version.
  29. *
  30. * This program is distributed in the hope that it will
  31. * be useful, but WITHOUT ANY WARRANTY; without even the
  32. * implied warranty of MERCHANTABILITY or FITNESS FOR A
  33. * PARTICULAR PURPOSE. See the GNU General Public
  34. * License for more details.
  35. *
  36. * The GNU General Public License should be included with
  37. * this file. If not, you can view it at
  38. * http://www.gnu.org/copyleft/gpl.html
  39. * or write to the Free Software Foundation, Inc., 59
  40. * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  41. *
  42. *********************************************************************/
  43. /*
  44. * A struct that holds a buffer, a read/write offset,
  45. * and the buffer's capacity.
  46. */
  47. struct binbuffer
  48. {
  49. char *buffer;
  50. size_t offset;
  51. size_t size;
  52. };
  53. /*
  54. * Function prototypes
  55. */
  56. extern int gif_deanimate(struct binbuffer *src, struct binbuffer *dst, int get_first_image);
  57. extern void buf_free(struct binbuffer *buf);
  58. #endif /* ndef DEANIMATE_H_INCLUDED */
  59. /*
  60. Local Variables:
  61. tab-width: 3
  62. end:
  63. */