gif89a.h ( File view )

  • By 2010-10-11
  • View(s):5
  • Download(s):0
  • Point(s): 1
			#if !defined(_GIF89A_)
#define _GIF89A_

#include <fstream.h>
#include <windows.h>

typedef struct
{
	BOOL active;
	UINT disposalMethod;
	BOOL userInputFlag;
	BOOL trsFlag;
	WORD delayTime;
	UINT trsColorIndex;

}GCTRLEXT;

typedef struct 
{
	WORD imageLPos;
	WORD imageTPos;
	WORD imageWidth;
	WORD imageHeight;
	BOOL lFlag;
	BOOL interlaceFlag;
	BOOL sortFlag;
	UINT lSize;
	BYTE *pColorTable;
	BYTE *dataBuf;
	GCTRLEXT ctrlExt;

}FRAME;
typedef FRAME *LPFRAME;
typedef const FRAME *LPCFRAME;

typedef struct 
{
	UINT frames;
	WORD scrWidth,scrHeight;
	BOOL gFlag;
	UINT colorRes;
	BOOL gSort;
	UINT gSize;
	UINT BKColorIdx;
	UINT pixelAspectRatio;
	BYTE *gColorTable;

}GLOBAL_INFO;
typedef GLOBAL_INFO *LPGLOBAL_INFO;
typedef const GLOBAL_INFO *LPCGLOBAL_INFO;

typedef struct
{
	UINT len;
	unsigned char* p;

}STRING_TABLE_ENTRY;

class CGif89a
{

private:
	ifstream ifs;
	char version[4];
	BOOL error;
	BOOL opened;
	BOOL inMem;
	BYTE gColorTable[256*3];
	BYTE lColorTable[256*3];
	streampos dataStart;
	FRAME *allFrames;
	UINT curIndex;
private:
	UINT chec
...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
gif89a.cpp13.19 kB10-23-00|12:42
gif89a.doc281.50 kB10-10-00|20:22
gif89a.h1.64 kB10-17-00|12:43
gifinfo.cpp1.84 kB10-18-00|17:04
gifinfo.exe52.00 kB10-23-00|12:42
lzw.doc42.50 kB10-13-00|20:11
...
Sponsored links

gif89a.h (74.57 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D