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

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

?? binor.c

?? NIST Handwriting OCR Testbed
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*# proc: binary_subimage_or_8 - uses a logical OR operator to copy a binary# proc:                        subimage that is a multiple of 8 bits wide.# proc: binary_subimage_or_gt - special condition when using a logical OR# proc:                         operator to copy a binary subimage.# proc: binary_subimage_or_lt - special condition when using a logical OR# proc:                         operator to copy a binary subimage.# proc: binary_subimage_or_eq - special condition when using a logical OR# proc:                         operator to copy a binary subimage.# proc: binary_subimage_or - uses a logical OR operator to copy a binary# proc:                      subimage to another image at a specified# proc:                      location.*//* LINTLIBRARY *//****************************************************************//*								*//*	Routines:	binary_subimage_<op>_8()		*//*			binary_subimage_<op>_gt()		*//*			binary_subimage_<op>_lt()		*//*			binary_subimage_<op>_eq()		*//*				where <op> is copy, and, or,	*//*				xor, invert, zero, or one	*//*								*//*	Author:		Stan Janet				*//*	Date:		11/16/90				*//*								*//* binary_subimage_copy_8() is a bit-level copy utility for	*//*	subimages that are a multiple of 8 bits wide.		*//* binary_subimage_copy_{gt,lt,eq}() are bit-level copy		*//*	utilities for subimages that are not a multiple of 8	*//*	bits wide and where the space remaining in the last	*//*	byte in every destination scan line will be (respect-	*//*	ively) greater than, less than, or equal to the		*//*	number of bits by which the subimage width exceeds 8.	*//* If binary_subimage_copy() is told to copy a subimage		*//*	that is a multiple of 8 bits wide, it calls		*//*	binary_subimage_copy_8(). Otherwise it calls one of	*//*	the other functions as appropriate.			*//* binary_subimage_or_8() is a bit-level logical or utility for	*//*	subimages that are a multiple of 8 bits wide.		*//* binary_subimage_{or,and,xor,invert}_{8,gt,lt,eq}() are	*//*	bit-level logical or, and, xor and invert utilities for *//*	subimages that are analogous to	the copy utilities	*//*	described above.					*//* binary_subimage_{zero,one}_{8,gt,lt,eq} are bit-level util-	*//*	ities for setting all bits in a subimage to zero and	*//*	one, respectively.					*//* All dimensions are taken to be in bit units.			*//****************************************************************/#include <stdio.h>#include <memory.h>#include <values.h>#include <sys/types.h>#include <masks.h>#include <bitmasks.h>#include <bits.h>#include <binops.h>void binary_subimage_or_8 (		src, srcw, srch,		dst, dstw, dsth,		srcx, srcy,		cpw, cph,		dstx, dsty		)	register u_char *src, *dst;	int srcx,srcy,dstx,dsty, srcw,srch,dstw,dsth, cpw,cph;{int i, j, i_inv, j_inv, cpbw, srcbw, dstbw, dx, dy;u_char m0, m1, m2;register int bytes;register u_char c;if (src == (u_char *) NULL)	fatalerr("binary_subimage_or_8","Null source image pointer",(char *)NULL);if (dst == (u_char *) NULL)	fatalerr("binary_subimage_or_8","Null destination image pointer",(char *)NULL);if ((srcw < 0) || (srch < 0))	fatalerr("binary_subimage_or_8","Negative source image dimension(s)",(char *)NULL);if ((dstw < 0) || (dsth < 0))	fatalerr("binary_subimage_or_8","Negative destination image dimension(s)",(char *)NULL);if ((cpw < 0) || (cph < 0))	fatalerr("binary_subimage_or_8","Negative subimage dimension(s)",(char *)NULL);if (srcw % BITSPERBYTE)	fatalerr("binary_subimage_or_8",		"Source image width must be a multiple of 8",(char *)NULL);if (dstw % BITSPERBYTE)	fatalerr("binary_subimage_or_8",		"Destination image width must be byte aligned",(char *)NULL);if (((srcx + cpw) > srcw) || ((srcy + cph) > srch))	fatalerr("binary_subimage_or_8",		"Subimage exceeds source image dimension(s)",(char *)NULL);if (((dstx + cpw) > dstw) || ((dsty + cph) > dsth))	fatalerr("binary_subimage_or_8",		"Subimage exceeds destination image dimension(s)",(char *)NULL);if (!cpw || !cph)	return;if (!srcw || !srch)	return;if (!dstw || !dsth)	return;	i = srcx % BITSPERBYTE;	i_inv = BITSPERBYTE - i;j = dstx % BITSPERBYTE;j_inv = BITSPERBYTE - j;	if (cpw % BITSPERBYTE)		fatalerr("binary_subimage_or_8",			"Copy width not a multiple of eight",(char *)NULL);	srcbw = srcw / BITSPERBYTE;dstbw = dstw / BITSPERBYTE;cpbw  = cpw  / BITSPERBYTE;	/* Increment src to the byte in the upper left corner of the */	/* subimage to be copied. Increment dst to the upper left corner */	/* of the byte in the destination that will be modified. */	src += srcy * srcbw + srcx / BITSPERBYTE;dst += dsty * dstbw + dstx / BITSPERBYTE;	/* Set dx (dy) to be the increment needed to get src (dst) to the */	/* first byte in the next scan line to be copied (or modified) from */	/* the last byte in the current scan line. */	dx = srcbw - cpbw;dy = dstbw - cpbw;if (!i && !j) {			/* Both src & dst are byte-aligned. */	while (cph--) {		bytes = cpbw;		while (bytes--)			*dst++ |= *src++;		src += dx;		dst += dy;	}	return;}if (!j) {			/* Dst is byte-aligned. */	while (cph--) {		bytes = cpbw;		while (bytes--) {			c = (*src << i) | (*(src+1) >> i_inv);			*dst++ |= c;			src++;		}		src += dx;		dst += dy;	}	return;}if (!i) {					/* Src is byte-aligned. */	m1 = mask_end_0[j_inv];				/* eg. 11110000 */	m2 = mask_begin_0[j];				/* eg. 00001111 */	while (cph--) {		bytes = cpbw;		while (bytes--) {			c = *src++;			*dst++ |= (c >> j);			*dst   |= (c << j_inv);		}		;		src += dx;		dst += dy;	}	return;}if (i == j) {	m0 = mask_begin_1[i];	m1 = mask_end_0[i_inv];	m2 = mask_end_1[i_inv];	/* Neither src nor dst is byte-aligned, but they */	/* are offset by the same amount, so we can copy */	/* (cpbw - 1) bytes directly from src to dst. The */	/* bits in the other byte are on the ends of the */	/* scan line and are treated specially. */	if (cpbw == 1) {		while (cph--) {			*dst++ |= (*src++ & m2);			*dst   |= (*src   & m0);			;			src += dx;			dst += dy;		}		return;	}	while (cph--) {		*dst++ |= (*src++ & m2);		bytes = cpbw - 1;		while (bytes--)			*dst++ |= *src++;		*dst |= (*src & m0);		;		src += dx;		dst += dy;	}	return;}m1 = mask_end_0[j_inv];		/* eg. 11111000 */m2 = mask_begin_0[j];		/* eg. 00000111 */while (cph--) {				/* The absolute worst case. Neither */	bytes = cpbw;			/* src nor dst is byte-aligned, and */	while (bytes--) {		/* they are offset by diff. amounts. */		c = (*src << i) | (*(src+1) >> i_inv);		*dst++ |= (c >> j);		*dst   |= (c << j_inv);		src++;	}	;	src += dx;	dst += dy;}}/* LINTLIBRARY *//****************************************************************//*								*//*	Routines:	binary_subimage_<op>_8()		*//*			binary_subimage_<op>_gt()		*//*			binary_subimage_<op>_lt()		*//*			binary_subimage_<op>_eq()		*//*				where <op> is copy, and, or,	*//*				xor, invert, zero, or one	*//*								*//*	Author:		Stan Janet				*//*	Date:		11/16/90				*//*								*//* binary_subimage_copy_8() is a bit-level copy utility for	*//*	subimages that are a multiple of 8 bits wide.		*//* binary_subimage_copy_{gt,lt,eq}() are bit-level copy		*//*	utilities for subimages that are not a multiple of 8	*//*	bits wide and where the space remaining in the last	*//*	byte in every destination scan line will be (respect-	*//*	ively) greater than, less than, or equal to the		*//*	number of bits by which the subimage width exceeds 8.	*//* If binary_subimage_copy() is told to copy a subimage		*//*	that is a multiple of 8 bits wide, it calls		*//*	binary_subimage_copy_8(). Otherwise it calls one of	*//*	the other functions as appropriate.			*//* binary_subimage_or_8() is a bit-level logical or utility for	*//*	subimages that are a multiple of 8 bits wide.		*//* binary_subimage_{or,and,xor,invert}_{8,gt,lt,eq}() are	*//*	bit-level logical or, and, xor and invert utilities for *//*	subimages that are analogous to	the copy utilities	*//*	described above.					*//* binary_subimage_{zero,one}_{8,gt,lt,eq} are bit-level util-	*//*	ities for setting all bits in a subimage to zero and	*//*	one, respectively.					*//* All dimensions are taken to be in bit units.			*//****************************************************************/#include <stdio.h>#include <memory.h>#include <values.h>#include <sys/types.h>#include <masks.h>#include <bitmasks.h>#include <bits.h>#include <binops.h>void binary_subimage_or_gt (		src, srcw, srch,		dst, dstw, dsth,		srcx, srcy,		cpw, cph,		dstx, dsty		)	register u_char *src, *dst;	int srcx,srcy,dstx,dsty, srcw,srch,dstw,dsth, cpw,cph;{int i, j, i_inv, j_inv, cpbw, srcbw, dstbw, dx, dy;u_char m0, m1, m2;register int bytes;register u_char c;	u_char m3, m4;	int b, b_inv, diff;if (src == (u_char *) NULL)	fatalerr("binary_subimage_or_gt","Null source image pointer",(char *)NULL);if (dst == (u_char *) NULL)	fatalerr("binary_subimage_or_gt","Null destination image pointer",(char *)NULL);if ((srcw < 0) || (srch < 0))	fatalerr("binary_subimage_or_gt","Negative source image dimension(s)",(char *)NULL);if ((dstw < 0) || (dsth < 0))	fatalerr("binary_subimage_or_gt","Negative destination image dimension(s)",(char *)NULL);if ((cpw < 0) || (cph < 0))	fatalerr("binary_subimage_or_gt","Negative subimage dimension(s)",(char *)NULL);if (srcw % BITSPERBYTE)	fatalerr("binary_subimage_or_gt",		"Source image width must be a multiple of 8",(char *)NULL);if (dstw % BITSPERBYTE)	fatalerr("binary_subimage_or_gt",		"Destination image width must be byte aligned",(char *)NULL);if (((srcx + cpw) > srcw) || ((srcy + cph) > srch))	fatalerr("binary_subimage_or_gt",		"Subimage exceeds source image dimension(s)",(char *)NULL);if (((dstx + cpw) > dstw) || ((dsty + cph) > dsth))	fatalerr("binary_subimage_or_gt",		"Subimage exceeds destination image dimension(s)",(char *)NULL);if (!cpw || !cph)	return;if (!srcw || !srch)	return;if (!dstw || !dsth)	return;	i = srcx % BITSPERBYTE;	i_inv = BITSPERBYTE - i;j = dstx % BITSPERBYTE;j_inv = BITSPERBYTE - j;		b = cpw % BITSPERBYTE;		b_inv = BITSPERBYTE - b;		diff = j_inv - b;		if (diff <= 0)		fatalerr("binary_subimage_or_gt","bad diff",(char *)NULL);	srcbw = srcw / BITSPERBYTE;dstbw = dstw / BITSPERBYTE;cpbw  = cpw  / BITSPERBYTE;	/* Increment src to the byte in the upper left corner of the */	/* subimage to be copied. Increment dst to the upper left corner */	/* of the byte in the destination that will be modified. */	src += srcy * srcbw + srcx / BITSPERBYTE;dst += dsty * dstbw + dstx / BITSPERBYTE;	/* Set dx (dy) to be the increment needed to get src (dst) to the */	/* first byte in the next scan line to be copied (or modified) from */	/* the last byte in the current scan line. */	dx = srcbw - cpbw;dy = dstbw - cpbw;if (!i && !j) {			/* Both src & dst are byte-aligned. */	m3 = mask_end_1[b_inv];	/* eg. 00000111 */	m4 = mask_begin_1[b];	/* eg. 11111000 */	while (cph--) {		bytes = cpbw;		while (bytes--)			*dst++ |= *src++;		*dst |= (*src & m4);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看一区不卡| 国产精品一区二区在线播放| 不卡电影一区二区三区| 日本一区二区电影| 国产69精品一区二区亚洲孕妇| 精品久久久久久久久久久院品网| 日本视频免费一区| 欧美v亚洲v综合ⅴ国产v| 狠狠色伊人亚洲综合成人| 欧美精品一区二区三区蜜臀| 国产一本一道久久香蕉| 国产精品乱码久久久久久| av福利精品导航| 亚洲精品一二三四区| 欧洲一区二区三区免费视频| 亚洲成人激情综合网| 欧美精品vⅰdeose4hd| 经典一区二区三区| 国产精品你懂的在线| 色中色一区二区| 午夜不卡av免费| 久久免费精品国产久精品久久久久| 狠狠狠色丁香婷婷综合激情| 国产精品久久久久影院亚瑟| 欧美日韩在线观看一区二区| 精品一区二区三区视频在线观看 | 美女一区二区视频| 久久一区二区视频| 色综合一区二区三区| 亚洲午夜视频在线观看| 精品久久一区二区三区| 成人av在线观| 丝袜诱惑制服诱惑色一区在线观看| 精品捆绑美女sm三区| 99精品热视频| 麻豆国产欧美日韩综合精品二区| 国产精品久久毛片av大全日韩| 欧美色视频一区| 成人美女视频在线观看18| 日韩av二区在线播放| 国产精品成人在线观看| 正在播放亚洲一区| 色诱视频网站一区| 国产精品一区在线观看乱码| 亚洲一区二区在线免费观看视频 | 日韩av电影免费观看高清完整版在线观看| 精品欧美乱码久久久久久1区2区| 91美女片黄在线| 精品亚洲porn| 婷婷六月综合亚洲| 国产精品国产成人国产三级| 欧美成人精精品一区二区频| 欧美色图在线观看| 成人看片黄a免费看在线| 日本午夜一区二区| 一区二区久久久| 国产精品美日韩| 亚洲精品在线一区二区| 7777精品伊人久久久大香线蕉完整版| 成人中文字幕合集| 国产主播一区二区三区| 亚洲成人一区二区在线观看| 亚洲乱码中文字幕| 国产精品久久久久四虎| 久久人人爽爽爽人久久久| 91精品久久久久久久99蜜桃| 在线观看视频一区二区欧美日韩| 大陆成人av片| 国产成人免费高清| 黄色资源网久久资源365| 男人操女人的视频在线观看欧美 | 国产欧美va欧美不卡在线| 日韩精品专区在线影院重磅| 91精品婷婷国产综合久久竹菊| 色乱码一区二区三区88| 91在线你懂得| 91亚洲永久精品| 91在线小视频| 日本高清视频一区二区| 在线精品观看国产| 欧美日韩一区二区在线视频| 在线免费观看不卡av| 成人av资源网站| 成人app在线观看| 99麻豆久久久国产精品免费 | 99国产精品一区| 91年精品国产| 91麻豆.com| 欧美综合在线视频| 欧美日韩亚洲国产综合| 欧美视频一区在线| 欧美日韩精品欧美日韩精品一 | 色88888久久久久久影院野外| 久久精品国产免费看久久精品| 日本亚洲电影天堂| 蜜臀久久99精品久久久久宅男 | 欧美一区二区三区爱爱| 欧美日韩一卡二卡三卡| 高清不卡一二三区| 99re热视频精品| 91欧美激情一区二区三区成人| 99久久综合国产精品| 91香蕉国产在线观看软件| 99在线精品观看| 91免费视频网址| 成人免费毛片片v| 欧美在线一二三四区| 欧美色综合天天久久综合精品| 欧美亚洲综合另类| 在线视频欧美区| 欧美日韩第一区日日骚| 在线电影院国产精品| 欧美老女人在线| 国产精品欧美极品| 亚洲一区在线观看免费 | 亚洲影院免费观看| 亚洲在线观看免费| 免费在线视频一区| 日韩国产欧美一区二区三区| 国产高清不卡一区二区| 99精品视频在线观看免费| 在线视频欧美精品| 日韩精品一区二区三区中文不卡| 久久九九99视频| 亚洲美女精品一区| 天堂午夜影视日韩欧美一区二区| 精品系列免费在线观看| 成人精品电影在线观看| 在线一区二区视频| 精品久久久网站| 国产精品蜜臀av| 亚洲综合网站在线观看| 国产成人激情av| 色天使久久综合网天天| 3d成人h动漫网站入口| 国产精品网友自拍| 天天操天天干天天综合网| 激情深爱一区二区| 欧美日韩黄色影视| 91精品福利在线一区二区三区| 久久精品一二三| 亚洲123区在线观看| 日韩精品免费视频人成| 成人黄色软件下载| 91精品国产综合久久久蜜臀粉嫩 | 日韩不卡手机在线v区| 国产99一区视频免费| 欧美做爰猛烈大尺度电影无法无天| 日韩欧美成人激情| 亚洲一二三四区| 国产成人超碰人人澡人人澡| 欧美巨大另类极品videosbest | 欧美嫩在线观看| 国产精品三级久久久久三级| 日韩av中文字幕一区二区三区| gogogo免费视频观看亚洲一| 日韩精品一区二区三区老鸭窝| 国产日韩欧美精品电影三级在线| 久久久久久久久久久久久女国产乱| 国产精品乱人伦中文| 亚洲国产精品精华液ab| 婷婷久久综合九色综合伊人色| 国产福利一区在线| 欧美群妇大交群中文字幕| 亚洲欧美一区二区在线观看| 蜜桃av一区二区在线观看| 欧美午夜寂寞影院| 日本一区二区三区在线观看| 捆绑变态av一区二区三区| 91同城在线观看| 欧美国产精品一区二区三区| 极品瑜伽女神91| 欧美精品精品一区| 亚洲一区二区三区自拍| 99精品热视频| 中文字幕精品三区| 风流少妇一区二区| 国产亚洲欧美日韩俺去了| 久久国产综合精品| 欧美精品99久久久**| 午夜精品aaa| 欧美精品一二三| 日韩成人精品在线| 欧美一区二区免费观在线| 亚洲影视在线播放| 欧美四级电影网| 丝袜亚洲另类丝袜在线| 91精品婷婷国产综合久久性色 | 欧美一区二区三区啪啪| 亚洲一区二区三区三| 91精品国产一区二区三区香蕉| 亚洲高清中文字幕| 91麻豆精品91久久久久同性| 日本亚洲最大的色成网站www| 欧美日本韩国一区二区三区视频| 亚洲aaa精品| 日韩欧美123| 国产jizzjizz一区二区| 一区在线观看免费| www.在线成人|