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

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

?? 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);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜臀av亚洲一区中文字幕| 国产精品一区二区久久精品爱涩| 欧美大白屁股肥臀xxxxxx| 成人av网站在线观看| 日本大胆欧美人术艺术动态| 国产精品看片你懂得| 久久综合99re88久久爱| 欧美色综合天天久久综合精品| 高清国产一区二区三区| 毛片基地黄久久久久久天堂| 亚洲精品中文字幕在线观看| 久久精品亚洲精品国产欧美kt∨| 欧美精品一二三| 色呦呦国产精品| 国产精品 日产精品 欧美精品| 日韩1区2区日韩1区2区| 亚洲一区二区在线播放相泽| 亚洲色大成网站www久久九九| 久久在线观看免费| 欧美一区日韩一区| 欧美高清性hdvideosex| 欧美日韩午夜在线| 欧美专区日韩专区| 色悠悠久久综合| 91网址在线看| 91丨九色丨蝌蚪丨老版| caoporn国产精品| 风间由美性色一区二区三区| 国产酒店精品激情| 国产一区二区在线看| 国产经典欧美精品| 国产原创一区二区三区| 久久99国内精品| 日韩av在线免费观看不卡| 天堂一区二区在线| 丝袜亚洲另类丝袜在线| 日韩成人免费看| 天堂蜜桃一区二区三区 | 精品国产污网站| 在线电影一区二区三区| 欧美一区二区三区性视频| 91精品国产综合久久精品图片 | 亚洲美女视频在线观看| 亚洲老妇xxxxxx| 亚洲六月丁香色婷婷综合久久 | 日本女优在线视频一区二区| 日韩**一区毛片| 久久国产精品一区二区| 国产一区二区成人久久免费影院| 激情综合色综合久久| 国产一区不卡在线| 国产成人精品免费在线| 91亚洲国产成人精品一区二三| 一本色道综合亚洲| 欧美精品v国产精品v日韩精品| 日韩视频中午一区| 国产视频在线观看一区二区三区| 国产精品久久久久天堂| 亚洲综合在线视频| 日韩av电影一区| 国产成人亚洲精品狼色在线| 99久久精品国产一区二区三区| 99精品热视频| 欧美色综合网站| 精品人在线二区三区| 国产日韩综合av| 一区二区三区丝袜| 六月丁香综合在线视频| 粉嫩久久99精品久久久久久夜| 97久久精品人人做人人爽| 欧美群妇大交群中文字幕| 亚洲精品一区二区三区影院| 国产精品免费av| 亚洲国产精品久久人人爱| 国产一区二区在线影院| 色诱亚洲精品久久久久久| 日韩午夜在线观看| 国产精品激情偷乱一区二区∴| 亚洲v日本v欧美v久久精品| 国产主播一区二区三区| 91黄色免费版| 亚洲精品一区二区三区影院 | 亚洲国产日韩精品| 老司机精品视频线观看86| 97久久精品人人做人人爽50路| 91精品国产欧美一区二区18| 欧美高清在线一区| 日韩国产高清在线| 97久久超碰精品国产| 日韩免费成人网| 夜夜嗨av一区二区三区四季av| 国产一区二区影院| 777午夜精品视频在线播放| 欧美高清一级片在线观看| 成人av在线电影| 日韩久久精品一区| 亚洲一区在线视频| 丰满岳乱妇一区二区三区| 5月丁香婷婷综合| 亚洲色图.com| 国产成人在线影院| 日韩美女在线视频| 婷婷夜色潮精品综合在线| 成人免费观看视频| 精品国产免费视频| 日韩高清在线电影| 一本久久综合亚洲鲁鲁五月天| 久久综合色一综合色88| 日韩和欧美一区二区三区| 91免费版在线| 国产精品色哟哟| 国产精品性做久久久久久| 日韩欧美一级片| 午夜在线成人av| 欧美伊人久久久久久久久影院 | 国内成人自拍视频| 91精品午夜视频| 性欧美大战久久久久久久久| 日本韩国欧美三级| 国产精品电影院| 成人美女视频在线观看18| 国产日产欧美一区二区视频| 精品一区二区三区香蕉蜜桃| 欧美一区二区三区日韩视频| 天堂资源在线中文精品| 欧美性猛交xxxxxxxx| 亚洲专区一二三| 欧美写真视频网站| 亚洲成人av电影在线| 欧美吻胸吃奶大尺度电影| 亚洲最色的网站| 在线观看日韩国产| 亚洲一区二区视频| 欧美日韩mp4| 天堂一区二区在线| 欧美一区二区三区视频免费| 免费成人深夜小野草| 欧美一区二区黄| 精品一区二区三区久久| 久久久三级国产网站| 国产精品羞羞答答xxdd| 中文字幕乱码日本亚洲一区二区| 成人动漫在线一区| 一色屋精品亚洲香蕉网站| 一本久久a久久免费精品不卡| 一区二区三区欧美日韩| 欧美三级三级三级| 欧美aaaaaa午夜精品| 久久天堂av综合合色蜜桃网| 国产a区久久久| 国产精品视频线看| 91年精品国产| 亚洲国产成人av网| 欧美一级日韩一级| 国产精品99久久久久久有的能看| 亚洲国产成人自拍| 欧美午夜精品免费| 精品在线观看视频| 中文字幕中文乱码欧美一区二区| 色综合久久六月婷婷中文字幕| 亚洲一区二区三区三| 日韩视频免费观看高清完整版在线观看| 久久66热偷产精品| 日韩伦理电影网| 欧美肥妇free| 国产成人精品三级麻豆| 亚洲国产精品一区二区www| 久久亚洲一级片| 日韩一级片网站| 成人av电影在线观看| 婷婷中文字幕综合| 中文字幕国产一区| 欧美精品视频www在线观看| 国产精品一区专区| 夜夜操天天操亚洲| 久久久久久麻豆| 欧美色图12p| 东方欧美亚洲色图在线| 视频一区国产视频| 欧美激情中文字幕一区二区| 欧美日韩精品一区二区天天拍小说 | 欧美在线免费观看亚洲| 精品夜夜嗨av一区二区三区| 国产精品夫妻自拍| 精品日韩在线一区| 91久久香蕉国产日韩欧美9色| 精品影院一区二区久久久| 亚洲精品中文在线| 久久久久久久综合狠狠综合| 欧美日韩一区高清| 成人在线综合网站| 日本在线播放一区二区三区| 中文字幕五月欧美| 久久一日本道色综合| 这里只有精品免费| 色拍拍在线精品视频8848| 国产成人精品1024| 久久99日本精品| 亚洲a一区二区| 一区二区在线观看视频|