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

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

?? expand-2.c

?? 包含Lzw,Huff1,Dhuff等等多種壓縮算法的源代碼包
?? C
字號:
/*
 * Listing 11 -- expand-2.c
 *
 * This module is the driver program for a variabler order finite
 * context expansion program.  The maximum order is determined by
 * command line option.  This particular version can respond to
 * the FLUSH code inserted in the bit stream by the compressor.
 *
 * To build this program:
 *
 * Turbo C:     tcc -w -mc expand-2.c model-2.c bitio.c coder.c
 * QuickC:      qcl /W3 /AC expand-2.c model-2.c bitio.c coder.c
 * Zortech:     ztc -mc expand-2.c model-2.c bitio.c coder.c
 * *NIX:        cc -o expand-2 expand-2.c model-2.c bitio.c coder.c
 *
 *
 * Command line options:
 *
 *  -f text_file_name  [defaults to test.inp]
 *  -c compressed_file_name [defaults to test.cmp]
 *  -o order [defaults to 3 for model-2]
 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "coder.h"
#include "model.h"
#include "bitio.h"

/*
 * Declarations for local procedures.
 */
void initialize_options( int argc, char **argv );
void print_compression( void );

/*
 * Variables used throughout this particular file.
 */
FILE *text_file;
FILE *compressed_file;

/*
 * The main loop for expansion is very similar to the expansion routine
 * used in the simpler compression program, EXPAND-1.C.  The routine
 * first has to initialize the standard i/o, the bit oriented i/o,
 * the arithmetic coder, and the model.  The decompression loop
 * differs in a couple of respects.  First of all, it handles the
 * special ESCAPE character, by removing them from the input
 * bit stream but just throwing them away otherwise.  Secondly,
 * it handles the special FLUSH character.  Once the main decoding
 * loop is done, the cleanup code is called, and the program exits.
 */
void main( int argc, char *argv[] )
{
    SYMBOL s;
    int c;
    int count;
    long int counter = 0;

    initialize_options( --argc, ++argv );
    initialize_model();
    initialize_input_bitstream();
    initialize_arithmetic_decoder( compressed_file );
    for ( ; ; )
    {
        do
        {
            get_symbol_scale( &s );
            count = get_current_count( &s );
            c = convert_symbol_to_int( count, &s );
	    remove_symbol_from_stream( compressed_file, &s );
        } while ( c == ESCAPE );
        if ( c == DONE )
            break;
        if ( ( ++counter & 0xff ) == 0 )
	    print_compression();
	if ( c != FLUSH )
	    putc( (char) c, text_file );
	else
	{
	    fprintf( stderr, "\rFlushing...      \r" );
	    flush_model();
	}
	update_model( c );
	add_character_to_model( c );
    }
    print_compression();
    fputc( '\n', stderr );
    exit( 0 );
}

/*
 * This routine checks for command line options, and opens the
 * input and output files.  The only other command line option
 * besides the input and output file names is the order of the model,
 * which defaults to 3.
 */
void initialize_options( int argc, char **argv )
{
    char text_file_name[ 81 ];
    char compressed_file_name[ 81 ];

    strcpy( compressed_file_name, "test.cmp" );
    strcpy( text_file_name, "test.out" );
    while ( argc-- > 0 )
    {
        if ( strcmp( *argv, "-f" ) == 0 )
	{
	    argc--;
	    strcpy( text_file_name, *++argv );
	}
        else if ( strcmp( *argv, "-c" ) == 0 )
	{
	    argc--;
	    strcpy( compressed_file_name, *++argv );
	}
        else if ( strcmp( *argv, "-o" ) == 0 )
	{
	    argc--;
            max_order = atoi( *++argv );
	}
	else
	{
            fprintf( stderr, "\nUsage: EXPAND-2 [-o order] " );
            fprintf( stderr, "[-f text file] [-c compressed file]\n" );
            exit( -1 );
	}
	argc--;
	argv++;
    }
    text_file = fopen( text_file_name, "wb" );
    compressed_file = fopen( compressed_file_name, "rb" );
    setvbuf( text_file, NULL, _IOFBF, 4096 );
    setbuf( stdout, NULL );
    printf( "Decoding %s to %s, order %d.\n",
            compressed_file_name ,
            text_file_name,
            max_order );
}

/*
 * This routine is called to print the current compression ratio.
 * It prints out the number of input bytes, the number of output bytes,
 * and the bits per byte compression ratio.   This is done both as a
 * pacifier and as a seat-of-the-pants diagnostice.  A better version
 * of this routine would also print the local compression ratio.
 */
void print_compression()
{
    long input_bytes;
    long output_bytes;

    output_bytes = ftell( text_file );
    input_bytes = bit_ftell_input( compressed_file );
    if ( output_bytes == 0 )
        output_bytes = 1;
    fprintf( stderr,
             "\r%ld/%ld, %2.3f    ",
	     input_bytes,
	     output_bytes,
             8.0 * input_bytes / output_bytes );
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天综合日日夜夜精品| 蜜桃av噜噜一区| 图片区日韩欧美亚洲| 在线观看国产一区二区| 欧美极品美女视频| 日本不卡123| 欧美日韩精品电影| 亚洲美女淫视频| 成人av电影免费观看| 久久久精品天堂| 久久成人免费电影| 制服丝袜成人动漫| 亚洲小少妇裸体bbw| 91色在线porny| 成人免费视频在线观看| 成人一级黄色片| 国产欧美视频一区二区三区| 久久99国产精品尤物| 欧美大片日本大片免费观看| 日韩激情av在线| 欧美精品 国产精品| 亚洲综合免费观看高清完整版在线| av在线播放不卡| 国产精品久线观看视频| 成人深夜视频在线观看| 一区二区视频在线| 成人亚洲一区二区一| 亚洲综合丝袜美腿| 国产亚洲一区二区三区在线观看| 久久99久久久欧美国产| 亚洲狼人国产精品| 日韩一区二区在线免费观看| 免费观看在线综合色| 亚洲三级电影网站| 欧美亚洲动漫另类| 婷婷六月综合网| 中文字幕日韩精品一区 | 久久老女人爱爱| 在线观看日韩毛片| 国产精品亚洲一区二区三区在线| 欧美国产禁国产网站cc| 欧美日韩亚洲不卡| 精品一区二区影视| 午夜视频在线观看一区二区| 国产精品污网站| 91国内精品野花午夜精品| 香蕉久久夜色精品国产使用方法| 日韩写真欧美这视频| 在线免费观看日韩欧美| 国产成人免费视频精品含羞草妖精| 中文字幕亚洲精品在线观看| 精品国产乱码久久久久久蜜臀 | 欧美女孩性生活视频| 99久免费精品视频在线观看| 激情综合色丁香一区二区| 精品国产91久久久久久久妲己| 欧洲av一区二区嗯嗯嗯啊| 99热这里都是精品| 丰满少妇久久久久久久| 一区二区在线观看免费 | 日韩一级免费观看| 欧美日韩激情一区二区三区| 91麻豆高清视频| 白白色亚洲国产精品| 成人一区二区视频| 国产大片一区二区| 国产黄色精品视频| 国产一区二区久久| 亚洲国产精品影院| 亚洲国产婷婷综合在线精品| 亚洲综合精品久久| 一区二区三区国产精华| 亚洲另类在线制服丝袜| 综合久久给合久久狠狠狠97色| 国产女主播视频一区二区| 久久久www成人免费无遮挡大片| 久久综合九色综合97婷婷| 在线视频你懂得一区| 色拍拍在线精品视频8848| 国产呦精品一区二区三区网站| 久热成人在线视频| 国模套图日韩精品一区二区| 精品亚洲欧美一区| 国内久久精品视频| 国产精品亚洲第一区在线暖暖韩国 | 日韩国产在线观看| 樱花草国产18久久久久| 一区二区三区四区视频精品免费 | 国产午夜亚洲精品不卡| 国产三级精品三级在线专区| 国产精品二三区| 一个色在线综合| 日韩 欧美一区二区三区| 久久不见久久见免费视频1| 国产美女精品人人做人人爽| 成人avav影音| 欧美三级在线视频| 精品欧美黑人一区二区三区| 欧美日韩国产另类不卡| 日韩一区二区三区视频在线| 久久久久久**毛片大全| 亚洲美腿欧美偷拍| 美腿丝袜亚洲综合| 成人精品在线视频观看| 欧美视频一区二区三区| 欧美va天堂va视频va在线| 中文字幕av不卡| 亚洲成人三级小说| 国产毛片一区二区| 欧美午夜不卡在线观看免费| 精品久久人人做人人爱| 中文字幕亚洲区| 久久成人av少妇免费| 91蜜桃视频在线| 精品女同一区二区| 伊人开心综合网| 国产成人综合自拍| 欧美高清视频不卡网| 日本一区二区综合亚洲| 五月激情综合婷婷| 成人福利视频网站| 日韩一区二区三区在线视频| 亚洲少妇最新在线视频| 紧缚捆绑精品一区二区| 欧美三级电影在线观看| 国产精品人妖ts系列视频| 日韩国产欧美一区二区三区| 91碰在线视频| 精品国产三级a在线观看| 亚洲影院理伦片| 成人黄色小视频在线观看| 欧美电视剧免费全集观看| 亚洲一区二区三区四区在线免费观看 | 国产精品一区二区三区网站| 欧美顶级少妇做爰| 一区二区三区视频在线看| 国产一区二区三区黄视频| 欧美日韩国产123区| 国产精品网站在线观看| 激情小说亚洲一区| 在线播放日韩导航| 一区二区三区中文免费| 成人精品免费视频| 2021久久国产精品不只是精品| 亚洲444eee在线观看| 一本大道综合伊人精品热热| 中文一区在线播放| 国产真实精品久久二三区| 日韩一二三区视频| 婷婷久久综合九色国产成人| 欧美影院一区二区| 亚洲精品一二三| 99久久精品一区| 日韩视频在线你懂得| 五月天网站亚洲| 欧美高清视频在线高清观看mv色露露十八| 欧美高清激情brazzers| 亚欧色一区w666天堂| 在线视频国内一区二区| 亚洲人妖av一区二区| 99久久伊人久久99| 中文字幕一区二区三区四区不卡 | 国产精品国产成人国产三级 | 亚洲视频一区在线| 色先锋资源久久综合| 亚洲女与黑人做爰| 一本色道亚洲精品aⅴ| 亚洲黄一区二区三区| 日本福利一区二区| 亚洲一二三区在线观看| 欧美中文字幕不卡| 日韩av电影免费观看高清完整版 | 另类中文字幕网| 日韩精品一区国产麻豆| 狠狠色综合日日| 国产亚洲综合在线| av不卡在线播放| 亚洲黄色免费电影| 欧美日韩电影一区| 日韩成人午夜精品| 精品国产1区二区| 成人在线综合网| 一区二区三区精品在线| 91精品国产综合久久久久| 久久精品国产77777蜜臀| 久久久三级国产网站| 99精品久久免费看蜜臀剧情介绍 | 日本一区中文字幕| 精品三级av在线| 成人理论电影网| 亚洲亚洲人成综合网络| 日韩欧美一区中文| av电影天堂一区二区在线| 亚洲国产视频在线| 久久一区二区三区四区| 99精品视频中文字幕| 日韩激情一二三区| 国产精品美女久久久久久| 在线观看免费成人| 国产伦理精品不卡|