ed5ccf23a838d5144a4937069b23fdeda8ccd77e
[privoxy.git] / deanimate.h
1 #ifndef _DEANIMATE_H
2 #define _DEANIMATE_H
3 #define DEANIMATE_H_VERSION "$Id: $"
4 /*********************************************************************
5  *
6  * File        :  $Source:  $
7  *
8  * Purpose     :  Declares functions to deanimate GIF images on the fly.
9  *                
10  *                Functions declared include: gif_deanimate, buf_free
11  *                
12  *
13  * Copyright   :  Written by and Copyright (C) 2001 Andreas S. Oesterhelt
14  *                for the SourceForge IJBSWA team. http://ijbswa.sourceforge.net
15  *
16  *                Based on ideas from the Image::DeAnim Perl module by
17  *                Ken MacFarlane, <ksm+cpan@universal.dca.net>
18  *
19  *                Based on the Internet Junkbuster originally written
20  *                by and Copyright (C) 1997 Anonymous Coders and 
21  *                Junkbusters Corporation.  http://www.junkbusters.com
22  *
23  *                This program is free software; you can redistribute it 
24  *                and/or modify it under the terms of the GNU General
25  *                Public License as published by the Free Software
26  *                Foundation; either version 2 of the License, or (at
27  *                your option) any later version.
28  *
29  *                This program is distributed in the hope that it will
30  *                be useful, but WITHOUT ANY WARRANTY; without even the
31  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
32  *                PARTICULAR PURPOSE.  See the GNU General Public
33  *                License for more details.
34  *
35  *                The GNU General Public License should be included with
36  *                this file.  If not, you can view it at
37  *                http://www.gnu.org/copyleft/gpl.html
38  *                or write to the Free Software Foundation, Inc., 59
39  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
40  *
41  * Revisions   :
42  *    $Log: $
43  *
44  *
45  *********************************************************************/
46 \f
47
48 /*
49  * A struct that holds a buffer, a read/write offset,
50  * and the buffer's capacity.
51  */
52 struct binbuffer
53 {
54    char *buffer; 
55    int offset;   
56    int size;    
57 };
58
59 /*
60  * Function prototypes
61  */
62 extern int gif_deanimate(struct binbuffer *src, struct binbuffer *dst);
63 extern void buf_free(struct binbuffer *buf);
64
65 /* 
66  * Revision control strings from this header and associated .c file
67  */
68 extern const char deanimate_rcs[];
69 extern const char deanimate_h_rcs[];
70
71 #ifdef __cplusplus
72 } /* extern "C" */
73 #endif
74
75 #endif /* ndef _DEANIMATE_H */
76
77 /*
78   Local Variables:
79   tab-width: 3
80   end:
81 */