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

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

?? bincopy.c

?? NIST Handwriting OCR Testbed
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/*# proc: binary_subimage_copy_8 - copies a binary subimage that is a multiple# proc:                          of 8 bits wide.# proc: binary_subimage_copy_gt - special condition when copying a# proc:                           binary subimage.# proc: binary_subimage_copy_lt - special condition when copying a# proc:                           binary subimage.# proc: binary_subimage_copy_eq - special condition when copying a# proc:                           binary subimage.# proc: binary_subimage_copy - copies a binary subimage to another image# proc:                        at a specified 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_copy_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_copy_8","Null source image pointer",(char *)NULL);if (dst == (u_char *) NULL)	fatalerr("binary_subimage_copy_8","Null destination image pointer",(char *)NULL);if ((srcw < 0) || (srch < 0))	fatalerr("binary_subimage_copy_8","Negative source image dimension(s)",(char *)NULL);if ((dstw < 0) || (dsth < 0))	fatalerr("binary_subimage_copy_8","Negative destination image dimension(s)",(char *)NULL);if ((cpw < 0) || (cph < 0))	fatalerr("binary_subimage_copy_8","Negative subimage dimension(s)",(char *)NULL);if (srcw % BITSPERBYTE)	fatalerr("binary_subimage_copy_8",		"Source image width must be a multiple of 8",(char *)NULL);if (dstw % BITSPERBYTE)	fatalerr("binary_subimage_copy_8",		"Destination image width must be byte aligned",(char *)NULL);if (((srcx + cpw) > srcw) || ((srcy + cph) > srch))	fatalerr("binary_subimage_copy_8",		"Subimage exceeds source image dimension(s)",(char *)NULL);if (((dstx + cpw) > dstw) || ((dsty + cph) > dsth))	fatalerr("binary_subimage_copy_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_copy_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 = (*dst & m1) | (c >> j);			dst++;			*dst = (*dst & m2) | (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 = (*dst & m0) | (*src++ & m2);			dst++;			*dst = (*dst & m2) | (*src & m0);			;			src += dx;			dst += dy;		}		return;	}	while (cph--) {		*dst = (*dst & m0) | (*src++ & m2);		dst++;		bytes = cpbw - 1;		while (bytes--)			*dst++ = *src++;		*dst = (*dst & m2) | (*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 = (*dst & m1) | (c >> j);		dst++;		*dst = (*dst & m2) | (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_copy_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_copy_gt","Null source image pointer",(char *)NULL);if (dst == (u_char *) NULL)	fatalerr("binary_subimage_copy_gt","Null destination image pointer",(char *)NULL);if ((srcw < 0) || (srch < 0))	fatalerr("binary_subimage_copy_gt","Negative source image dimension(s)",(char *)NULL);if ((dstw < 0) || (dsth < 0))	fatalerr("binary_subimage_copy_gt","Negative destination image dimension(s)",(char *)NULL);if ((cpw < 0) || (cph < 0))	fatalerr("binary_subimage_copy_gt","Negative subimage dimension(s)",(char *)NULL);if (srcw % BITSPERBYTE)	fatalerr("binary_subimage_copy_gt",		"Source image width must be a multiple of 8",(char *)NULL);if (dstw % BITSPERBYTE)	fatalerr("binary_subimage_copy_gt",		"Destination image width must be byte aligned",(char *)NULL);if (((srcx + cpw) > srcw) || ((srcy + cph) > srch))	fatalerr("binary_subimage_copy_gt",		"Subimage exceeds source image dimension(s)",(char *)NULL);if (((dstx + cpw) > dstw) || ((dsty + cph) > dsth))	fatalerr("binary_subimage_copy_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_copy_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 = (*dst & m3) | (*src & m4);		src += dx;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久久晋中| 麻豆国产91在线播放| 久久亚洲捆绑美女| 日韩精品一区二| 日韩视频在线你懂得| 欧美私模裸体表演在线观看| 欧美中文字幕一区二区三区亚洲| 91视频91自| 在线观看日韩av先锋影音电影院| 色8久久精品久久久久久蜜| 色噜噜久久综合| 色av一区二区| 在线观看av不卡| 欧美美女bb生活片| 3751色影院一区二区三区| 日韩视频国产视频| www日韩大片| 中文字幕+乱码+中文字幕一区| 国产日韩精品一区二区三区在线| 国产精品丝袜黑色高跟| 亚洲啪啪综合av一区二区三区| 亚洲男人天堂av| 亚洲一区欧美一区| 日本不卡的三区四区五区| 久久不见久久见中文字幕免费| 国产麻豆精品在线观看| 成人av在线资源网站| 色8久久人人97超碰香蕉987| 欧美日韩mp4| 精品国产一区二区亚洲人成毛片| 欧美激情综合在线| 亚洲精品视频在线看| 日韩中文字幕91| 国产精品自在欧美一区| 99国产精品一区| 制服.丝袜.亚洲.另类.中文| 久久亚洲春色中文字幕久久久| 亚洲国产高清在线观看视频| 一区二区三区精品| 久久精品国产99国产| av亚洲精华国产精华精| 91超碰这里只有精品国产| 久久婷婷国产综合精品青草| 亚洲另类春色国产| 毛片不卡一区二区| 99久久免费国产| 91精品国产麻豆国产自产在线 | 日本成人在线看| 国产福利不卡视频| 欧美日韩高清在线播放| 久久午夜电影网| 亚洲韩国一区二区三区| 国产黄色91视频| 欧美日韩免费一区二区三区视频| 久久色.com| 亚洲成人免费在线| 国产高清亚洲一区| 欧美日韩大陆在线| 国产精品久久久久影院老司| 奇米精品一区二区三区在线观看 | 国产人妖乱国产精品人妖| 亚洲一区二区三区四区在线观看 | 国产精品美女久久久久高潮| 婷婷开心久久网| 成人国产在线观看| 91精品国产一区二区三区| 亚洲欧美中日韩| 国产主播一区二区| 欧美伦理电影网| 亚洲欧美另类小说| 国产成人综合亚洲91猫咪| 在线播放欧美女士性生活| 中文字幕一区二区三区四区不卡| 精品一区二区在线观看| 欧美日韩亚洲综合一区| 亚洲人xxxx| 成人免费观看av| 2023国产精品自拍| 青娱乐精品在线视频| 欧美色网一区二区| 中文字幕欧美一区| 国产不卡在线播放| 精品国产自在久精品国产| 手机精品视频在线观看| 日本韩国欧美一区二区三区| 中文字幕在线不卡| 国产69精品久久久久毛片| 精品乱码亚洲一区二区不卡| 天堂精品中文字幕在线| 91日韩一区二区三区| 国产精品久久久久久久久搜平片 | 久久精品国产精品青草| 欧美精品日日鲁夜夜添| 亚洲国产一区二区视频| 91精品1区2区| 亚洲激情av在线| 91免费看`日韩一区二区| 国产精品美女久久久久久久久| 国产永久精品大片wwwapp| 欧美成人r级一区二区三区| 蜜桃视频第一区免费观看| 538prom精品视频线放| 午夜电影一区二区| 欧美男女性生活在线直播观看| 亚洲午夜久久久久中文字幕久| 欧美中文字幕亚洲一区二区va在线| 亚洲另类在线制服丝袜| 色哟哟欧美精品| 亚洲国产wwwccc36天堂| 欧美精品第1页| 蜜臀av一区二区在线观看| 精品毛片乱码1区2区3区 | 日韩欧美成人一区| 久久99国产乱子伦精品免费| 精品乱码亚洲一区二区不卡| 国内精品第一页| 国产精品你懂的| 91麻豆视频网站| 亚洲最大的成人av| 欧美日韩国产在线观看| 日韩电影免费一区| 精品福利视频一区二区三区| 国产乱淫av一区二区三区| 国产精品久久夜| 91成人免费网站| 日韩精品成人一区二区在线| 欧美一区二区播放| 国产风韵犹存在线视精品| 国产精品传媒在线| 欧美日韩综合色| 精品一区二区三区免费观看 | 亚欧色一区w666天堂| 日韩欧美国产精品一区| 国产91精品精华液一区二区三区| 国产精品久久久久久久蜜臀| 欧美午夜精品久久久久久超碰| 日本欧美一区二区三区| 久久久久久久性| 91精品1区2区| 美国毛片一区二区三区| 国产精品看片你懂得 | 亚洲一二三四在线观看| 日韩久久久精品| 99国产精品久| 日本一道高清亚洲日美韩| 国产视频一区在线观看| 欧美在线色视频| 国产精品一二三| 亚洲国产欧美一区二区三区丁香婷| 日韩一级大片在线| 91色乱码一区二区三区| 麻豆一区二区三| 亚洲另类春色国产| 久久综合久久综合九色| 91激情在线视频| 国产一区中文字幕| 亚洲v日本v欧美v久久精品| 久久久久久久国产精品影院| 欧美探花视频资源| 成人亚洲一区二区一| 三级久久三级久久久| 国产精品美日韩| 日韩免费一区二区| 91福利国产精品| 国产成人精品影视| 日本午夜精品视频在线观看| 亚洲天堂中文字幕| 久久伊人蜜桃av一区二区| 欧美午夜片在线看| 成人动漫一区二区在线| 精品在线一区二区三区| 一区二区免费在线播放| 欧美国产成人精品| 日韩欧美不卡在线观看视频| 欧美亚洲动漫精品| www.久久精品| 国内精品视频一区二区三区八戒| 一区二区三区在线看| 国产欧美日韩亚州综合| 欧美电视剧免费全集观看| 欧美色欧美亚洲另类二区| 波波电影院一区二区三区| 国产一区二区精品久久| 免费成人在线观看| 亚洲www啪成人一区二区麻豆| 中文字幕日韩一区二区| 国产欧美日韩在线视频| 亚洲精品在线免费播放| 这里只有精品电影| 欧日韩精品视频| 91蜜桃传媒精品久久久一区二区| 九九久久精品视频| 青青草国产精品97视觉盛宴| 亚洲电影你懂得| 又紧又大又爽精品一区二区| 国产日产欧美一区二区三区| 久久伊99综合婷婷久久伊| 欧美成人午夜电影| 精品美女被调教视频大全网站| 日韩欧美激情一区|