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

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

?? model-1.c

?? 包含Lzw,Huff1,Dhuff等等多種壓縮算法的源代碼包
?? C
字號:
/*
 * Listing 9 -- model-1.c
 *
 * This is the modeling module for an order 0 fixed context
 * data compression program.  This is a relatively simple model.
 * The totals for all of the symbols are stored in an array accessed
 * under the name "totals".  This array has valid indices from -1
 * to 256.  The reason for having a -1 element is because the EOF
 * symbols is included in the table, and it has a value of -1.
 *
 * The total count for all the symbols is stored in totals[256], and
 * the low and high counts for symbol c are found in totals[c] and
 * totals[c+1].  The major performance problem with this is that
 * the update_model() routine on the average will have to increment
 * 128 totals, a very high cost operation.
 */
#include <stdio.h>
#include <stdlib.h>
#include "coder.h"
#include "model.h"

/*
 * In order to create an array with indices -1 through 256, I have
 * to do this funny declaration.  totals[-1] == storage[0].
 */
short int storage[ 258 ];
short int *totals = storage + 1;

/*
 * When the model is first started up, each symbols has a count of
 * 1, which means a low value of c+1, and a high value of c+2.
 */
void initialize_model()
{
    short int i;

    for ( i = -1 ; i <= 256 ; i++ )
        totals[ i ] = i + 1;
}

/*
 * Updating the model means incrementing every single count from
 * the high value for the symbol on up to the total.  Then, there
 * is a complication.  If the cumulative total has gone up to
 * the maximum value, we need to rescale.  Fortunately, the rescale
 * operation is relatively rare.
 */
void update_model( int symbol )
{
    int i;

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

/*
 * Finding the low count, high count, and scale for a symbol
 * is really easy, because of the way the totals are stored.
 * This is the one redeeming feature of the data structure used
 * in this implementation.  Note that this routine returns an
 * int, but it is not used in this routine.  The return value
 * from convert_int_to_symbol is used in model-2.c.
 */
int convert_int_to_symbol( int c, SYMBOL *s )
{
    s->scale = totals[ 256 ];
    s->low_count = totals[ c ];
    s->high_count = totals[ c+1 ];
    return( 0 );
}

/*
 * Getting the scale for the current context is easy.
 */
void get_symbol_scale( SYMBOL *s )
{
    s->scale = totals[ 256 ];
}

/*
 * During decompression, we have to search through the table until
 * we find the symbol that straddles the "count" parameter.  When
 * it is found, it is returned. The reason for also setting the
 * high count and low count is so that symbol can be properly removed
 * from the arithmetic coded input.
 */
int convert_symbol_to_int( int count, SYMBOL *s)
{
    int c;

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区日韩| 日本不卡一区二区| 精品国产麻豆免费人成网站| 在线电影院国产精品| 欧美在线|欧美| 欧美午夜影院一区| 91精品国产综合久久小美女| 在线成人小视频| 日韩精品一区二区三区视频在线观看| 91超碰这里只有精品国产| 欧美年轻男男videosbes| 欧美日韩电影一区| 欧美一级一级性生活免费录像| 欧美日韩一区二区欧美激情| 在线不卡一区二区| 精品国产一区二区三区忘忧草| 久久午夜色播影院免费高清| 国产精品久久久久久久久免费丝袜 | 成人黄页在线观看| 99久久精品久久久久久清纯| 一本久久综合亚洲鲁鲁五月天| 欧美午夜免费电影| 久久亚洲综合av| 中文字幕永久在线不卡| 日韩精品五月天| 国产一级精品在线| 欧美性视频一区二区三区| 欧美精品第1页| 国产欧美一区二区在线| 亚洲风情在线资源站| 韩国av一区二区三区在线观看| caoporn国产精品| 91精品国产欧美一区二区18| 国产午夜精品久久久久久免费视| 专区另类欧美日韩| 久久成人18免费观看| www.性欧美| 日韩一区二区三区在线视频| 成人欧美一区二区三区| 免费av成人在线| 日本韩国欧美国产| 欧美国产精品劲爆| 偷拍亚洲欧洲综合| 99久久精品情趣| 久久婷婷久久一区二区三区| 亚洲国产成人av好男人在线观看| 国产一区二区按摩在线观看| 欧美另类z0zxhd电影| 国产精品福利电影一区二区三区四区| 日韩激情一区二区| 日本高清不卡aⅴ免费网站| 国产亚洲精品aa午夜观看| 日本欧洲一区二区| 欧美日韩视频在线观看一区二区三区 | 美日韩黄色大片| 91福利小视频| 日韩伦理电影网| 国产一区二区伦理| 91精品国产美女浴室洗澡无遮挡| 亚洲精品国产无天堂网2021| 国产 欧美在线| 欧美精品一区二区三| 日韩av在线免费观看不卡| 日本高清不卡aⅴ免费网站| 亚洲国产精品传媒在线观看| 激情久久五月天| 精品久久久久久亚洲综合网| 麻豆成人免费电影| 日韩欧美激情四射| 美女一区二区视频| 日韩一区二区电影| 青青草成人在线观看| 91麻豆精品91久久久久同性| 亚洲午夜视频在线| 欧美三区在线观看| 亚洲成在线观看| 欧美一级片在线观看| 日本 国产 欧美色综合| 精品免费一区二区三区| 国产原创一区二区| 国产精品少妇自拍| 99re在线视频这里只有精品| 亚洲精品少妇30p| 欧美在线制服丝袜| 视频一区二区国产| 日韩精品一区二| 国产精品一区二区黑丝| 国产嫩草影院久久久久| 99久久伊人精品| 亚洲国产精品欧美一二99 | 免费精品99久久国产综合精品| 91精选在线观看| 极品少妇一区二区三区精品视频| 久久人人超碰精品| 99热精品一区二区| 亚洲国产视频直播| 日韩欧美亚洲另类制服综合在线| 国产黄色成人av| 亚洲欧美视频在线观看视频| 欧美日产国产精品| 国产做a爰片久久毛片| 国产精品久久久久久久久免费丝袜 | 国产精品传媒视频| 欧美日韩精品电影| 国产精品18久久久久| 最新国产の精品合集bt伙计| 欧美在线不卡视频| 国产成人在线看| 舔着乳尖日韩一区| 欧美国产禁国产网站cc| 欧美日韩精品福利| 成人不卡免费av| 免费精品视频最新在线| 国产精品久久久久久久裸模| 欧美一区在线视频| 99久久综合国产精品| 日本不卡123| 一区二区三区在线视频播放| 国产日韩高清在线| 日韩一区二区视频| 91首页免费视频| 国产毛片精品视频| 免费人成精品欧美精品| 亚洲精品欧美二区三区中文字幕| 精品国产乱子伦一区| 在线观看日韩精品| 波多野结衣欧美| 国产乱码一区二区三区| 日韩经典中文字幕一区| 亚洲精品视频免费观看| 国产精品私房写真福利视频| 欧美成人a视频| 欧美日本一区二区| 欧洲一区在线观看| 99久久精品国产毛片| 国产很黄免费观看久久| 久久国产尿小便嘘嘘尿| 亚洲第一久久影院| 亚洲成人av电影| 亚洲高清免费观看| 亚洲一区二区在线免费观看视频 | 91视视频在线观看入口直接观看www| 玖玖九九国产精品| 欧美a级理论片| 美日韩黄色大片| 日本亚洲天堂网| 视频一区视频二区在线观看| 午夜精品免费在线观看| 亚洲最新视频在线观看| 亚洲精品久久久久久国产精华液| 国产精品女上位| 最新日韩av在线| 亚洲女人小视频在线观看| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 亚洲综合色丁香婷婷六月图片| 亚洲手机成人高清视频| 亚洲男人的天堂网| 亚洲一线二线三线视频| 久久精品噜噜噜成人av农村| 免费久久精品视频| 激情六月婷婷综合| 成人精品免费网站| 色婷婷亚洲一区二区三区| 欧美在线观看一区| 制服丝袜一区二区三区| 欧美xxx久久| 国产精品午夜免费| 亚洲日本护士毛茸茸| 午夜精品国产更新| 老司机免费视频一区二区三区| 国产成人在线视频网站| 91久久国产最好的精华液| 欧美视频在线播放| 久久久久久久综合狠狠综合| 中文字幕一区免费在线观看| 亚洲一区二区欧美激情| 精品一区二区av| www.色精品| 欧美精品日韩一区| 久久久电影一区二区三区| 国产精品国产三级国产普通话99| 亚洲国产日韩a在线播放| 蜜臀av一区二区| 91片在线免费观看| 日韩一区二区在线观看视频播放| 国产欧美中文在线| 午夜精品免费在线| 懂色av中文一区二区三区 | 亚洲国产精品久久久久秋霞影院| 免费成人av资源网| 91啪九色porn原创视频在线观看| 9191成人精品久久| 亚洲四区在线观看| 国精产品一区一区三区mba桃花 | 成人av电影免费在线播放| 91老师片黄在线观看| 精品剧情在线观看| 亚洲精品成a人| 国产91精品一区二区麻豆亚洲| 欧美色综合天天久久综合精品|