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

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

?? model-1a.c

?? 包含Lzw,Huff1,Dhuff等等多種壓縮算法的源代碼包。
?? C
字號(hào):
/*
 * Listing 16 -- model-1a.c
 *
 * This module is an order-1 fixed-context modeling unit that can
 * be using in conjunction with comp-1.c and expand-1.c to compress
 * and expand files.  It is a very simple implementation of an order-1
 * model, using the same techniques for storing counts as were used
 * in model-1.c.  This means that it uses a lot of memory, around
 * 140 Kbytes, and that it spends a lot of time updating the table.
 * Since it can loop up context tables with a simple index on the
 * context character, it is still pretty fast.
 *
 * Building the compression and expansion programs with this model
 * requires moving up to compact model.
 *
 * Building the compressor:
 *
 * Turbo C:     tcc -w -mc comp-1.c model-1a.c bitio.c coder.c
 * QuickC:      qcl /AC /W3 comp-1.c model-1a.c bitio.c coder.c
 * Zortech:     ztc -mc comp-1.c model-1a.c bitio.c coder.c
 * *NIX:        cc -o comp-1 comp-1.c model-1a.c bitio.c coder.c
 *
 * Building the decompressor:
 *
 * Turbo C:     tcc -w -mc expand-1.c model-1a.c bitio.c coder.c
 * QuickC:      qcl /AC /W3 expand-1.c model-1a.c bitio.c coder.c
 * Zortech:     ztc -mc expand-1.c model-1a.c bitio.c coder.c
 * *NIX:        cc -o expand-1 expand-1.c model-1a.c bitio.c coder.c
 */
#include <stdio.h>
#include <stdlib.h>
#include "coder.h"
#include "model.h"

/*
 * *totals[] is an array of pointers to context tables.  The EOF
 * character doesn't get a context table, since we stop encoding
 * as soon as that character appears.  Each context table is
 * an array of ints with indices ranging from -1 to 255.
 */
short int *totals[ 256 ];
/*
 * context is the last character encoded or decoded.  It is
 * used to index to the appropriate context table.  We start the
 * model with an arbitray context of 0;
 */
int context = 0;

/*
 * To initialize the model, I create all 256 context tables, and
 * set all the counts in the table to 1.  By default, the model
 * starts up in context 0, as if the last byte in was '\0'.  Since
 * each context table is supposed to be indexed from -1 to 255,
 * I increment the pointer to the table in totals[], so that the
 * array can be safely indexed with -1.
 */
void initialize_model()
{
    int i;
    short int j;
    int array_size;

    array_size = sizeof( short int * ) * ( 257 + 1 );
    for ( i = 0 ; i < 256 ; i++ )
    {
        totals[ i ] = (short int *) malloc( array_size ) ;
        if ( totals[ i ] == NULL )
        {
            printf( "Error allocating table space!\n" );
            exit( 1 );
        }
        totals[ i ]++;
        for ( j = -1 ; j <= 256 ; j++ )
            totals[ i ][ j ] = j + 1;
    }
}

/*
 * When the table is updated, every count above "symbol" needs to
 * be incremented, which is somewhat expensive.  If the counts
 * have become to large, the table needs to be rescaled.  While
 * rescaling, we have to make sure that none of the counts drop
 * below 1.  After the update is complete, the context is changed
 * to be the symbol that was just updated.
 */
void update_model( int symbol )
{
    int i;

    for ( i = symbol+1 ; i <= 256; i++ )
        totals[ context ][ i ]++;
    if ( totals[ context ][ 256 ] == MAXIMUM_SCALE )
    {
        for ( i = 0 ; i <= 256 ; i++ )
	{
            totals[ context ][ i ] /= 2;
            if ( totals[ context ][ i ] <= totals[ context ][ i-1 ])
                totals[ context ][ i ] = totals[ context ][ i-1 ] + 1;
	}
    }
    context = symbol;
}

/*
 * Since the context table can be directly indexed with the
 * symbol, getting the low and high counts for the particular
 * symbol is nice and easy.
 */
int convert_int_to_symbol( int c, SYMBOL *s )
{
    s->scale = totals[ context ][ 256 ];
    s->low_count = totals[ context ][ c ];
    s->high_count = totals[ context ][ c + 1 ];
    return( 0 );
}
/*
 * The symbols scale is always in the same place, which is nice.
 */
void get_symbol_scale( SYMBOL *s )
{
    s->scale = totals[ context ][ 256 ];
}
/*
 * To find the symbol whose low and high values straddle count
 * requires walking through the table until a match is found.
 * This is a lengthy operation, and helps to keep decoding
 * slower than encoding.
 */
int convert_symbol_to_int( int count, SYMBOL *s )
{
    int c;

    for ( c = 256; count < totals[ context ][ c ] ; c-- )
        ;
    s->high_count = totals[ context ][ c + 1 ];
    s->low_count = totals[ context ][ c ];
    return( c );
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线不卡免费欧美| 欧美性大战久久久| 舔着乳尖日韩一区| 国产精品国产自产拍高清av| 欧美二区三区的天堂| 99免费精品视频| 国产999精品久久久久久| 亚洲精品国产精华液| 国产日韩亚洲欧美综合| 欧美一区二区三区视频免费 | 国产亚洲人成网站| 欧美一区二区黄| 欧美午夜精品一区二区三区| 国产suv精品一区二区三区| 日本中文字幕一区| 亚洲永久精品国产| 综合电影一区二区三区 | 亚洲夂夂婷婷色拍ww47| 国产免费久久精品| 26uuu精品一区二区| 91精品国产综合久久小美女| 欧美色图天堂网| 色偷偷88欧美精品久久久| 国产黄色精品视频| 国产专区欧美精品| 久久99精品国产91久久来源| 麻豆精品新av中文字幕| 免费精品视频最新在线| 日本在线不卡视频| 日韩成人一级片| 日韩精品高清不卡| 日韩中文欧美在线| 婷婷亚洲久悠悠色悠在线播放| 亚洲一二三四区不卡| 亚洲一区电影777| 午夜天堂影视香蕉久久| 午夜欧美大尺度福利影院在线看| 一区二区三区四区蜜桃| 亚洲国产乱码最新视频| 亚洲成人手机在线| 视频一区二区国产| 美女尤物国产一区| 韩国毛片一区二区三区| 国产伦理精品不卡| 国产成人精品影视| 99久久精品国产观看| 99久久婷婷国产综合精品| 成人国产精品免费观看动漫 | 99精品国产一区二区三区不卡 | 91福利在线免费观看| 日本一区中文字幕| 日韩av电影天堂| 精品一区二区三区免费视频| 欧美aaaaaa午夜精品| 激情五月婷婷综合| 丁香亚洲综合激情啪啪综合| av一区二区三区四区| 欧美午夜一区二区三区免费大片| 精品污污网站免费看| 欧美激情一区二区| 国产欧美日韩不卡| 尤物视频一区二区| 视频一区二区不卡| 国产suv精品一区二区6| 97久久精品人人爽人人爽蜜臀| 91成人网在线| 欧美mv日韩mv国产网站| 中文字幕一区二区三区在线播放| 一区二区三区久久| 久久99精品国产麻豆婷婷| 成人av免费网站| 欧美日韩精品一区二区三区四区 | av一区二区久久| 欧美性大战久久| 久久亚洲春色中文字幕久久久| 中文字幕不卡一区| 亚洲mv在线观看| 懂色av中文一区二区三区 | 欧美日韩在线一区二区| 精品入口麻豆88视频| 国产精品白丝在线| 免费观看在线综合| 91视频在线观看免费| 欧美大片一区二区| 亚洲欧美一区二区三区极速播放| 日本美女一区二区三区| 成人激情图片网| 欧美一区日本一区韩国一区| 欧美激情综合网| 奇米色一区二区| 色诱亚洲精品久久久久久| 日韩精品一区二区三区在线播放| 日韩一区在线看| 久久精品国产久精国产| 在线欧美日韩国产| 国产精品免费久久| 麻豆91小视频| 欧美日韩在线观看一区二区| 中文字幕不卡在线观看| 免费成人在线播放| 欧美午夜不卡在线观看免费| 日本一区二区三区四区 | 91年精品国产| 久久久国产精华| 日韩av一区二区三区四区| 色欲综合视频天天天| 国产人成一区二区三区影院| 久久精品国产免费| 91精品国产一区二区三区| 一区二区三区小说| 成人av网站在线| 久久精品无码一区二区三区| 日本午夜一区二区| 欧美视频中文字幕| 亚洲免费观看在线视频| 9久草视频在线视频精品| 国产香蕉久久精品综合网| 免费在线成人网| 4438x成人网最大色成网站| 一区二区三区中文字幕电影| 成人免费视频视频| 国产片一区二区三区| 激情五月婷婷综合| 日韩精品综合一本久道在线视频| 午夜精品久久久久久久久久久| 色综合久久99| 亚洲柠檬福利资源导航| 91在线精品一区二区| 国产精品麻豆欧美日韩ww| 丁香激情综合国产| 国产偷国产偷精品高清尤物 | 国产精品一区二区久久不卡| 精品成人一区二区| 精品无码三级在线观看视频| 欧美一区二区三区日韩视频| 免费成人在线影院| 欧美tickling挠脚心丨vk| 韩国三级电影一区二区| 久久久国产综合精品女国产盗摄| 国产成人av一区二区三区在线观看| 久久日一线二线三线suv| 国产一区高清在线| 中文久久乱码一区二区| www.在线成人| 亚洲精品伦理在线| 欧美性一二三区| 日韩国产高清在线| 精品国产凹凸成av人网站| 国产一区二区三区视频在线播放| 久久人人爽爽爽人久久久| 成人夜色视频网站在线观看| 亚洲人成在线观看一区二区| 在线观看视频91| 麻豆精品一区二区av白丝在线| 久久久久久久性| 99久久精品费精品国产一区二区| 亚洲综合999| 欧美一区二区久久| 国产精品小仙女| 亚洲日本在线观看| 欧美人动与zoxxxx乱| 精品一区二区三区在线播放| 欧美激情中文字幕| 欧美亚一区二区| 狠狠久久亚洲欧美| 最新热久久免费视频| 欧美综合一区二区| 精品无人区卡一卡二卡三乱码免费卡 | 亚洲精品乱码久久久久久黑人| 欧美日韩一区二区电影| 久久福利视频一区二区| 国产精品色哟哟| 精品婷婷伊人一区三区三| 国产麻豆精品在线观看| 一区二区三区在线观看动漫| 日韩欧美国产电影| 色偷偷久久人人79超碰人人澡| 日日摸夜夜添夜夜添国产精品| 欧美国产欧美亚州国产日韩mv天天看完整| 色婷婷久久99综合精品jk白丝 | 国产精品一区不卡| 一区二区三区毛片| 久久久久久久国产精品影院| 91黄色在线观看| 国产精品亚洲第一区在线暖暖韩国| 一区二区三区日韩| 久久人人超碰精品| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 欧美久久一二三四区| 国产不卡视频一区| 奇米色一区二区| 亚洲一二三四久久| 中文字幕不卡三区| 91精品国产综合久久精品app| av不卡免费电影| 国产一区二区女| 日本不卡一区二区三区高清视频| 日韩理论片在线| 中文字幕+乱码+中文字幕一区| 91精品在线观看入口|