Rebuild user manual
[privoxy.git] / deanimate.h
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
45 /*
46  * A struct that holds a buffer, a read/write offset,
47  * and the buffer's capacity.
48  */
49 struct binbuffer
50 {
51    char *buffer;
52    size_t offset;
53    size_t size;
54 };
55
56 /*
57  * Function prototypes
58  */
59 extern int gif_deanimate(struct binbuffer *src, struct binbuffer *dst, int get_first_image);
60 extern void buf_free(struct binbuffer *buf);
61
62
63 #endif /* ndef DEANIMATE_H_INCLUDED */
64
65 /*
66   Local Variables:
67   tab-width: 3
68   end:
69 */