File: ungif.h

package info (click to toggle)
afterstep 2.2.12-18.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,184 kB
  • sloc: ansic: 201,695; sh: 5,894; xml: 3,721; makefile: 2,094; perl: 1,558; cpp: 811
file content (42 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef UNGIF_H_HEADER_INCLUDED
#define UNGIF_H_HEADER_INCLUDED

#ifdef HAVE_GIF		/* GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF */

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __GNUC__
#define ASIM_PrintGifError() do{ fprintf( stderr, "%s():%d:<%s> ",__FUNCTION__, __LINE__, path?path:"null" ); PrintGifError(); }while(0)
#else
#define ASIM_PrintGifError() do{ PrintGifError(); }while(0)
#endif

#define GIF_GCE_DELAY_BYTE_LOW	1
#define GIF_GCE_DELAY_BYTE_HIGH	2
#define GIF_GCE_TRANSPARENCY_BYTE	3
#define GIF_NETSCAPE_REPEAT_BYTE_LOW	1
#define GIF_NETSCAPE_REPEAT_BYTE_HIGH	2

void free_gif_saved_image( SavedImage *sp, Bool reusable );
void free_gif_saved_images( SavedImage *images, int count );


int fread_gif( GifFileType *gif, GifByteType* buf, int len );
GifFileType* open_gif_read( FILE *in_stream );

int get_gif_image_desc( GifFileType *gif, SavedImage *im );

int get_gif_saved_images( GifFileType *gif, int subimage, SavedImage **ret, int *ret_images  );

int write_gif_saved_images( GifFileType *gif, SavedImage *images, unsigned int count );

#ifdef __cplusplus
}
#endif

#endif			/* GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF GIF */


#endif