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

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

?? takehiro.c

?? MP3編碼程序和資料
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* *	MP3 huffman table selecting and bit counting * *	Copyright (c) 1999 Takehiro TOMINAGA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */#include <assert.h>#include "util.h"#include "l3side.h"#include "tables.h"#include "quantize-pvt.h"struct{    unsigned region0_count;    unsigned region1_count;} subdv_table[ 23 ] ={{0, 0}, /* 0 bands */{0, 0}, /* 1 bands */{0, 0}, /* 2 bands */{0, 0}, /* 3 bands */{0, 0}, /* 4 bands */{0, 1}, /* 5 bands */{1, 1}, /* 6 bands */{1, 1}, /* 7 bands */{1, 2}, /* 8 bands */{2, 2}, /* 9 bands */{2, 3}, /* 10 bands */{2, 3}, /* 11 bands */{3, 4}, /* 12 bands */{3, 4}, /* 13 bands */{3, 4}, /* 14 bands */{4, 5}, /* 15 bands */{4, 5}, /* 16 bands */{4, 6}, /* 17 bands */{5, 6}, /* 18 bands */{5, 6}, /* 19 bands */{5, 7}, /* 20 bands */{6, 7}, /* 21 bands */{6, 7}, /* 22 bands */};unsigned int largetbl[16*16];unsigned int table23[3*3];unsigned int table56[4*4];#ifdef MMX_choose_tableunsigned long long tableABC[16*8];unsigned long long tableDEF[16*16];#define table789 (tableABC+9)unsigned long long linbits32[13];unsigned short choose_table_H[13];extern int choose_table_MMX(int *ix, int *end, int *s);#define choose_table(a,b,c) (assert(a<b),choose_table_MMX(a,b,c))#else/*************************************************************************//*	      ix_max							 *//*************************************************************************/int ix_max(int *ix, int *end){    int max1 = 0, max2 = 0;    do {	int x1 = *ix++;	int x2 = *ix++;	if (max1 < x1) 	    max1 = x1;	if (max2 < x2) 	    max2 = x2;    } while (ix < end);    if (max1 < max2) 	max1 = max2;    return max1;}intcount_bit_ESC(int *ix, int *end, int t1, int t2, int *s){    /* ESC-table is used */    int linbits = ht[t1].xlen * 65536 + ht[t2].xlen;    unsigned int sum = 0, sum2;    do {	int x = *ix++;	int y = *ix++;	if (x != 0) {	    if (x > 14) {		x = 15;		sum += linbits;	    }	    x *= 16;	}	if (y != 0) {	    if (y > 14) {		y = 15;		sum += linbits;	    }	    x += y;	}	sum += largetbl[x];    } while (ix < end);    sum2 = sum & 0xffff;    sum >>= 16;    if (sum > sum2) {	sum = sum2;	t1 = t2;    }    *s += sum;    return t1;}INLINE static intcount_bit_noESC(int *ix, int *end, int *s){    /* No ESC-words */    int	sum1 = 0;    const unsigned char *hlen1 = ht[1].hlen;    do {	int x = ix[0] * 2 + ix[1];	ix += 2;	sum1 += hlen1[x];    } while (ix < end);    *s += sum1;    return 1;}INLINE static intcount_bit_noESC_from2(int *ix, int *end, int t1, int *s){    /* No ESC-words */    unsigned int sum = 0, sum2;    const unsigned int xlen = ht[t1].xlen;    unsigned int *hlen;    if (t1 == 2)	hlen = table23;    else	hlen = table56;    do {	int x = ix[0] * xlen + ix[1];	ix += 2;	sum += hlen[x];    } while (ix < end);    sum2 = sum & 0xffff;    sum >>= 16;    if (sum > sum2) {	sum = sum2;	t1++;    }    *s += sum;    return t1;}INLINE static intcount_bit_noESC_from3(int *ix, int *end, int t1, int *s){    /* No ESC-words */    int	sum1 = 0;    int	sum2 = 0;    int	sum3 = 0;    const unsigned int xlen = ht[t1].xlen;    const unsigned char *hlen1 = ht[t1].hlen;    const unsigned char *hlen2 = ht[t1+1].hlen;    const unsigned char *hlen3 = ht[t1+2].hlen;    int t;    do {	int x = ix[0] * xlen + ix[1];	ix += 2;	sum1 += hlen1[x];	sum2 += hlen2[x];	sum3 += hlen3[x];    } while (ix < end);    t = t1;    if (sum1 > sum2) {	sum1 = sum2;	t++;    }    if (sum1 > sum3) {	sum1 = sum3;	t = t1+2;    }    *s += sum1;    return t;}/*************************************************************************//*	      choose table						 *//*************************************************************************//*  Choose the Huffman table that will encode ix[begin..end] with  the fewest bits.  Note: This code contains knowledge about the sizes and characteristics  of the Huffman tables as defined in the IS (Table B.7), and will not work  with any arbitrary tables.*/static int choose_table(int *ix, int *end, int *s){    unsigned int max;    int choice, choice2;    static const int huf_tbl_noESC[] = {	1, 2, 5, 7, 7,10,10,13,13,13,13,13,13,13,13    };    max = ix_max(ix, end);    switch (max) {    case 0:	return (int)max;    case 1:	return count_bit_noESC(ix, end, s);    case 2:    case 3:	return count_bit_noESC_from2(ix, end, huf_tbl_noESC[max - 1], s);    case 4: case 5: case 6:    case 7: case 8: case 9:    case 10: case 11: case 12:    case 13: case 14: case 15:	return count_bit_noESC_from3(ix, end, huf_tbl_noESC[max - 1], s);    default:	/* try tables with linbits */	if (max > IXMAX_VAL) {	    *s = LARGE_BITS;	    return -1;	}	max -= 15;	for (choice2 = 24; choice2 < 32; choice2++) {	    if (ht[choice2].linmax >= max) {		break;	    }	}	for (choice = choice2 - 8; choice < 24; choice++) {	    if (ht[choice].linmax >= max) {		break;	    }	}	return count_bit_ESC(ix, end, choice, choice2, s);    }}#endif/*************************************************************************//*	      count_bit							 *//*************************************************************************//* Function: Count the number of bits necessary to code the subregion. */int count_bits_long(lame_internal_flags *gfc, int ix[576], gr_info *gi){    int i, a1, a2;    int bits = 0;    i=576;    /* Determine count1 region */    for (; i > 1; i -= 2) 	if (ix[i - 1] | ix[i - 2])	    break;    gi->count1 = i;    /* Determines the number of bits to encode the quadruples. */    a1 = a2 = 0;    for (; i > 3; i -= 4) {	int p;	if ((unsigned int)(ix[i-1] | ix[i-2] | ix[i-3] | ix[i-4]) > 1)	    break;	p = ((ix[i-4] * 2 + ix[i-3]) * 2 + ix[i-2]) * 2 + ix[i-1];	a1 += t32l[p];	a2 += t33l[p];    }    bits = a1;    gi->count1table_select = 0;    if (a1 > a2) {	bits = a2;	gi->count1table_select = 1;    }    gi->count1bits = bits;    gi->big_values = i;    if (i == 0 )	return bits;    if (gi->block_type == SHORT_TYPE) {      a1=3*gfc->scalefac_band.s[3];      if (a1 > gi->big_values) a1 = gi->big_values;      a2 = gi->big_values;    }else if (gi->block_type == NORM_TYPE) {	int index;	int scfb_anz = 0;	while (gfc->scalefac_band.l[++scfb_anz] < i) 	    ;	index = subdv_table[scfb_anz].region0_count;	while (gfc->scalefac_band.l[index + 1] > i)	    index--;	gi->region0_count = index;	index = subdv_table[scfb_anz].region1_count;	while (gfc->scalefac_band.l[index + gi->region0_count + 2] > i)	    index--;	gi->region1_count = index;	a1 = gfc->scalefac_band.l[gi->region0_count + 1];	a2 = gfc->scalefac_band.l[index + gi->region0_count + 2];	if (a2 < i)	  gi->table_select[2] = choose_table(ix + a2, ix + i, &bits);    } else {	gi->region0_count = 7;	/*gi->region1_count = SBPSY_l - 7 - 1;*/	gi->region1_count = SBMAX_l -1 - 7 - 1;	a1 = gfc->scalefac_band.l[7 + 1];	a2 = i;	if (a1 > a2) {	    a1 = a2;	}    }    /* Count the number of bits necessary to code the bigvalues region. */    if (0 < a1)      gi->table_select[0] = choose_table(ix, ix + a1, &bits);    if (a1 < a2)      gi->table_select[1] = choose_table(ix + a1, ix + a2, &bits);    return bits;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
狠狠色狠狠色综合日日91app| 亚洲欧美偷拍卡通变态| 亚洲成av人片一区二区三区| 欧美精品tushy高清| 黄色资源网久久资源365| 精品久久久久久久人人人人传媒 | 久久久久成人黄色影片| 奇米色一区二区三区四区| 欧美性受xxxx黑人xyx性爽| 天天综合网 天天综合色| 9191精品国产综合久久久久久| 精一区二区三区| 国产精品三级av| 日本韩国欧美一区| 国内精品在线播放| 亚洲私人黄色宅男| 日韩欧美中文字幕制服| a美女胸又www黄视频久久| 天天综合日日夜夜精品| 精品噜噜噜噜久久久久久久久试看| 亚洲精品成a人| 欧美日韩精品福利| a在线欧美一区| 国产一区二区电影| 日韩国产精品久久久| 亚洲免费av在线| 国产亚洲欧美色| 2020日本不卡一区二区视频| 色婷婷综合久色| 国产精品一区二区在线播放| 日韩精品国产欧美| 精品久久久久久久久久久院品网 | 免费成人结看片| 亚洲欧美国产三级| 亚洲免费观看高清完整版在线观看熊 | 国产麻豆精品在线观看| 三级欧美韩日大片在线看| 午夜av电影一区| 婷婷国产v国产偷v亚洲高清| 亚洲国产aⅴ天堂久久| 亚洲成人免费在线| 日韩理论片中文av| 精品中文字幕一区二区| 亚洲免费观看高清完整版在线观看熊| 日韩一级高清毛片| 久久综合九色综合97婷婷| 国产日韩精品一区| 2022国产精品视频| 国产精品家庭影院| 日本不卡在线视频| jizzjizzjizz欧美| 色婷婷精品大在线视频| 欧美在线观看一二区| 成人久久18免费网站麻豆 | 日韩美一区二区三区| 国产亚洲成aⅴ人片在线观看| 国产精品初高中害羞小美女文| 亚洲一区二区免费视频| 亚洲一区二区视频| 韩国精品主播一区二区在线观看| av在线播放一区二区三区| 欧美在线短视频| 国产欧美日韩久久| 亚洲一区二区三区四区在线| 免费视频最近日韩| 色呦呦国产精品| 国产午夜精品一区二区三区嫩草 | 亚洲第一在线综合网站| 国产传媒一区在线| 欧美mv和日韩mv的网站| 丝袜a∨在线一区二区三区不卡| av中文一区二区三区| 日韩欧美中文一区| 日韩精品色哟哟| 欧美三级电影一区| 亚洲444eee在线观看| 91网站在线播放| 夜夜夜精品看看| 成人黄页在线观看| 伊人性伊人情综合网| 欧美曰成人黄网| 亚洲成人av一区二区三区| 欧美精品tushy高清| 日本人妖一区二区| 欧美sm极限捆绑bd| 国产v综合v亚洲欧| 18欧美乱大交hd1984| 欧美色男人天堂| 污片在线观看一区二区| 日韩一级片在线观看| 国产中文字幕精品| 国产精品午夜电影| 成人国产精品免费观看| 亚洲国产精品久久久久秋霞影院 | 成人免费毛片片v| 国产视频一区在线播放| 成人黄色在线视频| 国产精品久久久久久久久快鸭| 精品视频一区二区不卡| 裸体健美xxxx欧美裸体表演| 精品久久久久一区二区国产| 99久久精品久久久久久清纯| 五月激情综合网| 国产精品传媒入口麻豆| 欧美午夜在线观看| 99久久伊人网影院| 久久精品国产在热久久| 亚洲国产aⅴ成人精品无吗| 国产亚洲人成网站| 91精品国产综合久久久蜜臀图片| 激情文学综合网| 奇米影视一区二区三区小说| 图片区小说区国产精品视频| 亚洲欧美色综合| 一区二区三区四区国产精品| 国产亚洲成年网址在线观看| 精品国精品国产尤物美女| 99久久99久久精品免费观看 | 亚洲欧美日韩系列| 国产精品污www在线观看| 在线视频一区二区三| 99热精品一区二区| 狠狠狠色丁香婷婷综合久久五月| 蜜桃av噜噜一区| 麻豆精品在线播放| 免费国产亚洲视频| 另类小说色综合网站| 麻豆91在线观看| 成人h精品动漫一区二区三区| 午夜不卡av在线| 老汉av免费一区二区三区| 国产乱国产乱300精品| 成人国产精品免费观看视频| 91香蕉视频在线| 欧美大白屁股肥臀xxxxxx| 日韩一级大片在线| 国产真实乱对白精彩久久| 成人免费看的视频| 欧美另类一区二区三区| 国产网站一区二区三区| 亚洲妇女屁股眼交7| 亚洲国产成人va在线观看天堂| 视频一区二区三区中文字幕| 激情小说亚洲一区| 在线免费观看不卡av| 欧美精品一区二区三区一线天视频| 日韩午夜av一区| 亚洲一区二区三区四区在线| 国产精品性做久久久久久| 在线综合视频播放| 亚洲天堂成人网| 国产成人aaa| 欧美精品一区二区三区蜜桃视频| 日韩一区欧美二区| 国产一区二区三区黄视频| 色婷婷亚洲精品| 国产欧美一区视频| 麻豆精品精品国产自在97香蕉| 国产v日产∨综合v精品视频| 日韩一级二级三级| 午夜婷婷国产麻豆精品| 美女视频网站黄色亚洲| 国产性色一区二区| 欧美性大战久久久久久久| 国产91在线观看丝袜| 天天影视涩香欲综合网| 中文字幕欧美日韩一区| 欧美精品一区二区蜜臀亚洲| 欧美影院一区二区| 91麻豆国产香蕉久久精品| 精品一区二区综合| 一级做a爱片久久| 国产精品人成在线观看免费| 国产精品18久久久久久久网站| 国产91在线观看| 亚洲国产一区在线观看| 国产女主播视频一区二区| 久久不见久久见免费视频1| 欧美精品乱码久久久久久按摩| www.亚洲色图| 国内一区二区视频| 日本美女视频一区二区| 蜜桃视频一区二区三区在线观看| 亚洲日本韩国一区| 欧美国产综合一区二区| 国产日韩成人精品| 日韩欧美高清一区| 99久久婷婷国产综合精品| 成人一区二区在线观看| 日本成人在线看| 免费在线一区观看| 老鸭窝一区二区久久精品| 蜜桃视频在线一区| 亚洲一区二区三区精品在线| 国产精品电影一区二区| 久久精品视频在线免费观看 | 高清成人在线观看| 欧美自拍偷拍一区| 91美女在线视频| 欧美日韩专区在线|