亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ximagif.h

?? 信息隱藏里 large payload 源碼
?? H
字號(hào):
/*
 * File:	ximagif.h
 * Purpose:	GIF Image Class Loader and Writer
 */
/* ==========================================================
 * CxImageGIF (c) 07/Aug/2001 Davide Pizzolato - www.xdp.it
 * For conditions of distribution and use, see copyright notice in ximage.h
 *
 * Special thanks to Troels Knakkergaard for new features, enhancements and bugfixes
 *
 * original CImageGIF  and CImageIterator implementation are:
 * Copyright:	(c) 1995, Alejandro Aguilar Sierra <asierra(at)servidor(dot)unam(dot)mx>
 *
 * 6/15/97 Randy Spann: Added GIF87a writing support
 *         R.Spann@ConnRiver.net
 *
 * DECODE.C - An LZW decoder for GIF
 * Copyright (C) 1987, by Steven A. Bennett
 * Copyright (C) 1994, C++ version by Alejandro Aguilar Sierra
 *
 * In accordance with the above, I want to credit Steve Wilhite who wrote
 * the code which this is heavily inspired by...
 *
 * GIF and 'Graphics Interchange Format' are trademarks (tm) of
 * Compuserve, Incorporated, an H&R Block Company.
 *
 * Release Notes: This file contains a decoder routine for GIF images
 * which is similar, structurally, to the original routine by Steve Wilhite.
 * It is, however, somewhat noticably faster in most cases.
 *
 * ==========================================================
 */

#if !defined(__ximaGIF_h)
#define __ximaGIF_h

#include "ximage.h"

#if CXIMAGE_SUPPORT_GIF

typedef short int       code_int;   

/* Various error codes used by decoder */
#define OUT_OF_MEMORY -10
#define BAD_CODE_SIZE -20
#define READ_ERROR -1
#define WRITE_ERROR -2
#define OPEN_ERROR -3
#define CREATE_ERROR -4
#define MAX_CODES   4095
#define GIFBUFTAM 16383
#define TRANSPARENCY_CODE 0xF9

//LZW GIF Image compression
#define MAXBITSCODES    12
#define HSIZE  5003     /* 80% occupancy */
#define MAXCODE(n_bits) (((code_int) 1 << (n_bits)) - 1)
#define HashTabOf(i)    htab[i]
#define CodeTabOf(i)    codetab[i]


class CImageIterator;
class DLL_EXP CxImageGIF: public CxImage
{
#pragma pack(1)

typedef struct tag_gifgce{
  BYTE transpcolflag:1;
  BYTE userinputflag:1;
  BYTE dispmeth:3;
  BYTE res:3;
  WORD delaytime;
  BYTE transpcolindex;
} struct_gifgce;

typedef struct tag_dscgif{		/* Logic Screen Descriptor  */
  char header[6];				/* Firma and version */
  WORD scrwidth;
  WORD scrheight;
  char pflds;
  char bcindx;
  char pxasrat;
} struct_dscgif;

typedef struct tag_image{      /* Image Descriptor */
  WORD l;
  WORD t;
  WORD w;
  WORD h;
  BYTE   pf;
} struct_image;

typedef struct tag_TabCol{		/* Tabla de colores */
  short colres;					/* color resolution */
  short sogct;					/* size of global color table */
  rgb_color paleta[256];		/* paleta */
} struct_TabCol;

typedef struct tag_RLE{
	int rl_pixel;
	int rl_basecode;
	int rl_count;
	int rl_table_pixel;
	int rl_table_max;
	int just_cleared;
	int out_bits;
	int out_bits_init;
	int out_count;
	int out_bump;
	int out_bump_init;
	int out_clear;
	int out_clear_init;
	int max_ocodes;
	int code_clear;
	int code_eof;
	unsigned int obuf;
	int obits;
	unsigned char oblock[256];
	int oblen;
} struct_RLE;
#pragma pack()

public:
	CxImageGIF(): CxImage(CXIMAGE_FORMAT_GIF) {m_loops=0; m_dispmeth=0; m_comment[0]='\0';}

//	bool Load(const char * imageFileName){ return CxImage::Load(imageFileName,CXIMAGE_FORMAT_GIF);}
//	bool Save(const char * imageFileName){ return CxImage::Save(imageFileName,CXIMAGE_FORMAT_GIF);}
	
	bool Decode(CxFile * fp);
	bool Decode(FILE *fp) { CxIOFile file(fp); return Decode(&file); }

#if CXIMAGE_SUPPORT_ENCODE
	bool Encode(CxFile * fp);
	bool Encode(CxFile * fp, CxImage ** pImages, int pagecount, bool bLocalColorMap = false);
	bool Encode(FILE *fp) { CxIOFile file(fp); return Encode(&file); }
	bool Encode(FILE *fp, CxImage ** pImages, int pagecount, bool bLocalColorMap = false)
				{ CxIOFile file(fp); return Encode(&file, pImages, pagecount, bLocalColorMap); }
#endif // CXIMAGE_SUPPORT_ENCODE

	void SetLoops(int loops);
	long GetLoops();
	void SetComment(const char* sz_comment_in);
	void GetComment(char* sz_comment_out);
	void SetDisposalMethod(int dm);
	long GetDisposalMethod();

protected:
	bool DecodeExtension(CxFile *fp);
	void EncodeHeader(CxFile *fp);
	void EncodeLoopExtension(CxFile *fp);
	void EncodeExtension(CxFile *fp);
	void EncodeBody(CxFile *fp, bool bLocalColorMap = false);
	void EncodeComment(CxFile *fp);
	bool EncodeRGB(CxFile *fp);
	void GifMix(CxImage & imgsrc2, struct_image & imgdesc);
	
	struct_gifgce gifgce;

	int             curx, cury;
	long             CountDown;
	unsigned long    cur_accum;
	int              cur_bits;
	int interlaced, iypos, istep, iheight, ipass;
	int ibf;
	int ibfmax;
	BYTE buf[GIFBUFTAM + 1];
// Implementation
	int GifNextPixel ();
	void Putword (int w, CxFile* fp );
	void compressNONE (int init_bits, CxFile* outfile);
	void compressLZW (int init_bits, CxFile* outfile);
	void output (code_int code );
	void cl_hash (long hsize);
	void char_out (int c);
	void flush_char ();
	short init_exp(short size);
	short get_next_code(CxFile*);
	short decoder(CxFile*, CImageIterator* iter, short linewidth, int &bad_code_count);
	int get_byte(CxFile*);
	int out_line(CImageIterator* iter, unsigned char *pixels, int linelen);
	int get_num_frames(CxFile *f,struct_TabCol* TabColSrc,struct_dscgif* dscgif);
	long seek_next_image(CxFile* fp, long position);

	short curr_size;                     /* The current code size */
	short clear;                         /* Value for a clear code */
	short ending;                        /* Value for a ending code */
	short newcodes;                      /* First available code */
	short top_slot;                      /* Highest code for current size */
	short slot;                          /* Last read code */

	/* The following static variables are used
	* for seperating out codes */
	short navail_bytes;              /* # bytes left in block */
	short nbits_left;                /* # bits left in current BYTE */
	BYTE b1;                           /* Current BYTE */
	BYTE byte_buff[257];               /* Current block */
	BYTE *pbytes;                      /* Pointer to next BYTE in block */
	/* The reason we have these seperated like this instead of using
	* a structure like the original Wilhite code did, is because this
	* stuff generally produces significantly faster code when compiled...
	* This code is full of similar speedups...  (For a good book on writing
	* C for speed or for space optomisation, see Efficient C by Tom Plum,
	* published by Plum-Hall Associates...)
	*/
	BYTE stack[MAX_CODES + 1];            /* Stack for storing pixels */
	BYTE suffix[MAX_CODES + 1];           /* Suffix table */
	WORD prefix[MAX_CODES + 1];           /* Prefix linked list */

//LZW GIF Image compression routines
	long htab [HSIZE];
	unsigned short codetab [HSIZE];
	int n_bits;				/* number of bits/code */
	code_int maxcode;		/* maximum code, given n_bits */
	code_int free_ent;		/* first unused entry */
	int clear_flg;
	int g_init_bits;
	CxFile* g_outfile;
	int ClearCode;
	int EOFCode;

	int a_count;
	char accum[256];

	char m_comment[256];
	int m_loops;
	int m_dispmeth;

//RLE compression routines
	void compressRLE( int init_bits, CxFile* outfile);
	void rle_clear(struct_RLE* rle);
	void rle_flush(struct_RLE* rle);
	void rle_flush_withtable(int count, struct_RLE* rle);
	void rle_flush_clearorrep(int count, struct_RLE* rle);
	void rle_flush_fromclear(int count,struct_RLE* rle);
	void rle_output_plain(int c,struct_RLE* rle);
	void rle_reset_out_clear(struct_RLE* rle);
	unsigned int rle_compute_triangle_count(unsigned int count, unsigned int nrepcodes);
	unsigned int rle_isqrt(unsigned int x);
	void rle_write_block(struct_RLE* rle);
	void rle_block_out(unsigned char c, struct_RLE* rle);
	void rle_block_flush(struct_RLE* rle);
	void rle_output(int val, struct_RLE* rle);
	void rle_output_flush(struct_RLE* rle);
};

#endif

#endif

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线精品视频免费播放| 91精品国产91久久久久久最新毛片| 亚洲精选在线视频| 日韩欧美不卡一区| 色婷婷av一区二区三区大白胸| 久久69国产一区二区蜜臀| 亚洲三级在线免费观看| 精品国产一区久久| 欧美日韩你懂的| 北条麻妃国产九九精品视频| 精品在线免费视频| 一区二区三区**美女毛片| 中文字幕精品综合| 久久久国产精品麻豆| 91.com视频| 91香蕉视频污在线| 国产精品一区二区久久不卡 | 国产性做久久久久久| 欧美日韩一区二区三区在线| 不卡的电影网站| 国产精品伊人色| 精品无人区卡一卡二卡三乱码免费卡| 亚洲一区二区视频| 亚洲欧美一区二区在线观看| 久久久91精品国产一区二区精品 | 久久免费的精品国产v∧| 欧美日韩国产大片| 91成人在线精品| 99久久777色| 成人免费毛片a| 国产精品一级片在线观看| 韩国女主播成人在线| 免费成人美女在线观看| 免费成人结看片| 日本成人中文字幕| 日本不卡免费在线视频| 婷婷开心激情综合| 亚洲国产精品久久不卡毛片| 亚洲国产一二三| 亚洲在线视频网站| 亚洲图片欧美视频| 亚洲超碰精品一区二区| 午夜精品久久久久久久蜜桃app| 亚洲精品成人在线| 亚洲猫色日本管| 亚洲国产另类精品专区| 一区二区三区视频在线观看| 美女视频黄免费的久久| 亚洲18女电影在线观看| 性欧美疯狂xxxxbbbb| 日韩高清欧美激情| 青青草97国产精品免费观看| 狂野欧美性猛交blacked| 韩日欧美一区二区三区| 国产成人在线视频网站| 波多野结衣视频一区| 一本一本大道香蕉久在线精品| 在线视频国内自拍亚洲视频| 欧美日韩国产精选| 欧美成人伊人久久综合网| 国产日韩精品一区| 亚洲六月丁香色婷婷综合久久 | 偷窥少妇高潮呻吟av久久免费 | 99视频在线观看一区三区| 色诱视频网站一区| 欧美人妖巨大在线| 久久综合给合久久狠狠狠97色69| 久久久久国产成人精品亚洲午夜| 综合激情成人伊人| 婷婷久久综合九色国产成人| 国内精品久久久久影院薰衣草| 不卡影院免费观看| 欧美老肥妇做.爰bbww| 久久综合狠狠综合久久激情 | 欧美私人免费视频| 精品少妇一区二区三区在线播放| 欧美国产精品专区| 亚洲一区二区三区四区五区黄| 蜜臀av性久久久久蜜臀aⅴ四虎 | 亚洲小说欧美激情另类| 麻豆国产91在线播放| 波多野结衣在线一区| 欧美日韩国产小视频| 国产网站一区二区| 午夜免费欧美电影| 不卡欧美aaaaa| 正在播放一区二区| 亚洲欧洲av色图| 美女精品自拍一二三四| 一本色道久久综合亚洲aⅴ蜜桃| 91麻豆精品国产91久久久 | 国产精品女同一区二区三区| 五月天丁香久久| 99久久99久久精品国产片果冻| 91精品国产品国语在线不卡| 国产精品沙发午睡系列990531| 日本欧美大码aⅴ在线播放| 91网上在线视频| 久久久一区二区三区| 偷拍日韩校园综合在线| 波多野结衣亚洲一区| 26uuu精品一区二区三区四区在线| 亚洲啪啪综合av一区二区三区| 久久国产生活片100| 精品视频在线免费| 中文字幕一区二区三区在线播放| 久久国产婷婷国产香蕉| 欧美日韩三级视频| 亚洲精品成人悠悠色影视| 国产91在线观看| 日韩精品一区二区三区视频在线观看 | 亚洲精品一二三四区| 精品一区二区av| 欧美日韩三级在线| 亚洲乱码中文字幕| 成人免费视频app| 久久精品一区八戒影视| 美女国产一区二区三区| 7799精品视频| 午夜视频一区二区三区| 色久综合一二码| 亚洲美女视频一区| 97se狠狠狠综合亚洲狠狠| 国产日产欧美一区二区三区| 国产九色精品成人porny| 精品久久久久久久人人人人传媒| 日韩 欧美一区二区三区| 欧美日韩午夜在线| 午夜精品一区二区三区电影天堂| 欧美亚洲综合色| 亚洲国产精品自拍| 欧美日韩国产片| 婷婷丁香激情综合| 678五月天丁香亚洲综合网| 亚洲高清免费观看| 欧美日韩国产乱码电影| 丝袜脚交一区二区| 91精品国产一区二区三区蜜臀| 午夜精品免费在线观看| 欧美一区二视频| 美女一区二区视频| 久久综合九色综合97婷婷女人| 韩国av一区二区三区| 久久女同性恋中文字幕| 粉嫩绯色av一区二区在线观看| 国产精品天天摸av网| 91伊人久久大香线蕉| 夜夜亚洲天天久久| 91精品国产一区二区人妖| 九九久久精品视频| 中文字幕的久久| 日本乱人伦aⅴ精品| 五月激情丁香一区二区三区| 日韩小视频在线观看专区| 激情丁香综合五月| 久久精品在线免费观看| av高清久久久| 五月激情综合婷婷| 久久欧美中文字幕| 91色在线porny| 午夜久久久影院| 精品免费一区二区三区| 成人黄色电影在线 | 欧美精品日韩一区| 精品一区二区在线看| 欧美经典一区二区| 91蜜桃网址入口| 亚洲一区二区三区四区不卡| 日韩一区和二区| 成人精品gif动图一区| 一区二区理论电影在线观看| 日韩一区二区三区免费观看| 国产一区二区三区精品欧美日韩一区二区三区| 国产欧美视频一区二区三区| 在线一区二区三区四区五区| 裸体健美xxxx欧美裸体表演| 中文字幕精品在线不卡| 欧美男生操女生| 成人av免费观看| 日本女优在线视频一区二区| 国产精品久久久久久久久快鸭| 欧美日韩在线播放三区| 国产一区二区三区四区在线观看| 亚洲少妇屁股交4| 精品奇米国产一区二区三区| 成人av动漫在线| 日本欧美韩国一区三区| 中文字幕一区二区日韩精品绯色| 91精品国产综合久久精品| 99久久亚洲一区二区三区青草| 丝袜诱惑亚洲看片| 亚洲欧洲av在线| 精品久久久久一区| 欧美日韩久久一区| 成人av在线网站| 国产原创一区二区| 一区二区三区中文免费| 国产欧美日本一区二区三区| 欧美精品少妇一区二区三区| 99久久精品费精品国产一区二区|