Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
gif2png.h
Package: gif2png-2.3.2.tar.gz [view]
Upload User: sorock1981
Upload Date: 2007-01-06
Package Size: 73k
Code Size: 2k
Category:
Picture Viewer
Development Platform:
Unix_Linux
- /* See the file COPYING for conditions of use */
- /* get png type definitions */
- #include "png.h"
- #define GIFterminator ';'
- #define GIFextension '!'
- #define GIFimage ','
- #define GIFcomment 0xfe
- #define GIFapplication 0xff
- #define GIFplaintext 0x01
- #define GIFgraphicctl 0xf9
- #define MAXCMSIZE 256
- typedef unsigned char byte;
- typedef png_color GifColor;
- struct GIFimagestruct {
- GifColor colors[MAXCMSIZE];
- unsigned long color_count[MAXCMSIZE];
- int offset_x;
- int offset_y;
- int width;
- int height;
- int trans;
- int interlace;
- };
- struct GIFelement {
- struct GIFelement *next;
- char GIFtype;
- #ifndef TMPFILE
- byte *data;
- long allocated_size;
- #else
- unsigned long file_offset;
- #endif
- long size;
- /* only used if GIFtype==GIFimage */
- struct GIFimagestruct *imagestruct;
- };
- extern struct gif_scr{
- unsigned int Width;
- unsigned int Height;
- GifColor ColorMap[MAXCMSIZE];
- unsigned int ColorMap_present;
- unsigned int BitPixel;
- unsigned int ColorResolution;
- int Background;
- unsigned int AspectRatio;
- } GifScreen;
- int ReadGIF(FILE *fd);
- int MatteGIF(GifColor matte);
- void allocate_element(void);
- void store_block(char *data, int size);
- void allocate_image(void);
- void set_size(long);
- void *xalloc(unsigned long s);
- void *xrealloc(void *p, unsigned long s);
- void fix_current(void);
- byte *access_data(struct GIFelement *e, unsigned long pos, unsigned long len);
- void free_mem(void);
- int interlace_line(int height, int line);
- int inv_interlace_line(int height, int line);
- extern struct GIFelement first;
- extern struct GIFelement *current;
- extern int recover;
- #ifdef TMPFILE
- extern FILE *tempfile;
- #endif
- extern const char version[];
- extern const char compile_info[];
- extern int skip_pte;