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

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

?? comp-1.c

?? 包含Lzw,Huff1,Dhuff等等多種壓縮算法的源代碼包
?? C
字號:
/*
 * Listing 6 -- comp-1.c
 *
 * This listing is the driver program for an order 0 fixed context
 * compression program.  It follows the model shown in BILL.C
 * for a compression program, by reading in symbols from a file,
 * converting them to a high, low, range set, then encoding them.
 * The order 0 modeling code for this routine is found Listing 9,
 * model-1.c.
 *
 * To build this program:
 *
 * Turbo C:     tcc -w comp-1.c model-1.c bitio.c coder.c
 * QuickC:      qcl /W3 comp-1.c model-1.c bitio.c coder.c
 * Zortech:     ztc comp-1.c model-1.c bitio.c coder.c
 * *NIX:        cc -o comp-1 comp-1.c model-1.c bitio.c coder.c
 *
 * Command line options:
 *
 *  -f text_file_name  [defaults to test.inp]
 *  -c compressed_file_name [defaults to test.cmp]
 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "coder.h"
#include "model.h"
#include "bitio.h"

FILE *text_file;              /* These variables are used by several   */
FILE *compressed_file;        /* of the modules in this routine.       */

/*
 * Local declarations.
 */
void initialize_options( int argc, char **argv );
void print_compression( void );

/*
 * The main() procedure for this routine is very simple.  After
 * initializing the command line options, model, I/O, and arithmetic
 * coder, it sits in a loop reading in characters from the input
 * file, converting them to type SYMBOL, then encoding them for
 * output.  When done, everything is shut down properly.
 *
 */
void main( int argc, char **argv )
{
    SYMBOL s;
    int c;
    long int text_count = 0;

    initialize_options( --argc, ++argv );
    initialize_model();
    initialize_output_bitstream();
    initialize_arithmetic_encoder();
/*
 * This is the main compression loop.  It gets a character, converts
 * it to SYMBOL, then encodes it.  Finally, the model is updated.
 * One potential portability problem:  EOF is assumed to be -1.
 */
    for ( ; ; )
    {
        if (( ++text_count & 0x0ff ) == 0 )
	    print_compression();
        c = getc( text_file );
	convert_int_to_symbol( c, &s );
	encode_symbol( compressed_file, &s );
        if ( c == EOF )
	    break;
	update_model( c );
    }
/*
 * This is just some code that is needed to clean up loose ends before
 * the program can exit.
 */
    flush_arithmetic_encoder( compressed_file );
    flush_output_bitstream( compressed_file );
    print_compression();
    fputc( '\n', stderr );
    exit( 0 );
}
/*
 * This routine has the job of reading in all of the command line
 * options.  For this program, the only options are the input file
 * name and the output file name.  After the names are read in,
 * the files are opened.
 */
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.inp" );
    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
	{
            fprintf( stderr,
                "\nUsage: COMP-1 [-f text file] [-c compressed file]\n" );
	    exit( -1 );
	}
	argc--;
	argv++;
    }

    text_file = fopen( text_file_name, "rb" );
    compressed_file = fopen( compressed_file_name, "wb" );

    if ( text_file == NULL || compressed_file == NULL )
    {
        printf( "Had trouble opening one of the files!\n" );
        exit( -1 );
    }
    setvbuf( text_file, NULL, _IOFBF, 4096 );
    setbuf( stdout, NULL );
    printf( "Compressing %s to %s\n", text_file_name, compressed_file_name );
}

/*
 * This routine is a "bell and whistle" type thing.  It just prints
 * out the current input and output byte counts, and the current number
 * of bits being used per byte.
 */
void print_compression()
{
    long input_bytes;
    long output_bytes;

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品写真福利| 国产日韩欧美精品综合| 波多野结衣中文一区| 激情综合一区二区三区| 久久国产三级精品| 久草这里只有精品视频| 精品一区二区三区影院在线午夜 | 成人91在线观看| 成人一区二区视频| gogo大胆日本视频一区| 99久久精品情趣| 日本精品一区二区三区四区的功能| 91亚洲精品久久久蜜桃| 在线观看一区二区视频| 欧美日韩国产色站一区二区三区| 欧美精品乱码久久久久久| 日韩一区二区三区免费观看| 久久在线观看免费| 日韩毛片在线免费观看| 午夜影院在线观看欧美| 激情文学综合丁香| zzijzzij亚洲日本少妇熟睡| 欧洲一区二区三区在线| 日韩一区二区电影网| 中文字幕第一页久久| 亚洲香蕉伊在人在线观| 黄页网站大全一区二区| 成人a区在线观看| 日本大香伊一区二区三区| 日韩免费电影一区| 亚洲精品国久久99热| 午夜久久久影院| 精油按摩中文字幕久久| 91在线国产福利| 日韩欧美国产成人一区二区| 日韩一区在线播放| 久久激情五月激情| 欧美在线观看你懂的| 久久久久久亚洲综合影院红桃| 亚洲美女在线一区| 国产电影一区在线| 日韩欧美你懂的| 亚洲国产精品自拍| 国产ts人妖一区二区| 欧美一区二区在线不卡| 一区二区三区美女视频| 高清国产一区二区| 日韩欧美123| 天天综合色天天| 一本色道a无线码一区v| 中文字幕乱码日本亚洲一区二区| 日韩二区在线观看| 色噜噜久久综合| 国产精品久久夜| 国产精品一区二区果冻传媒| 91麻豆精品国产自产在线观看一区| 最新国产精品久久精品| 国产美女久久久久| 日韩视频在线永久播放| 污片在线观看一区二区| 日本大香伊一区二区三区| 国产精品久久久久久妇女6080| 精品在线免费视频| 日韩欧美一区电影| 日本免费在线视频不卡一不卡二| 欧美少妇一区二区| 亚洲图片有声小说| 91成人在线精品| 一区二区三区在线高清| 色国产综合视频| 亚洲一区二区三区影院| 欧美三级三级三级爽爽爽| 亚洲国产另类精品专区| 欧美少妇一区二区| 首页国产欧美久久| 日韩久久久精品| 国内不卡的二区三区中文字幕 | 风间由美一区二区三区在线观看| 欧美大黄免费观看| 久久av中文字幕片| 国产视频一区不卡| 不卡的av电影在线观看| 亚洲理论在线观看| 欧美日韩国产美| 麻豆国产91在线播放| 26uuu久久天堂性欧美| 国产一区二区不卡老阿姨| 国产日韩欧美a| 成人免费高清视频在线观看| 亚洲色图视频免费播放| 欧美三级日韩三级国产三级| 免费在线欧美视频| 欧美成人vps| 99久久精品国产观看| 亚洲欧美偷拍卡通变态| 欧美精品xxxxbbbb| 久久99日本精品| 国产精品污污网站在线观看| 色婷婷综合激情| 久久精品国产亚洲aⅴ| 中文字幕成人在线观看| 91精品1区2区| 久久丁香综合五月国产三级网站 | 欧美卡1卡2卡| 久久99国产精品久久99果冻传媒| 中文幕一区二区三区久久蜜桃| 91蜜桃网址入口| 久久精品国产一区二区三区免费看 | 精品一区二区精品| 亚洲欧美一区二区三区国产精品| 在线播放91灌醉迷j高跟美女| 国产老肥熟一区二区三区| 亚洲天堂精品在线观看| 日韩欧美国产wwwww| 日韩一区二区三区免费观看| 成人一二三区视频| 天天综合色天天综合| 国产精品国产三级国产aⅴ中文 | 成人深夜视频在线观看| 亚洲国产乱码最新视频| 日本一区二区高清| 在线播放国产精品二区一二区四区| 国产成人精品一区二区三区四区| 亚洲gay无套男同| 国产精品天干天干在线综合| 欧美人妇做爰xxxⅹ性高电影| 国产成人av福利| 男人的天堂久久精品| 亚洲精品中文字幕乱码三区| 久久免费午夜影院| 欧美一区二区三区白人| 欧美视频精品在线| 91小视频在线观看| 成人午夜av电影| 国产综合色精品一区二区三区| 亚洲影视在线观看| 中文字幕亚洲一区二区va在线| ww亚洲ww在线观看国产| 日韩一区二区不卡| 91精品国产品国语在线不卡| 欧美日韩美少妇| 欧美调教femdomvk| 欧美性高清videossexo| 91蝌蚪porny成人天涯| www.亚洲人| 国产精品亚洲成人| 国产精品乡下勾搭老头1| 韩国精品主播一区二区在线观看| 男人操女人的视频在线观看欧美 | 狠狠色丁香久久婷婷综| 美女久久久精品| 麻豆91在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 一区二区三区 在线观看视频| 亚洲欧美激情小说另类| 亚洲人xxxx| 亚洲国产一区二区三区青草影视| 夜夜爽夜夜爽精品视频| 一区二区三区在线视频免费| 一区二区不卡在线播放| 亚洲精品免费看| 亚洲成人一区二区| 青娱乐精品视频| 狠狠色伊人亚洲综合成人| 国产成a人无v码亚洲福利| 成人免费看片app下载| 成人h动漫精品一区二区| 在线亚洲一区观看| 欧美一二三在线| 欧美激情一区二区三区不卡| 亚洲男人天堂av| 日韩国产成人精品| 国产成人精品在线看| 91免费在线视频观看| 91精品欧美一区二区三区综合在| 欧美精品一区二区三区很污很色的 | 亚洲影院久久精品| 蜜桃一区二区三区四区| 粉嫩13p一区二区三区| 一道本成人在线| 日韩欧美三级在线| 中文字幕在线一区免费| 日韩激情av在线| 大白屁股一区二区视频| 欧美色国产精品| 欧美激情综合五月色丁香小说| 亚洲视频香蕉人妖| 日韩av一级片| 99精品欧美一区二区蜜桃免费 | 欧美国产日韩a欧美在线观看| 亚洲免费观看高清完整版在线| 肉肉av福利一精品导航| 国产精品亚洲视频| 欧美二区三区的天堂| 国产精品免费看片| 蜜臀久久99精品久久久画质超高清| 成人av在线看| xnxx国产精品| 毛片av一区二区三区| 欧美日精品一区视频|