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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tif_dir.c

?? 支持各種柵格圖像和矢量圖像讀取的庫
?? C
?? 第 1 頁 / 共 3 頁
字號:
						*va_arg(ap, double*) =							*(double *)val;						ret_val = 1;						break;					default:						ret_val = 0;						break;				}			    }			}                }		break;            }        }    }    return(ret_val);}/* * Return the value of a field in the * internal directory structure. */intTIFFGetField(TIFF* tif, ttag_t tag, ...){	int status;	va_list ap;	va_start(ap, tag);	status = TIFFVGetField(tif, tag, ap);	va_end(ap);	return (status);}/* * Like TIFFGetField, but taking a varargs * parameter list.  This routine is useful * for building higher-level interfaces on * top of the library. */intTIFFVGetField(TIFF* tif, ttag_t tag, va_list ap){	const TIFFFieldInfo* fip = _TIFFFindFieldInfo(tif, tag, TIFF_ANY);	return (fip && (isPseudoTag(tag) || TIFFFieldSet(tif, fip->field_bit)) ?	    (*tif->tif_tagmethods.vgetfield)(tif, tag, ap) : 0);}#define	CleanupField(member) {		\    if (td->member) {			\	_TIFFfree(td->member);		\	td->member = 0;			\    }					\}/* * Release storage associated with a directory. */voidTIFFFreeDirectory(TIFF* tif){	TIFFDirectory *td = &tif->tif_dir;	int            i;	_TIFFmemset(td->td_fieldsset, 0, FIELD_SETLONGS);	CleanupField(td_colormap[0]);	CleanupField(td_colormap[1]);	CleanupField(td_colormap[2]);	CleanupField(td_sampleinfo);	CleanupField(td_subifd);	CleanupField(td_inknames);	CleanupField(td_transferfunction[0]);	CleanupField(td_transferfunction[1]);	CleanupField(td_transferfunction[2]);	CleanupField(td_stripoffset);	CleanupField(td_stripbytecount);	TIFFClrFieldBit(tif, FIELD_YCBCRSUBSAMPLING);	TIFFClrFieldBit(tif, FIELD_YCBCRPOSITIONING);	/* Cleanup custom tag values */	for( i = 0; i < td->td_customValueCount; i++ ) {		if (td->td_customValues[i].value)			_TIFFfree(td->td_customValues[i].value);	}	td->td_customValueCount = 0;	CleanupField(td_customValues);}#undef CleanupField/* * Client Tag extension support (from Niles Ritter). */static TIFFExtendProc _TIFFextender = (TIFFExtendProc) NULL;TIFFExtendProcTIFFSetTagExtender(TIFFExtendProc extender){	TIFFExtendProc prev = _TIFFextender;	_TIFFextender = extender;	return (prev);}/* * Setup for a new directory.  Should we automatically call * TIFFWriteDirectory() if the current one is dirty? * * The newly created directory will not exist on the file till * TIFFWriteDirectory(), TIFFFlush() or TIFFClose() is called. */intTIFFCreateDirectory(TIFF* tif){    TIFFDefaultDirectory(tif);    tif->tif_diroff = 0;    tif->tif_nextdiroff = 0;    tif->tif_curoff = 0;    tif->tif_row = (uint32) -1;    tif->tif_curstrip = (tstrip_t) -1;    return 0;}/* * Setup a default directory structure. */intTIFFDefaultDirectory(TIFF* tif){	register TIFFDirectory* td = &tif->tif_dir;	size_t tiffFieldInfoCount;	const TIFFFieldInfo *tiffFieldInfo =	    _TIFFGetFieldInfo(&tiffFieldInfoCount);	_TIFFSetupFieldInfo(tif, tiffFieldInfo, tiffFieldInfoCount);	_TIFFmemset(td, 0, sizeof (*td));	td->td_fillorder = FILLORDER_MSB2LSB;	td->td_bitspersample = 1;	td->td_threshholding = THRESHHOLD_BILEVEL;	td->td_orientation = ORIENTATION_TOPLEFT;	td->td_samplesperpixel = 1;	td->td_rowsperstrip = (uint32) -1;	td->td_tilewidth = 0;	td->td_tilelength = 0;	td->td_tiledepth = 1;	td->td_stripbytecountsorted = 1; /* Our own arrays always sorted. */	td->td_resolutionunit = RESUNIT_INCH;	td->td_sampleformat = SAMPLEFORMAT_UINT;	td->td_imagedepth = 1;	td->td_ycbcrsubsampling[0] = 2;	td->td_ycbcrsubsampling[1] = 2;	td->td_ycbcrpositioning = YCBCRPOSITION_CENTERED;	tif->tif_postdecode = _TIFFNoPostDecode;	tif->tif_foundfield = NULL;	tif->tif_tagmethods.vsetfield = _TIFFVSetField;	tif->tif_tagmethods.vgetfield = _TIFFVGetField;	tif->tif_tagmethods.printdir = NULL;	/*	 *  Give client code a chance to install their own	 *  tag extensions & methods, prior to compression overloads.	 */	if (_TIFFextender)		(*_TIFFextender)(tif);	(void) TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);	/*	 * NB: The directory is marked dirty as a result of setting	 * up the default compression scheme.  However, this really	 * isn't correct -- we want TIFF_DIRTYDIRECT to be set only	 * if the user does something.  We could just do the setup	 * by hand, but it seems better to use the normal mechanism	 * (i.e. TIFFSetField).	 */	tif->tif_flags &= ~TIFF_DIRTYDIRECT;	/*	 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=19	 * we clear the ISTILED flag when setting up a new directory.	 * Should we also be clearing stuff like INSUBIFD?	 */	tif->tif_flags &= ~TIFF_ISTILED;	return (1);}static intTIFFAdvanceDirectory(TIFF* tif, uint32* nextdir, toff_t* off){	static const char module[] = "TIFFAdvanceDirectory";	uint16 dircount;	if (isMapped(tif))	{		toff_t poff=*nextdir;		if (poff+sizeof(uint16) > tif->tif_size)		{			TIFFErrorExt(tif->tif_clientdata, module, "%s: Error fetching directory count",			    tif->tif_name);			return (0);		}		_TIFFmemcpy(&dircount, tif->tif_base+poff, sizeof (uint16));		if (tif->tif_flags & TIFF_SWAB)			TIFFSwabShort(&dircount);		poff+=sizeof (uint16)+dircount*sizeof (TIFFDirEntry);		if (off != NULL)			*off = poff;		if (((toff_t) (poff+sizeof (uint32))) > tif->tif_size)		{			TIFFErrorExt(tif->tif_clientdata, module, "%s: Error fetching directory link",			    tif->tif_name);			return (0);		}		_TIFFmemcpy(nextdir, tif->tif_base+poff, sizeof (uint32));		if (tif->tif_flags & TIFF_SWAB)			TIFFSwabLong(nextdir);		return (1);	}	else	{		if (!SeekOK(tif, *nextdir) ||		    !ReadOK(tif, &dircount, sizeof (uint16))) {			TIFFErrorExt(tif->tif_clientdata, module, "%s: Error fetching directory count",			    tif->tif_name);			return (0);		}		if (tif->tif_flags & TIFF_SWAB)			TIFFSwabShort(&dircount);		if (off != NULL)			*off = TIFFSeekFile(tif,			    dircount*sizeof (TIFFDirEntry), SEEK_CUR);		else			(void) TIFFSeekFile(tif,			    dircount*sizeof (TIFFDirEntry), SEEK_CUR);		if (!ReadOK(tif, nextdir, sizeof (uint32))) {			TIFFErrorExt(tif->tif_clientdata, module, "%s: Error fetching directory link",			    tif->tif_name);			return (0);		}		if (tif->tif_flags & TIFF_SWAB)			TIFFSwabLong(nextdir);		return (1);	}}/* * Count the number of directories in a file. */tdir_tTIFFNumberOfDirectories(TIFF* tif){    toff_t nextdir = tif->tif_header.tiff_diroff;    tdir_t n = 0;        while (nextdir != 0 && TIFFAdvanceDirectory(tif, &nextdir, NULL))        n++;    return (n);}/* * Set the n-th directory as the current directory. * NB: Directories are numbered starting at 0. */intTIFFSetDirectory(TIFF* tif, tdir_t dirn){	toff_t nextdir;	tdir_t n;	nextdir = tif->tif_header.tiff_diroff;	for (n = dirn; n > 0 && nextdir != 0; n--)		if (!TIFFAdvanceDirectory(tif, &nextdir, NULL))			return (0);	tif->tif_nextdiroff = nextdir;	/*	 * Set curdir to the actual directory index.  The	 * -1 is because TIFFReadDirectory will increment	 * tif_curdir after successfully reading the directory.	 */	tif->tif_curdir = (dirn - n) - 1;	/*	 * Reset tif_dirnumber counter and start new list of seen directories.	 * We need this to prevent IFD loops.	 */	tif->tif_dirnumber = 0;	return (TIFFReadDirectory(tif));}/* * Set the current directory to be the directory * located at the specified file offset.  This interface * is used mainly to access directories linked with * the SubIFD tag (e.g. thumbnail images). */intTIFFSetSubDirectory(TIFF* tif, uint32 diroff){	tif->tif_nextdiroff = diroff;	/*	 * Reset tif_dirnumber counter and start new list of seen directories.	 * We need this to prevent IFD loops.	 */	tif->tif_dirnumber = 0;	return (TIFFReadDirectory(tif));}/* * Return file offset of the current directory. */uint32TIFFCurrentDirOffset(TIFF* tif){	return (tif->tif_diroff);}/* * Return an indication of whether or not we are * at the last directory in the file. */intTIFFLastDirectory(TIFF* tif){	return (tif->tif_nextdiroff == 0);}/* * Unlink the specified directory from the directory chain. */intTIFFUnlinkDirectory(TIFF* tif, tdir_t dirn){	static const char module[] = "TIFFUnlinkDirectory";	toff_t nextdir;	toff_t off;	tdir_t n;	if (tif->tif_mode == O_RDONLY) {		TIFFErrorExt(tif->tif_clientdata, module,                             "Can not unlink directory in read-only file");		return (0);	}	/*	 * Go to the directory before the one we want	 * to unlink and nab the offset of the link	 * field we'll need to patch.	 */	nextdir = tif->tif_header.tiff_diroff;	off = sizeof (uint16) + sizeof (uint16);	for (n = dirn-1; n > 0; n--) {		if (nextdir == 0) {			TIFFErrorExt(tif->tif_clientdata, module, "Directory %d does not exist", dirn);			return (0);		}		if (!TIFFAdvanceDirectory(tif, &nextdir, &off))			return (0);	}	/*	 * Advance to the directory to be unlinked and fetch	 * the offset of the directory that follows.	 */	if (!TIFFAdvanceDirectory(tif, &nextdir, NULL))		return (0);	/*	 * Go back and patch the link field of the preceding	 * directory to point to the offset of the directory	 * that follows.	 */	(void) TIFFSeekFile(tif, off, SEEK_SET);	if (tif->tif_flags & TIFF_SWAB)		TIFFSwabLong(&nextdir);	if (!WriteOK(tif, &nextdir, sizeof (uint32))) {		TIFFErrorExt(tif->tif_clientdata, module, "Error writing directory link");		return (0);	}	/*	 * Leave directory state setup safely.  We don't have	 * facilities for doing inserting and removing directories,	 * so it's safest to just invalidate everything.  This	 * means that the caller can only append to the directory	 * chain.	 */	(*tif->tif_cleanup)(tif);	if ((tif->tif_flags & TIFF_MYBUFFER) && tif->tif_rawdata) {		_TIFFfree(tif->tif_rawdata);		tif->tif_rawdata = NULL;		tif->tif_rawcc = 0;	}	tif->tif_flags &= ~(TIFF_BEENWRITING|TIFF_BUFFERSETUP|TIFF_POSTENCODE);	TIFFFreeDirectory(tif);	TIFFDefaultDirectory(tif);	tif->tif_diroff = 0;			/* force link on next write */	tif->tif_nextdiroff = 0;		/* next write must be at end */	tif->tif_curoff = 0;	tif->tif_row = (uint32) -1;	tif->tif_curstrip = (tstrip_t) -1;	return (1);}/*			[BFC] * * Author: Bruce Cameron <cameron@petris.com> * * Set a table of tags that are to be replaced during directory process by the * 'IGNORE' state - or return TRUE/FALSE for the requested tag such that * 'ReadDirectory' can use the stored information. * * FIXME: this is never used properly. Should be removed in the future. */intTIFFReassignTagToIgnore (enum TIFFIgnoreSense task, int TIFFtagID){    static int TIFFignoretags [FIELD_LAST];    static int tagcount = 0 ;    int		i;					/* Loop index */    int		j;					/* Loop index */    switch (task)    {      case TIS_STORE:        if ( tagcount < (FIELD_LAST - 1) )        {            for ( j = 0 ; j < tagcount ; ++j )            {					/* Do not add duplicate tag */                if ( TIFFignoretags [j] == TIFFtagID )                    return (TRUE) ;            }            TIFFignoretags [tagcount++] = TIFFtagID ;            return (TRUE) ;        }        break ;              case TIS_EXTRACT:        for ( i = 0 ; i < tagcount ; ++i )        {            if ( TIFFignoretags [i] == TIFFtagID )                return (TRUE) ;        }        break;              case TIS_EMPTY:        tagcount = 0 ;			/* Clear the list */        return (TRUE) ;              default:        break;    }        return (FALSE);}/* vim: set ts=8 sts=8 sw=8 noet: */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品v日韩精品v韩国精品v| 亚洲视频一区二区在线观看| 欧美日产在线观看| 一本到一区二区三区| 不卡视频在线观看| 成人av网站免费观看| 粉嫩绯色av一区二区在线观看| 国产精品1区2区3区| 国产成人精品免费视频网站| 国产精品亚洲一区二区三区在线| 精品一区二区三区免费毛片爱| 蜜桃av一区二区三区| 久久国产婷婷国产香蕉| 久久精品国产77777蜜臀| 久久精品国产精品青草| 精品一区二区三区免费| 国产电影一区在线| 99久久婷婷国产综合精品| 91丨国产丨九色丨pron| 91激情五月电影| 欧美日韩亚洲国产综合| 欧美一区二区性放荡片| 欧美tickle裸体挠脚心vk| 久久久久久久久免费| 中文字幕一区二区视频| 亚洲男女毛片无遮挡| 亚洲成av人片一区二区| 美女视频免费一区| 国产成人精品免费看| 色综合天天做天天爱| 精品视频免费在线| 欧美va亚洲va香蕉在线| 中文字幕视频一区| 午夜欧美2019年伦理| 国产在线视频一区二区| youjizz久久| 欧美日韩亚洲另类| 久久久精品日韩欧美| 自拍偷拍亚洲激情| 亚洲成人av一区二区| 国产一区二区三区黄视频| 成人动漫视频在线| 7777女厕盗摄久久久| 久久伊人中文字幕| 一区二区在线电影| 久久91精品久久久久久秒播| 播五月开心婷婷综合| 欧美精品v国产精品v日韩精品| 精品国产a毛片| 日韩美女啊v在线免费观看| 日韩精品五月天| 岛国精品一区二区| 欧美一卡二卡在线观看| 1区2区3区国产精品| 日韩电影免费在线| www..com久久爱| 91精品国产aⅴ一区二区| 国产欧美精品区一区二区三区 | 91精品国产综合久久久久久漫画 | 六月丁香婷婷久久| www.在线欧美| 欧美成人r级一区二区三区| 中文字幕亚洲视频| 久久成人精品无人区| 色婷婷一区二区| 久久久久久久久久久久电影| 午夜欧美在线一二页| 不卡的看片网站| 2014亚洲片线观看视频免费| 亚洲大型综合色站| www.欧美.com| 久久这里都是精品| 三级不卡在线观看| 色94色欧美sute亚洲13| 国产午夜精品理论片a级大结局 | 国内成人自拍视频| 精品视频全国免费看| 亚洲欧美在线视频| 丰满白嫩尤物一区二区| 欧美一区二区在线看| 亚洲第一狼人社区| 色系网站成人免费| 中文字幕欧美一| 国产美女娇喘av呻吟久久| 日韩一区二区在线观看| 亚洲一区二区三区不卡国产欧美| 国产69精品久久777的优势| 日韩一级视频免费观看在线| 亚洲国产综合在线| 一本一道久久a久久精品 | 亚洲综合久久久久| 91啪九色porn原创视频在线观看| 久久久久久一级片| 国产一区二区三区日韩| 精品国产乱码久久久久久久| 日本大胆欧美人术艺术动态| 7777精品伊人久久久大香线蕉经典版下载| 亚洲人成网站影音先锋播放| 北条麻妃一区二区三区| 国产精品毛片a∨一区二区三区| 国产乱人伦偷精品视频免下载| 欧美变态凌虐bdsm| 蜜桃91丨九色丨蝌蚪91桃色| 日韩免费一区二区| 日本va欧美va瓶| 精品区一区二区| 国产一区二区福利| 国产三级欧美三级| 成人综合婷婷国产精品久久免费| 久久久夜色精品亚洲| 国产xxx精品视频大全| 中文字幕不卡在线| 99国产欧美久久久精品| 亚洲老妇xxxxxx| 在线免费不卡电影| 五月婷婷综合激情| 日韩欧美在线网站| 国产乱妇无码大片在线观看| 国产精品情趣视频| 一本久久精品一区二区| 亚洲成人三级小说| 精品少妇一区二区三区视频免付费| 蜜桃av一区二区在线观看| 久久久777精品电影网影网| 国产精品亚洲午夜一区二区三区 | 亚洲女女做受ⅹxx高潮| 91福利社在线观看| 丝袜亚洲另类丝袜在线| 日韩精品一区在线观看| 国产成人精品免费看| 亚洲三级小视频| 欧美日本国产视频| 国产伦精一区二区三区| 国产精品国产三级国产| 欧美综合在线视频| 青椒成人免费视频| 国产精品丝袜久久久久久app| 91视频com| 免费成人在线视频观看| 国产人成一区二区三区影院| 色婷婷精品大视频在线蜜桃视频| 午夜欧美2019年伦理| 久久久久久久久久久99999| 色狠狠av一区二区三区| 久久精品国产久精国产| 亚洲天堂免费看| 欧美妇女性影城| 丁香网亚洲国际| 午夜精品久久久久久久久| 91女神在线视频| 韩国av一区二区三区四区| 亚洲免费电影在线| 2021中文字幕一区亚洲| 91美女片黄在线| 九九久久精品视频| 亚洲激情在线播放| 精品国产免费一区二区三区四区| 91在线观看高清| 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲视频香蕉人妖| 日韩精品专区在线| 91啦中文在线观看| 精品亚洲国产成人av制服丝袜 | 五月天激情综合网| 日本一区二区免费在线观看视频 | 欧美国产成人在线| 91精品国产欧美一区二区成人| 风流少妇一区二区| 蜜臀国产一区二区三区在线播放 | 日韩激情中文字幕| 亚洲区小说区图片区qvod| 久久久亚洲综合| 91精品久久久久久蜜臀| 一道本成人在线| 国产jizzjizz一区二区| 日产国产高清一区二区三区| 国产精品美女久久久久久2018| 欧美一激情一区二区三区| 在线视频欧美区| 96av麻豆蜜桃一区二区| 国产美女在线观看一区| 久久国产精品72免费观看| 亚洲高清不卡在线观看| 亚洲女人****多毛耸耸8| 国产精品入口麻豆原神| 久久嫩草精品久久久精品一| 日韩一级高清毛片| 欧美久久一区二区| 欧美日韩一区二区三区四区 | av成人免费在线观看| 久久国产精品72免费观看| 日韩电影在线一区二区三区| 亚洲综合成人网| 亚洲精品欧美激情| 中文字幕一区二区三区四区不卡 | 久久九九久精品国产免费直播| 日韩精品一区二区三区在线观看| 欧美人妖巨大在线| 欧美视频精品在线观看| 欧美午夜片在线看|