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

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

?? grp4deco.c

?? NIST Handwriting OCR Testbed
?? C
?? 第 1 頁 / 共 4 頁
字號:
/*# proc: grp4decomp - CCITT Group 4 decompresses an image.# proc:*//*********************************************************************  File Name:  grp4decomp.c					    **  Modified:   Darlene E. Frederick				    **              Michael D. Garris                                    **  Date:       January 25, 1990				    	    **  Package:    CCITT4 compression routines			    **				   				    **  Contents:   ccitt4_decompress()				    **	       read_compressed_file_into_memory()		    **	       control_decompression()				    **	       prepare_to_decompress()				    **	       set_up_first_and_last_changing_elements_d()	    **	       prepare_to_decompress_next_line()		    **	       set_up_first_line_d()				    **	       crash_d()					    * ********************************************************************/#include <grp4deco.h>#ifdef TIME#include <sys/time.h>#endif#define NOALLOC 0#define ALLOC 1int decomp_alloc_flag;int decomp_write_init_flag;int decomp_read_init_flag;static char 	*all_white,                *output_area,		*all_black;				#ifdef TIMEstruct timeval  t1, t2;struct timezone tz;#endif/********************************************************************* grp4decomp is the main routine of this file.  It does pre-        ** liminary setup, calls routines, and does final processing.        *********************************************************************//*********************************************************************  Arguments							    **  ---------							    **	Passed in:         					    **		   indata - buffer containing the compressed data.  **		   inbytes - the number of bytes in indata.         **  		   width - Width in pixels of uncompressed data.    **  		   height - Number of lines of uncompressed data.   **	Returned:          					    **		   outdata - buffer containing the decompressed data**		   outbytes - the number of bytes in outdata.       *********************************************************************/grp4decomp(indata,inbytes,width,height,outdata,outbytes)unsigned char *indata, *outdata;int inbytes, width, height, *outbytes;{struct compressed_descriptor 	compressed;struct decompressed_descriptor  decompressed;	compressed.pixels_per_line = width;	compressed.number_of_lines = height;	compressed.length_in_bytes = inbytes;        compressed.data = (char *)indata;        decomp_alloc_flag = NOALLOC;        decomp_write_init_flag = True;        decomp_read_init_flag = True;	read_compressed_file_into_memory(&compressed);	decompressed.data = (char *)outdata;	control_decompression( &compressed, &decompressed );	*outbytes =         (decompressed.pixels_per_line >> 3) * decompressed.number_of_lines;}/***************************** control_decompression **************************		calls the functions that decompress the compressed file			*****************************************************************************//*********************************************************************  Arguments							    **  ---------							    **	Passed in:						    **		   compressed - structure containing the # of       **			        pixels per line, the number of      **				lines, and the compressed data.     **	Returned:						    **		   decompressed - structure containing the # of     **			          pixels per line, the number of    **				  lines, and the compressed data.   *********************************************************************/void control_decompression( compressed, decompressed )struct compressed_descriptor *compressed;struct decompressed_descriptor *decompressed;{struct parameters  sole_parameters;struct parameters *params = &sole_parameters;#ifdef TIME  SHORT i;	tz.tz_minuteswest = 0;	tz.tz_dsttime = 0;	gettimeofday(&t1, &tz);#endif	prepare_to_decompress( compressed, decompressed, params );	while(decompress_line( params ) != EOFB )  	      prepare_to_decompress_next_line( params );        /* memory deallocation added by Michael D. Garris 2/23/90 */        free(params->reference_line);        free(params->coding_line);        free(all_white);        free(all_black);#ifdef TIME	gettimeofday(&t2, &tz);	printf("\ntime difference: %ld:%ld\n", t2.tv_sec - t1.tv_sec,	t2.tv_usec - t1.tv_usec);	for(i=0; i<5; i++) printf("%c",'\07');#endif}/************************ read_compressed_file_into_memory *********************			allocates memory for the compressed image     					*****************************************************************************//*********************************************************************  Arguments							    **  ---------							    **	Passed in:						    **		   compressed - structure containing the # of       **			        pixels per line, the number of      **				lines, and the compressed data.     **	Returned:						    **		   compressed - structure containing the # of       **			          pixels per line, the number of    **				  lines, and the compressed data.   *********************************************************************/void read_compressed_file_into_memory(compressed)struct compressed_descriptor *compressed;{     if(decomp_alloc_flag){ 	if((compressed->data = (char *)calloc(compressed->length_in_bytes, sizeof(char))) == NULL) { 	    printf("\nCannot allocate enough memory for compressed file.\n"); 	    exit(1); 	}     }     else        if(compressed->data == NULL){           printf("\nNo memory allocated for input data!\n");           exit(1);        }} /* end read_compressed_file_into_memory() */	 			/*************************** prepare_to_decompress ****************************			initializes variables in preperation for decompression					*****************************************************************************//*********************************************************************  Arguments							    **  ---------							    **	Passed in:						    **		   compressed - structure containing the # of       **			        pixels per line, the number of      **				lines, and the compressed data.     **	Returned:						    **		   decompressed - structure containing the # of     **			          pixels per line, the number of    **				  lines, and the compressed data.   **		   params - structure storing information needed    **			    for comparison and other tasks.         *********************************************************************/void prepare_to_decompress( compressed, decompressed, params )struct compressed_descriptor 	*compressed;struct decompressed_descriptor  *decompressed;struct parameters *params;{		params->max_pixel = compressed->pixels_per_line;	decompressed->pixels_per_line = compressed->pixels_per_line;	decompressed->number_of_lines = compressed->number_of_lines;		set_up_first_line_d( params );	prepare_to_read_bits( compressed->data );        if(decomp_alloc_flag){           decompressed->data = (char *)calloc(            compressed->pixels_per_line *compressed->number_of_lines /Pixels_per_byte, 	   sizeof(char) );        }        else           if(decompressed->data == NULL){              printf("\nNo memory allocated for decompressed data!\n");              exit(1);           }	prepare_to_write_bits_d( decompressed->data, 	 (compressed->pixels_per_line / Pixels_per_byte) );				} /* end decompress() *//******************************* set_up_first_line_d ***************************		initializes variables in preperation for decompressing the first line					******************************************************************************//*********************************************************************  Arguments							    **  ---------							    **	Passed in:						    **		   params - structure storing information needed    **			    for comparison and other tasks.         **	Returned:						    **		   params - structure storing information needed    **			    for comparison and other tasks.         *********************************************************************/void set_up_first_line_d( params )struct parameters *params;{	params->reference_line = 	 (SHORT *)malloc( (params->max_pixel + Extra_positions) * sizeof(SHORT) );	params->coding_line = 	 (SHORT *)malloc( (params->max_pixel + Extra_positions) * sizeof(SHORT) );		*(params->reference_line + 0) = Invalid;			*(params->reference_line + 1) = params->max_pixel;	*(params->reference_line + 2) = params->max_pixel;	*(params->reference_line + 3) = params->max_pixel;		/* initialize first changing element on coding line (a0 = -1) */	*(params->coding_line) = Invalid;		params->index = 0;} /* end set_up_first_line_d() *//******************* set_up_first_and_last_changing_elements_d *****************		initializes the first and last changing elements in the coding line						******************************************************************************//*********************************************************************  Arguments							    **  ---------							    **	Passed in:						    **		   params - structure storing information needed    **			    for comparison and other tasks.         **	Returned:						    **		   params - structure storing information needed    **			    for comparison and other tasks.         *********************************************************************/void set_up_first_and_last_changing_elements_d(params)struct parameters *params;{	*(params->coding_line) = Invalid;		/*	 * set up the imaginary first changing pixel with an illegal value.	 */	 	*(params->coding_line + ++params->index) = params->max_pixel;	*(params->coding_line + ++params->index) = params->max_pixel;	*(params->coding_line + ++params->index) = params->max_pixel;		/* 	 * set up three changing pixels at the end of the line, all of which	 * contain the end-of-line flag "max_pixel."  It is necessary to create	 * three of these flags because the changing elements a0 - b2 are sometimes	 * advanced by more than one element at a time (and therefore could skip	 * over a single flag).	 */}/*********************** prepare_to_decompress_next_line *********************		initializes variables in preperation for decompressing another line				******************************************************************************//*********************************************************************  Arguments							    **  ---------							    **	Passed in:						    **		   params - structure storing information needed    **			    for comparison and other tasks.         **	Returned:						    **		   params - structure storing information needed    **			    for comparison and other tasks.         *********************************************************************/void prepare_to_decompress_next_line( params )struct parameters *params;{		set_up_first_and_last_changing_elements_d( params );	swap_the_reference_and_coding_lines( params );	params->index = 0;} /* end prepare_to_decompress_next_line() */ /******************** swap_the_reference_and_coding_lines ********************		 	      swaps the reference and coding lines				*****************************************************************************//*********************************************************************  Arguments							    **  ---------							    **	Passed in:						    **		   params - structure storing information needed    **			    for comparison and other tasks.         **	Returned:						    **		   params - structure storing information needed    **			    for comparison and other tasks.         *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美xxxx老人做受| 亚洲欧美日韩国产中文在线| 欧美性一区二区| 91影视在线播放| 成人免费高清视频| 成人免费视频播放| 成人黄色在线网站| 不卡av在线网| 99久久国产免费看| 91在线视频官网| 91极品美女在线| 日本福利一区二区| 欧美性色欧美a在线播放| 在线视频综合导航| 欧美三级一区二区| 这里只有精品免费| 日韩一区二区中文字幕| 精品久久久久久久一区二区蜜臀| 欧美r级在线观看| 久久久综合九色合综国产精品| 26uuu亚洲| 久久久一区二区| 国产欧美一区在线| 最新久久zyz资源站| 洋洋av久久久久久久一区| 亚洲成人av中文| 青青草国产精品97视觉盛宴| 久久国产尿小便嘘嘘| 国产999精品久久久久久绿帽| 成人av资源在线| 色88888久久久久久影院野外| 欧美精品一区二区三| 久久综合九色综合欧美98| 欧美国产日韩在线观看| 亚洲精品日韩综合观看成人91| 亚洲国产乱码最新视频| 精品一区二区三区在线观看| 国产成人午夜电影网| 一本色道a无线码一区v| 欧美一区二区三区四区五区 | 91成人免费在线| 欧美一区二区视频免费观看| 精品裸体舞一区二区三区| 国产精品国产三级国产aⅴ入口 | 久久在线观看免费| 国产精品视频一二三| 一区二区高清视频在线观看| 欧美bbbbb| 不卡的av电影| 欧美一区二区日韩| 综合电影一区二区三区| 日韩国产高清影视| 成人性生交大合| 欧美久久久久中文字幕| 国产欧美一区二区精品性| 亚洲一线二线三线久久久| 韩国精品主播一区二区在线观看| 成人av在线影院| 欧美一区二区三级| 自拍偷拍亚洲综合| 狠狠色伊人亚洲综合成人| 一本久久精品一区二区| 久久影院视频免费| 一区二区三区色| 国产精品影音先锋| 欧美麻豆精品久久久久久| 国产精品色一区二区三区| 日韩黄色在线观看| 91一区在线观看| 久久精品一区蜜桃臀影院| 香蕉成人啪国产精品视频综合网| 成人一区二区三区视频在线观看 | 国产偷国产偷亚洲高清人白洁| 亚洲国产人成综合网站| av在线不卡电影| 精品国产露脸精彩对白| 性感美女久久精品| 91免费国产在线| 国产欧美中文在线| 久久成人免费网站| 91精品国产91久久久久久最新毛片 | 国产免费成人在线视频| 日韩av电影免费观看高清完整版在线观看 | 国产高清久久久| 91精品国产综合久久香蕉麻豆| 亚洲精品伦理在线| 丁香激情综合国产| 久久噜噜亚洲综合| 精品一区二区免费| 日韩亚洲电影在线| 天天色综合成人网| 欧美在线免费播放| 成人免费在线视频观看| 国产91精品在线观看| 日韩精品一区二区在线| 偷拍亚洲欧洲综合| 在线观看日韩av先锋影音电影院| 国产欧美日韩亚州综合| 国产一区二区三区在线观看免费 | 亚洲乱码国产乱码精品精可以看| 高清国产午夜精品久久久久久| 久久综合狠狠综合久久激情 | 国产真实乱对白精彩久久| 欧美一区二区啪啪| 首页综合国产亚洲丝袜| 欧美伦理视频网站| 五月天婷婷综合| 欧美绝品在线观看成人午夜影视| 艳妇臀荡乳欲伦亚洲一区| 欧洲生活片亚洲生活在线观看| 亚洲天堂网中文字| 色屁屁一区二区| 亚洲精品v日韩精品| 91福利国产成人精品照片| 一区二区三区成人| 欧美性大战久久| 亚洲国产va精品久久久不卡综合| 欧美三级中文字幕| 日本在线不卡一区| 精品国产乱码久久久久久影片| 久久66热偷产精品| 久久精品一级爱片| 丰满放荡岳乱妇91ww| 最新热久久免费视频| 色成人在线视频| 亚洲国产精品久久艾草纯爱| 在线不卡免费欧美| 国产在线观看一区二区| 国产精品色婷婷久久58| 97久久精品人人澡人人爽| 亚洲免费观看高清完整| 欧美三级视频在线观看| 美女一区二区在线观看| 国产香蕉久久精品综合网| 99天天综合性| 亚洲在线视频免费观看| 91精品国产一区二区三区蜜臀| 国产专区欧美精品| 亚洲欧洲国产日韩| 欧美疯狂做受xxxx富婆| 国产自产高清不卡| 亚洲免费观看在线视频| 欧美一区二区三区四区五区| 国产精品一区一区三区| 中文字幕人成不卡一区| 91精品在线观看入口| 韩国成人精品a∨在线观看| 中文字幕人成不卡一区| 制服丝袜亚洲播放| 国产麻豆视频精品| 亚洲日本一区二区| 欧美一级片在线观看| 国产成人精品免费看| 亚洲最大色网站| 久久奇米777| 欧洲精品一区二区| 精品一区二区三区久久| 亚洲欧美另类小说视频| 日韩美女一区二区三区| 99re视频精品| 久久精品国产网站| 亚洲精品国产无天堂网2021| 26uuu久久综合| 一本大道av一区二区在线播放| 久久国产人妖系列| 亚洲综合男人的天堂| 国产亚洲欧美激情| 欧美日韩视频在线第一区| 国产精品1024久久| 天堂va蜜桃一区二区三区漫画版| 中文字幕av资源一区| 777午夜精品视频在线播放| 成人在线视频一区| 麻豆精品一区二区综合av| 亚洲激情图片qvod| 久久精品一二三| 91精品婷婷国产综合久久性色 | 久久欧美一区二区| 欧美伦理电影网| 91免费视频网址| 粉嫩av一区二区三区| 麻豆精品在线视频| 亚洲成人1区2区| 亚洲欧美国产高清| 日本一区二区三区四区| 日韩一级片在线播放| 色94色欧美sute亚洲13| 成人黄色免费短视频| 韩国欧美国产1区| 奇米精品一区二区三区在线观看| 亚洲精品亚洲人成人网在线播放| 久久久久久久久久看片| 日韩欧美精品在线| 欧美日韩一级大片网址| 一本久道久久综合中文字幕 | 欧美怡红院视频| 91在线视频官网| 9人人澡人人爽人人精品| 国产成人鲁色资源国产91色综 | 欧美性高清videossexo|