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

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

?? overlap.c

?? lzo-1.08-src.zip 高效的壓縮解壓代碼
?? C
字號:
/* overlap.c -- example program: overlapping (de)compression   This file is part of the LZO real-time data compression library.   Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer   All Rights Reserved.   The LZO library is free software; you can redistribute it and/or   modify it under the terms of the GNU General Public License as   published by the Free Software Foundation; either version 2 of   the License, or (at your option) any later version.   The LZO library is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   You should have received a copy of the GNU General Public License   along with the LZO library; see the file COPYING.   If not, write to the Free Software Foundation, Inc.,   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.   Markus F.X.J. Oberhumer   <markus@oberhumer.com> *//*************************************************************************// This program shows how to do overlapping compression and// in-place decompression.//// Please study LZO.FAQ and simple.c first.**************************************************************************/#include <lzo1x.h>#include "lutil.h"/* Overhead (in bytes) for the in-place decompression buffer. * Most files need only 16 ! * (try `overlap -16 file' or even `overlap -8 file') * * Worst case (for files that are compressible by only a few bytes) * is 'in_len / 64 + 16 + 3'. See step 5a) below. * * For overlapping compression '0xbfff + in_len / 64 + 16 + 3' bytes * will be needed. See step 4a) below. */static lzo_uint opt_overhead = 0;	/* assume worst case */#if 0 && defined(__GNUC__) && defined(__i386__)/* used for test purposes only */LZO_EXTERN_CDECL(int)lzo1x_decompress_asm_fast ( const lzo_byte *src, lzo_uint  src_len,                                  lzo_byte *dst, lzo_uintp dst_len,                                  lzo_voidp wrkmem /* NOT USED */ )                           __asm__("_lzo1x_decompress_asm_fast");#endif/*************************************************************************//**************************************************************************/static const char *progname = NULL;static unsigned long total_files = 0;static unsigned long total_in = 0;static lzo_byte *xmalloc(lzo_uint len){	lzo_byte *p;	p = (lzo_bytep) lzo_malloc(len > 0 ? len : 1);	if (p == NULL)	{		printf("%s: out of memory\n", progname);		exit(1);	}	return p;}/*************************************************************************//**************************************************************************/int do_file ( const char *in_name ){	int r;	FILE *f = NULL;	long l;	lzo_byte *wrkmem = NULL;	lzo_byte *in = NULL;	lzo_uint in_len;				/* uncompressed length */	lzo_byte *out = NULL;	lzo_uint out_len;				/* compressed length */	lzo_byte *overlap = NULL;	lzo_uint overhead;	lzo_uint offset;	lzo_uint new_len = 0;/* * Step 1: open the input file */ 	f = fopen(in_name,"rb");	if (f == NULL)	{		printf("%s: %s: cannot open file\n", progname, in_name);		goto next_file;	}	fseek(f,0,SEEK_END);	l = ftell(f);	fseek(f,0,SEEK_SET);	if (l <= 0)	{		printf("%s: %s: empty file -- skipping\n", progname, in_name);		goto next_file;	}	in_len = (lzo_uint) l;/* * Step 2: allocate compression buffers and read the file */	in = xmalloc(in_len);	out = xmalloc(in_len + in_len / 64 + 16 + 3);	wrkmem = xmalloc(LZO1X_1_MEM_COMPRESS);	in_len = lzo_fread(f,in,in_len);	fclose(f); f = NULL;	printf("%s: %s: read %ld bytes\n", progname, in_name, (long) in_len);	total_files++;	total_in += in_len;/* * Step 3: compress from `in' to `out' with LZO1X-1 */	r = lzo1x_1_compress(in,in_len,out,&out_len,wrkmem);	if (r != LZO_E_OK || out_len > in_len + in_len / 64 + 16 + 3)	{		/* this should NEVER happen */		printf("internal error - compression failed: %d\n", r);		exit(1);	}	printf("%-26s %8lu -> %8lu\n", "LZO1X-1:", (long) in_len, (long) out_len);/***** Step 4: overlapping compression *****//* * Step 4a: allocate the `overlap' buffer for overlapping compression */	overhead  = in_len > 0xbfff ? 0xbfff : in_len; 	overhead += in_len / 64 + 16 + 3;	overlap = xmalloc(in_len + overhead);/* * Step 4b: prepare data in `overlap' buffer. *          copy uncompressed data at the top of the overlap buffer */ 	/*** offset = in_len + overhead - in_len; ***/ 	offset = overhead;	lzo_memcpy(overlap + offset, in, in_len);/* * Step 4c: do an in-place compression within the `overlap' buffer */	r = lzo1x_1_compress(overlap+offset,in_len,overlap,&new_len,wrkmem);	if (r != LZO_E_OK)	{		/* this should NEVER happen */		printf("overlapping compression failed: %d\n", r);		exit(1);	}/* * Step 4d: verify overlapping compression */ 	if (new_len != out_len || lzo_memcmp(out,overlap,out_len) != 0)	{		/* As compression is non-deterministic there can be a difference		 * in the representation of the compressed data (but this usually		 * happens very seldom). So we have to verify the overlapping		 * compression by doing a temporary decompression.		 */		lzo_uint l = in_len;		lzo_byte *tmp = xmalloc(l);		r = lzo1x_decompress_safe(overlap,new_len,tmp,&l,NULL); 		if (r != LZO_E_OK || l != in_len || lzo_memcmp(in,tmp,l) != 0)		{			/* this should NEVER happen */			printf("overlapping compression data error\n");			exit(1);		}		lzo_free(tmp);	}	printf("overlapping compression:   %8lu -> %8lu    overhead: %7ld\n",			(long) in_len, (long) new_len, (long) overhead);	lzo_free(overlap); overlap = NULL;/***** Step 5: overlapping decompression *****//* * Step 5a: allocate the `overlap' buffer for in-place decompression */ 	if (opt_overhead == 0 || out_len >= in_len)		overhead = in_len / 64 + 16 + 3;	else 		overhead = opt_overhead;	overlap = xmalloc(in_len + overhead);/* * Step 5b: prepare data in `overlap' buffer. *          copy compressed data at the top of the overlap buffer */ 	offset = in_len + overhead - out_len;	lzo_memcpy(overlap + offset, out, out_len);/* * Step 5c: do an in-place decompression within the `overlap' buffer */	new_len = in_len;#if 1	r = lzo1x_decompress(overlap+offset,out_len,overlap,&new_len,NULL);#else	r = lzo1x_decompress_asm_fast(overlap+offset,out_len,overlap,&new_len,NULL);#endif	if (r != LZO_E_OK)	{		/* this may happen if overhead is too small */		printf("overlapping decompression failed: %d - increase `opt_overhead'\n", r);		exit(1);	}/* * Step 5d: verify decompression */ 	if (new_len != in_len || lzo_memcmp(in,overlap,in_len) != 0)	{		/* this may happen if overhead is too small */		printf("overlapping decompression data error - increase `opt_overhead'\n");		exit(1);	}	printf("overlapping decompression: %8lu -> %8lu    overhead: %7ld\n",			(long) out_len, (long) new_len, (long) overhead);	lzo_free(overlap); overlap = NULL;next_file:	lzo_free(overlap);	lzo_free(wrkmem);	lzo_free(out);	lzo_free(in);	if (f) fclose(f);	return 0;}/*************************************************************************//**************************************************************************/int main(int argc, char *argv[]){	int r;	int i = 1;#if defined(__EMX__)	_response(&argc,&argv);	_wildcard(&argc,&argv);#endif	printf("\nLZO real-time data compression library (v%s, %s).\n",	        lzo_version_string(), lzo_version_date());	printf("Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer\n\n");	progname = argv[0];	if (i < argc && argv[i][0] == '-')		opt_overhead = atoi(&argv[i++][1]);#if 1	if (opt_overhead != 0 && opt_overhead < 8)	{		printf("%s: invalid overhead value %ld\n", progname, (long)opt_overhead);		exit(1);	}#endif	if (i >= argc)	{		printf("usage: %s [-overhead_in_bytes] file..\n", progname);		exit(1);	}/* * Step 1: initialize the LZO library */	if (lzo_init() != LZO_E_OK)	{		printf("lzo_init() failed !!!\n");		exit(1);	}/* * Step 2: process files */	for (r = 0; r == 0 && i < argc; i++)		r = do_file(argv[i]);	printf("\nDone. Successfully processed %lu bytes in %lu files.\n",	        total_in, total_files);	return r;}/*vi:ts=4*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩1区2区3区| 日韩欧美国产综合| 国内精品视频666| 老司机精品视频导航| 免费在线视频一区| 免费三级欧美电影| 久88久久88久久久| 国产伦精品一区二区三区免费迷| 美女国产一区二区| 成人福利视频在线| 中文字幕的久久| 一区二区三区在线视频播放| 亚洲天堂福利av| 亚洲欧美偷拍卡通变态| 亚洲乱码国产乱码精品精的特点 | 777久久久精品| 欧美福利视频导航| 精品日韩99亚洲| 久久久国产一区二区三区四区小说 | 精品国精品国产| 亚洲成人免费av| 色婷婷一区二区三区四区| 国产欧美日韩中文久久| 韩国三级中文字幕hd久久精品| 在线这里只有精品| 一区二区三区四区五区视频在线观看 | 国产一区二三区| 成人性生交大片免费看中文| 色综合久久天天综合网| 国产精品高潮呻吟| 成人中文字幕合集| 国产精品久久毛片| 不卡高清视频专区| 国产精品国产三级国产| 97精品国产露脸对白| 成人欧美一区二区三区黑人麻豆 | 亚洲国产精品99久久久久久久久 | 欧美日韩免费不卡视频一区二区三区| 亚洲天堂2016| 色琪琪一区二区三区亚洲区| 亚洲精品自拍动漫在线| 在线欧美日韩精品| 三级欧美韩日大片在线看| 69堂成人精品免费视频| 久久国产精品一区二区| 欧美精品一区二区久久久| 狠狠色丁香久久婷婷综| 中文字幕欧美激情| 91免费看视频| 丝袜美腿亚洲综合| 久久亚洲捆绑美女| av电影一区二区| 亚洲国产精品自拍| 精品国产乱码久久久久久影片| 国产在线不卡一区| 亚洲日本护士毛茸茸| 欧美日韩在线三区| 国产综合色在线| 亚洲欧美日韩一区| 欧美一区二区三区思思人| 国产精品一二三四区| 亚洲另类一区二区| 日韩视频在线永久播放| jvid福利写真一区二区三区| 亚洲成人资源在线| 国产欧美视频在线观看| 在线观看免费视频综合| 国产一区中文字幕| 亚洲精品乱码久久久久久| 欧美二区在线观看| 成人午夜在线免费| 日韩av中文在线观看| 国产精品夫妻自拍| 欧美一区二区成人6969| 成人h精品动漫一区二区三区| 香蕉久久一区二区不卡无毒影院| 日韩精品一区二区三区视频| 色嗨嗨av一区二区三区| 激情丁香综合五月| 亚洲成在人线免费| 中文字幕亚洲一区二区va在线| 欧美日韩成人激情| 一本色道久久综合精品竹菊| 久久精品国产成人一区二区三区 | 欧美精品1区2区3区| 大胆亚洲人体视频| 蜜桃av噜噜一区二区三区小说| 亚洲丝袜另类动漫二区| 国产视频一区二区在线观看| 在线视频亚洲一区| www.亚洲色图.com| 国产精品白丝jk白祙喷水网站| 午夜精品久久久久久| 亚洲精品视频在线| 国产精品嫩草99a| 久久人人超碰精品| 精品久久久久香蕉网| 91精品国产综合久久香蕉麻豆| 色偷偷88欧美精品久久久| 处破女av一区二区| 国产精品亚洲视频| 久久69国产一区二区蜜臀| 亚洲电影在线免费观看| 一区二区三区不卡视频在线观看| 久久蜜臀精品av| 26uuu久久天堂性欧美| 欧美一二三四在线| 精品黑人一区二区三区久久| 欧美精选在线播放| 欧美一a一片一级一片| 成人一区二区三区| 成人精品免费视频| 久久精品一区二区三区四区| 国产suv精品一区二区6| 国产精品影视网| 国产成人综合在线观看| 国产福利一区在线| 风流少妇一区二区| 成人白浆超碰人人人人| 972aa.com艺术欧美| 91在线视频官网| 色先锋资源久久综合| 色婷婷综合激情| 日韩国产在线观看| 日日夜夜一区二区| 免费一级片91| 国产老女人精品毛片久久| 国产麻豆9l精品三级站| 成人高清视频免费观看| 97精品电影院| 欧美美女直播网站| 欧美v国产在线一区二区三区| ww亚洲ww在线观看国产| 欧美激情综合五月色丁香| 中文字幕日韩精品一区 | 国产欧美中文在线| 中文字幕一区二区三区色视频 | 国产亚洲欧美日韩日本| 国产精品久久久久婷婷二区次| 亚洲色图另类专区| 日韩精品五月天| 国产一区二区毛片| 99久久久久久| 91精品婷婷国产综合久久| 精品国产成人在线影院| 国产精品久99| 日韩国产成人精品| 国产精品99久久久久久有的能看| www.欧美日韩| 制服丝袜亚洲精品中文字幕| 亚洲精品在线网站| 亚洲色图欧洲色图| 久久精品国产网站| 不卡一区二区三区四区| 在线播放中文一区| 国产精品麻豆视频| 日韩精品一卡二卡三卡四卡无卡| 精品一区二区三区免费观看| 色综合视频在线观看| 日韩无一区二区| 一个色在线综合| 国产精品一区二区久久精品爱涩 | 色欧美日韩亚洲| 欧美成人高清电影在线| 亚洲美女视频在线观看| 精品一区二区三区免费播放| 在线观看日韩一区| 国产拍欧美日韩视频二区| 视频一区免费在线观看| 色综合视频在线观看| 欧美国产激情一区二区三区蜜月| 五月婷婷另类国产| 97久久超碰精品国产| 精品99一区二区三区| 日韩国产欧美在线观看| 一本到三区不卡视频| 欧美国产欧美综合| 国产一区在线不卡| 日韩一区二区在线观看视频播放| 综合激情成人伊人| 成人深夜福利app| 日韩精品一区二区三区中文不卡| 一区二区三区视频在线看| 丰满白嫩尤物一区二区| 欧美v亚洲v综合ⅴ国产v| 日本sm残虐另类| 欧美高清视频在线高清观看mv色露露十八 | 日韩三级中文字幕| 亚洲午夜日本在线观看| 色哟哟精品一区| 国产精品大尺度| 成人av在线资源网| 欧美激情一区二区三区四区| 国产高清不卡二三区| 精品国偷自产国产一区| 黄页网站大全一区二区| 亚洲精品在线一区二区| 国产资源精品在线观看| 久久久精品免费网站| 国产麻豆9l精品三级站|