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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gifdbl.c

?? Ming is a library for generating Macromedia Flash files (.swf), written in C, and includes useful ut
?? C
字號:
/* $Id: gifdbl.c,v 1.16 2008/02/13 12:22:51 krechert Exp $ */#include "ming_config.h"#include "libming.h"#include "error.h"#if !(USE_GIF) // {SWFDBLBitmapData newSWFDBLBitmapData_fromGifInput(SWFInput input){	SWF_error("newSWFDBLBitmapData_fromGifInput can't be used (no gif compiled into this build of Ming).\n");	return NULL;}SWFDBLBitmapData newSWFDBLBitmapData_fromGifFile(const char * fileName){	SWF_error("newSWFDBLBitmapData_fromGifFile can't be used (no gif compiled into this build of Ming).\n");	return NULL;}#else // def USE_GIF }{#include "bitmap.h"#include "dbl.h"#include "input.h"#include <stdlib.h>#include <stdio.h>#include <string.h>#include <math.h>#include <gif_lib.h>#include <zlib.h>/*void error(char *msg){  printf("%s:\n\n", msg);  PrintGifError();  exit(-1);}*//** * Get transparency color from graphic extension block * * Return: transparency color or -1 */int getTransparentColor(GifFileType * file){	int i,returnvalue=-1;	ExtensionBlock * ext = file->SavedImages[0].ExtensionBlocks; 	for (i=0; i < file->SavedImages[0].ExtensionBlockCount; i++, ext++) {		if (ext->Function == GRAPHICS_EXT_FUNC_CODE) {			if (ext->Bytes[0] & 1){   /* there is a transparent color */				if (!ext->Bytes[3]) returnvalue=255; // exception				else returnvalue=ext->Bytes[3]&0xff;			}		}	}	return returnvalue;}intreadGif(GifFileType *file, dblData result){		ColorMapObject *colorMap;	unsigned char *bits;	unsigned char *data;	unsigned char *p;	int i, nColors, size, alpha, bgColor, alignedWidth, bytesPerColor;	unsigned long outsize;	if(DGifSlurp(file) != GIF_OK)	//	error("Error slurping file");		return 0;	/* data should now be available */	/* Local colormap has precedence over Global colormap */	colorMap = file->Image.ColorMap ? file->Image.ColorMap : file->SColorMap;	nColors = colorMap->ColorCount;	alpha = getTransparentColor(file);	/* bgColor is the background color to fill the bitmap with	 * if an image is smaller than screen coordinates	 */	if (file->SColorMap)			/* There is a GlobalColorMap */		bgColor = file->SBackGroundColor;   /* The BackGroundColor is meaningful */	else	if (alpha >= 0)			/* There is a transparency color */		bgColor = alpha;			/* set the bgColor to tranparent */	else		bgColor = 0;			/* Don't know what to do here.					 * If this doesn't work, we could					 * create a new color and set the					 * alpha-channel to transparent					 * (unless we are using all the 256					 * colors, in which case either we					 * give up, or move to 16-bits palette					 */	result->hasalpha = 0;	bytesPerColor = 3;	if (alpha >= 0) {		bytesPerColor += 1;	/* if tranparent color, use the alpha							 * channel (RGBA instead of RGB)							 */		result->hasalpha = 1;	}		/* Ah! The Flash specs says scanlines must be DWORD ALIGNED!	 * (but image width is the correct number of pixels)	 */	alignedWidth = (file->SWidth + 3) & ~3;	/* size = size-of-colormap + size-of-bitmap */	size = (nColors * bytesPerColor) + (alignedWidth * file->SHeight);	data = malloc(size);	result->format = 3;	result->width = file->SWidth;	result->height = file->SHeight;	result->format2 = nColors-1;			/* size(colorMap) - 1 */	p = data;	/* create ColorMap */	for(i=0; i<nColors; ++i)	{		GifColorType c = colorMap->Colors[i];		if (bytesPerColor == 3) {	/* RGB */			*p++ = c.Red;			*p++ = c.Green;			*p++ = c.Blue;		} else {			/* RGBA */#if 1				/* You would think that an alpha value of 0				 * would mean fully transparent, but Flash				 * player doesn't seem to think so.				 * So, we just set the transparency color 				 * as 0,0,0,0				 */			if (i != alpha) {				*p++ = c.Red;				*p++ = c.Green;				*p++ = c.Blue;				*p++ = 255;	/* Fully opaque */			} else {				*p++ = 0;		/* red */				*p++ = 0;		/* green */				*p++ = 0;		/* blue */				*p++ = 0;		/* Fully transparent */    		}#else			*p++ = c.Red;			*p++ = c.Green;			*p++ = c.Blue;			*p++ = (i != alpha) ? 255 : 0; /* set alpha to 0 for transparent color */#endif		}	}	bits = file->SavedImages[0].RasterBits;	if (alignedWidth == file->SWidth	  && file->Image.Width == file->SWidth 	  && file->Image.Height == file->SHeight) {	/* we are all nicely aligned and don't need to move the bitmap around.	 * Just copy the bits into the output buffer.	 */		memcpy(p, bits, file->SWidth * file->SHeight);	} else {	/* here we need to pad the scanline or to move the bitmap around	 * (if the image is not at 0,0 in the logical screen)	 */		int screenWidth = file->SWidth;		int screenHeight = file->SHeight;		int imageTop = file->Image.Top;		int imageBottom = file->Image.Top + file->Image.Height;		int imageLeft = file->Image.Left;		int imageWidth = file->Image.Width;		for (i=0; i < screenHeight; i++, p += alignedWidth) {		/* the image is smaller than the logical "screen":		 * Fill the reminder with the background color.	 	*/			if (imageWidth != screenWidth)				memset(p, bgColor, screenWidth);		/* finally, copy scanline		 */			if (i >= imageTop && i < imageBottom) {				memcpy(p + imageLeft, bits, imageWidth);				bits += imageWidth;			}		}	}	/* Done! */	DGifCloseFile(file);	result->data = malloc(outsize = (int)floor(size*1.01+12));	/* zlib-compress the gif data */	compress2(result->data, &outsize, data, size, 9);	result->length = outsize;	free(data);	return 1;}/* *	giflib provides *	DGifOpenFileName - use for open from file *	DGifOpenFileHandle *	DGifOpen - use for open from input */SWFDBLBitmapData newSWFDBLBitmapData_fromGifFile(const char *fileName){	GifFileType *file;	SWFDBLBitmapData ret;	struct dbl_data gifdata;	if((file = DGifOpenFileName(fileName)) == NULL)		return NULL;	if(!readGif(file, &gifdata))		return NULL;	ret = newSWFDBLBitmapData_fromData(&gifdata);	// ret->input = NULL;	return ret;}static int gifReadFunc(GifFileType *gif, unsigned char *buf, int len){	SWFInput input = gif->UserData;	return SWFInput_read(input, buf, len);}SWFDBLBitmapData newSWFDBLBitmapData_fromGifInput(SWFInput input){	GifFileType *file;	SWFDBLBitmapData ret;	struct dbl_data gifdata;	if((file = DGifOpen(input, (InputFunc) gifReadFunc)) == NULL)		return NULL;	if(!readGif(file, &gifdata))		return NULL;	ret = newSWFDBLBitmapData_fromData(&gifdata);	// ret->input = NULL;	return ret;}#endif // def USE_GIF }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久毛片a| 成人免费一区二区三区视频| 久久99国产精品麻豆| 国产精品污污网站在线观看 | 国产成人一区在线| 性久久久久久久久| 国产午夜一区二区三区| 欧美日韩一区视频| 99精品国产视频| 国产成+人+日韩+欧美+亚洲| 免费高清在线一区| 亚洲成av人片一区二区梦乃| 亚洲色图制服诱惑 | 欧美日韩高清在线| 北条麻妃国产九九精品视频| 国精产品一区一区三区mba视频 | 成人一二三区视频| 日本系列欧美系列| 亚洲成a人片综合在线| 亚洲男人天堂av网| 国产精品乱码久久久久久| 26uuu色噜噜精品一区| 欧美一区二区在线看| 欧美色视频在线| 欧美婷婷六月丁香综合色| 色94色欧美sute亚洲线路二| av电影在线观看不卡| 成人精品免费视频| 岛国一区二区三区| 成人高清免费观看| 成人性生交大片免费看中文 | 国产欧美日韩视频一区二区| 欧美变态口味重另类| 日韩免费一区二区三区在线播放| 欧美丰满高潮xxxx喷水动漫| 欧美日韩免费观看一区二区三区| 91精品办公室少妇高潮对白| 色综合久久久久久久久| 99久久夜色精品国产网站| 成人免费精品视频| 成人激情电影免费在线观看| a级精品国产片在线观看| 风间由美一区二区三区在线观看| 岛国精品一区二区| 99久久国产综合精品女不卡| 91碰在线视频| 欧美色精品天天在线观看视频| 欧美精品在线一区二区| 欧美电影免费观看高清完整版在线 | 911精品产国品一二三产区 | 中文字幕在线不卡国产视频| 中文字幕一区二区在线观看| 亚洲女同女同女同女同女同69| 亚洲天堂免费在线观看视频| 洋洋av久久久久久久一区| 亚洲超碰精品一区二区| 日本欧美一区二区在线观看| 狂野欧美性猛交blacked| 国产成人在线视频网址| kk眼镜猥琐国模调教系列一区二区 | 久久伊人中文字幕| 欧美激情一区在线观看| 亚洲精品国产成人久久av盗摄| 亚洲国产精品久久艾草纯爱| 另类小说图片综合网| 国产福利不卡视频| 一道本成人在线| 欧美一卡二卡三卡四卡| 中文字幕免费一区| 亚洲一区在线视频观看| 青青草国产精品97视觉盛宴| 国产大片一区二区| 精品污污网站免费看| 2023国产精品| 亚洲永久免费av| 国产一区二区在线视频| 在线免费观看日本欧美| 日韩亚洲欧美成人一区| 亚洲欧美偷拍另类a∨色屁股| 天天色综合天天| 不卡在线视频中文字幕| 欧美高清性hdvideosex| 欧美国产成人精品| 天天综合天天综合色| 国产精品1区二区.| 欧美日韩另类一区| 国产精品毛片高清在线完整版| 亚洲国产综合人成综合网站| 国产成人啪午夜精品网站男同| 欧美日韩亚洲另类| 中文文精品字幕一区二区| 天堂蜜桃91精品| 99在线视频精品| 精品毛片乱码1区2区3区| 一区二区三区在线视频观看| 国产伦理精品不卡| 欧美精品日日鲁夜夜添| 亚洲精品ww久久久久久p站| 国产一区二区三区久久久| 欧美日韩成人一区二区| 亚洲视频一区二区在线观看| 国产一区二区视频在线播放| 91精选在线观看| 一区二区三区在线影院| 成人午夜av影视| 久久先锋资源网| 男女激情视频一区| 在线亚洲欧美专区二区| 亚洲国产成人在线| 国产精品自拍在线| 日韩一级大片在线观看| 午夜久久福利影院| 色嗨嗨av一区二区三区| 综合久久久久久久| 成人av电影免费在线播放| 久久综合久久综合久久综合| 奇米影视一区二区三区| 欧美色综合影院| 亚洲最大色网站| 色婷婷综合久久久久中文| 国产精品毛片无遮挡高清| 国产成人啪午夜精品网站男同| 精品福利视频一区二区三区| 免费成人av在线播放| 欧美精品亚洲一区二区在线播放| 亚洲动漫第一页| 欧美综合在线视频| 一区二区激情小说| 日本大香伊一区二区三区| 亚洲另类色综合网站| 91亚洲大成网污www| 一区二区三区四区亚洲| 色婷婷一区二区三区四区| 一区二区三区不卡在线观看| 欧美色图片你懂的| 午夜精品福利在线| 91精品国产一区二区三区香蕉| 日本最新不卡在线| 欧美精品一区二区在线观看| 国产综合久久久久久鬼色 | 欧美成人一区二区| 久久精品72免费观看| 久久久综合视频| 成人av影视在线观看| 中文字幕亚洲区| 91久久精品一区二区| 午夜激情久久久| 日韩女优av电影| 国产91在线|亚洲| 日韩美女精品在线| 欧美日韩mp4| 国产一区二区三区不卡在线观看| 国产偷国产偷精品高清尤物| 97se亚洲国产综合自在线不卡| 一区二区三区在线不卡| 7777女厕盗摄久久久| 激情深爱一区二区| 欧美国产丝袜视频| 在线观看日韩高清av| 日韩精品高清不卡| 久久久久久久久久久电影| 99久久精品国产毛片| 日日摸夜夜添夜夜添国产精品 | 久久久一区二区| 色天使久久综合网天天| 日韩国产精品大片| 欧美激情中文字幕| 欧美日韩在线播放| 国产精品夜夜嗨| 亚洲精品美腿丝袜| 在线成人免费视频| 国产成人精品一区二区三区四区| 亚洲另类春色国产| 欧美xxxxxxxx| 欧洲视频一区二区| 狠狠色丁香婷综合久久| 一区二区三区四区不卡在线| 欧美mv日韩mv| 在线精品视频免费播放| 国产一区二区三区不卡在线观看 | 久久婷婷国产综合精品青草 | 欧美日韩在线不卡| 国产高清不卡一区| 日韩在线观看一区二区| 国产日产欧产精品推荐色| 在线播放/欧美激情| 99久久精品国产导航| 国产中文字幕一区| 亚州成人在线电影| 综合激情成人伊人| 久久综合中文字幕| 欧美三区在线观看| caoporn国产精品| 韩国三级在线一区| 日韩国产在线观看| 又紧又大又爽精品一区二区| 欧美精品一区二区三区高清aⅴ| 欧美日韩精品系列| 色综合久久中文综合久久牛| 精品一区二区三区免费毛片爱 |