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

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

?? putvlc.c

?? < VC++視頻音頻開發>> 這本書的源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
#include "momusys.h"
#include "vlc.h"
#include "putvlc.h"
#include "bitstream.h"
Int
PutDCsize_lum (Int size, Image *bitstream)
{
	MOMCHECK(size >= 0 && size < 13);
	BitstreamPutBits (bitstream, DCtab_lum[size].code, DCtab_lum[size].len);
	return DCtab_lum[size].len;
}
Int
PutDCsize_chrom (Int size, Image *bitstream)
{
	MOMCHECK (size >= 0 && size < 13);
	BitstreamPutBits (bitstream, DCtab_chrom[size].code, DCtab_chrom[size].len);
	return DCtab_chrom[size].len;
}
Int
PutMV (Int mvint, Image *bitstream)
{
	Int sign = 0;
	Int absmv;
	if (mvint > 32)
	{
		absmv = -mvint + 65;
		sign = 1;
	}
	else
		absmv = mvint;
	BitstreamPutBits (bitstream, mvtab[absmv].code, mvtab[absmv].len);
	if (mvint != 0)
	{
		BitstreamPutBits (bitstream, sign, 1);
		return mvtab[absmv].len + 1;
	}
	else
		return mvtab[absmv].len;
}
Int
PutMCBPC_Intra (Int cbpc, Int mode, Image *bitstream)
{
	Int ind;
	ind = ((mode >> 1) & 3) | ((cbpc & 3) << 2);
	BitstreamPutBits (bitstream, mcbpc_intra_tab[ind].code, mcbpc_intra_tab[ind].len);
	return mcbpc_intra_tab[ind].len;
}
Int
PutMCBPC_Inter (Int cbpc, Int mode, Image *bitstream)
{
	Int ind;
	ind = (mode & 7) | ((cbpc & 3) << 3);
	BitstreamPutBits (bitstream, mcbpc_inter_tab[ind].code,
		mcbpc_inter_tab[ind].len);
	return mcbpc_inter_tab[ind].len;
}
Int
PutMCBPC_Sprite (Int cbpc, Int mode, Image *bitstream)
{
	Int ind;
	ind = (mode & 7) | ((cbpc & 3) << 3);
	BitstreamPutBits (bitstream, mcbpc_sprite_tab[ind].code,
		mcbpc_sprite_tab[ind].len);
	return mcbpc_sprite_tab[ind].len;
}
Int
PutCBPY (Int cbpy, Char intra, Int *MB_transp_pattern, Image *bitstream)
{
	Int ind;
	Int index=0;
	
	
	if (intra == 0) cbpy = 15 - cbpy;
	ind = cbpy;
	BitstreamPutBits (bitstream, cbpy_tab[ind].code, cbpy_tab[ind].len);
	return cbpy_tab[ind].len;
}
Int
PutCoeff_Inter(Int run, Int level, Int last, Image *bitstream)
{
	Int length = 0;
	MOMCHECK (last >= 0 && last < 2);
	MOMCHECK (run >= 0 && run < 64);
	MOMCHECK (level > 0 && level < 128);
	if (last == 0)
	{
		if (run < 2 && level < 13 )
		{
			BitstreamPutBits (bitstream, (LInt)coeff_tab0[run][level-1].code,
				(LInt)coeff_tab0[run][level-1].len);
			length = coeff_tab0[run][level-1].len;
		}
		else if (run > 1 && run < 27 && level < 5)
		{
			BitstreamPutBits (bitstream, (LInt)coeff_tab1[run-2][level-1].code,
				(LInt)coeff_tab1[run-2][level-1].len);
			length = coeff_tab1[run-2][level-1].len;
		}
	}
	else if (last == 1)
	{
		if (run < 2 && level < 4)
		{
			BitstreamPutBits (bitstream, (LInt)coeff_tab2[run][level-1].code,
				(LInt)coeff_tab2[run][level-1].len);
			length = coeff_tab2[run][level-1].len;
		}
		else if (run > 1 && run < 42 && level == 1)
		{
			BitstreamPutBits (bitstream, (LInt)coeff_tab3[run-2].code,
				(LInt)coeff_tab3[run-2].len);
			length = coeff_tab3[run-2].len;
		}
	}
	return length;
}
Int
PutCoeff_Intra(Int run, Int level, Int last, Image *bitstream)
{
	Int length = 0;
	MOMCHECK (last >= 0 && last < 2);
	MOMCHECK (run >= 0 && run < 64);
	MOMCHECK (level > 0 && level < 128);
	if (last == 0)
	{
		if (run == 0 && level < 28 )
		{
			BitstreamPutBits(bitstream, (LInt)coeff_tab4[level-1].code,
				(LInt)coeff_tab4[level-1].len);
			length = coeff_tab4[level-1].len;
		}
		else if (run == 1 && level < 11)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_tab5[level-1].code,
				(LInt)coeff_tab5[level-1].len);
			length = coeff_tab5[level-1].len;
		}
		else if (run > 1 && run < 10 && level < 6)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_tab6[run-2][level-1].code,
				(LInt)coeff_tab6[run-2][level-1].len);
			length = coeff_tab6[run-2][level-1].len;
		}
		else if (run > 9 && run < 15 && level == 1)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_tab7[run-10].code,
				(LInt)coeff_tab7[run-10].len);
			length = coeff_tab7[run-10].len;
		}
	}
	else if (last == 1)
	{
		if (run == 0 && level < 9)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_tab8[level-1].code,
				(LInt)coeff_tab8[level-1].len);
			length = coeff_tab8[level-1].len;
		}
		else if (run > 0 && run < 7 && level < 4)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_tab9[run-1][level-1].code,
				(LInt)coeff_tab9[run-1][level-1].len);
			length = coeff_tab9[run-1][level-1].len;
		}
		else if (run > 6 && run < 21 && level == 1)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_tab10[run-7].code,
				(LInt)coeff_tab10[run-7].len);
			length = coeff_tab10[run-7].len;
		}
	}
	return length;
}
Int
PutCoeff_Inter_RVLC(Int run, Int level, Int last, Image *bitstream)
{
	Int length = 0;
	MOMCHECK (last >= 0 && last < 2);
	MOMCHECK (run >= 0 && run < 64);
	MOMCHECK (level > 0 && level < 128);
	if (last == 0)
	{
		if (run == 0 && level < 20 )
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab14[level-1].code,
				(LInt)coeff_RVLCtab14[level-1].len);
			length = coeff_RVLCtab14[level-1].len;
		}
		else if (run == 1 && level < 11)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab15[level-1].code,
				(LInt)coeff_RVLCtab15[level-1].len);
			length = coeff_RVLCtab15[level-1].len;
		}
		else if (run > 1 && run < 4 && level < 8)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab16[run-2][level-1].code,
				(LInt)coeff_RVLCtab16[run-2][level-1].len);
			length = coeff_RVLCtab16[run-2][level-1].len;
		}
		else if (run == 4 && level < 6)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab17[level-1].code,
				(LInt)coeff_RVLCtab17[level-1].len);
			length = coeff_RVLCtab17[level-1].len;
		}
		else if (run > 4 && run < 8 && level < 5)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab18[run-5][level-1].code,
				(LInt)coeff_RVLCtab18[run-5][level-1].len);
			length = coeff_RVLCtab18[run-5][level-1].len;
		}
		else if (run > 7 && run < 10 && level < 4)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab19[run-8][level-1].code,
				(LInt)coeff_RVLCtab19[run-8][level-1].len);
			length = coeff_RVLCtab19[run-8][level-1].len;
		}
		else if (run > 9 && run < 18 && level < 3)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab20[run-10][level-1].code,
				(LInt)coeff_RVLCtab20[run-10][level-1].len);
			length = coeff_RVLCtab20[run-10][level-1].len;
		}
		else if (run > 17 && run < 39 && level == 1)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab21[run-18].code,
				(LInt)coeff_RVLCtab21[run-18].len);
			length = coeff_RVLCtab21[run-18].len;
		}
	}
	else if (last == 1)
	{
		if (run >= 0 && run < 2 && level < 6)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab22[run][level-1].code,
				(LInt)coeff_RVLCtab22[run][level-1].len);
			length = coeff_RVLCtab22[run][level-1].len;
		}
		else if (run == 2 && level < 4)
		{
			BitstreamPutBits (bitstream, (LInt)coeff_RVLCtab23[level-1].code,
				(LInt)coeff_RVLCtab23[level-1].len);
			length = coeff_RVLCtab23[level-1].len;
		}
		else if (run > 2 && run < 14 && level < 3)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab24[run-3][level-1].code,
				(LInt)coeff_RVLCtab24[run-3][level-1].len);
			length = coeff_RVLCtab24[run-3][level-1].len;
		}
		else if (run > 13 && run < 46 && level == 1)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab25[run-14].code,
				(LInt)coeff_RVLCtab25[run-14].len);
			length = coeff_RVLCtab25[run-14].len;
		}
	}
	return length;
}
Int
PutCoeff_Intra_RVLC(Int run, Int level, Int last, Image *bitstream)
{
	Int length = 0;
	MOMCHECK (last >= 0 && last < 2);
	MOMCHECK (run >= 0 && run < 64);
	MOMCHECK (level > 0 && level < 128);
	if (last == 0)
	{
		if (run == 0 && level < 28 )
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab1[level-1].code,
				(LInt)coeff_RVLCtab1[level-1].len);
			length = coeff_RVLCtab1[level-1].len;
		}
		else if (run == 1 && level < 14)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab2[level-1].code,
				(LInt)coeff_RVLCtab2[level-1].len);
			length = coeff_RVLCtab2[level-1].len;
		}
		else if (run == 2 && level < 12)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab3[level-1].code,
				(LInt)coeff_RVLCtab3[level-1].len);
			length = coeff_RVLCtab3[level-1].len;
		}
		else if (run == 3 && level < 10)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab4[level-1].code,
				(LInt)coeff_RVLCtab4[level-1].len);
			length = coeff_RVLCtab4[level-1].len;
		}
		else if (run > 3 && run < 6 && level < 7)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab5[run-4][level-1].code,
				(LInt)coeff_RVLCtab5[run-4][level-1].len);
			length = coeff_RVLCtab5[run-4][level-1].len;
		}
		else if (run > 5 && run < 8 && level < 6)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab6[run-6][level-1].code,
				(LInt)coeff_RVLCtab6[run-6][level-1].len);
			length = coeff_RVLCtab6[run-6][level-1].len;
		}
		else if (run > 7 && run < 10 && level < 5)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab7[run-8][level-1].code,
				(LInt)coeff_RVLCtab7[run-8][level-1].len);
			length = coeff_RVLCtab7[run-8][level-1].len;
		}
		else if (run > 9 && run < 13 && level < 3)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab8[run-10][level-1].code,
				(LInt)coeff_RVLCtab8[run-10][level-1].len);
			length = coeff_RVLCtab8[run-10][level-1].len;
		}
		else if (run > 12 && run < 20 && level == 1)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab9[run-13].code,
				(LInt)coeff_RVLCtab9[run-13].len);
			length = coeff_RVLCtab9[run-13].len;
		}
	}
	else if (last == 1)
	{
		if (run >= 0 && run < 2 && level < 6)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab10[run][level-1].code,
				(LInt)coeff_RVLCtab10[run][level-1].len);
			length = coeff_RVLCtab10[run][level-1].len;
		}
		else if (run == 2 && level < 4)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab11[level-1].code,
				(LInt)coeff_RVLCtab11[level-1].len);
			length = coeff_RVLCtab11[level-1].len;
		}
		else if (run > 2 && run < 14 && level < 3)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab12[run-3][level-1].code,
				(LInt)coeff_RVLCtab12[run-3][level-1].len);
			length = coeff_RVLCtab12[run-3][level-1].len;
		}
		else if (run > 13 && run < 46 && level == 1)
		{
			BitstreamPutBits(bitstream, (LInt)coeff_RVLCtab13[run-14].code,
				(LInt)coeff_RVLCtab13[run-14].len);
			length = coeff_RVLCtab13[run-14].len;
		}
	}
	return length;
}
Int
PutRunCoeff_Inter(Int run, Int level, Int last, Image *bitstream)
{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产不卡一区视频| 国产不卡一区视频| 蜜臀精品一区二区三区在线观看| 国产丝袜在线精品| 日韩欧美国产电影| 91精品在线观看入口| 欧美日韩一二三区| 欧美性猛交xxxx乱大交退制版| 在线视频你懂得一区| 91精品福利视频| 在线看日韩精品电影| 国产免费久久精品| 欧美韩日一区二区三区四区| 久久久99久久精品欧美| 精品国产亚洲在线| 久久蜜臀精品av| 免费人成网站在线观看欧美高清| 激情文学综合插| 国产精品1区二区.| 色婷婷综合久久久| 欧美精品 日韩| 国产亚洲人成网站| 精品无码三级在线观看视频| 99久久99久久免费精品蜜臀| 在线看国产一区| 亚洲精品福利视频网站| 亚洲成人自拍偷拍| 久久国产精品99久久久久久老狼| 国产成人在线视频免费播放| 91高清在线观看| 亚洲精品日韩一| 欧美日免费三级在线| 亚洲男人的天堂网| 另类人妖一区二区av| 日韩一区二区免费在线电影| 亚洲柠檬福利资源导航| 色哟哟国产精品免费观看| 日韩美女视频19| 韩国三级中文字幕hd久久精品| 精品久久久久av影院| 亚洲精品成人精品456| 色天使色偷偷av一区二区| 亚洲一区二区三区四区五区黄| 韩国在线一区二区| 欧美国产成人精品| 一本一道波多野结衣一区二区| 成人免费在线视频观看| 精品在线视频一区| 国产日韩高清在线| 91精品91久久久中77777| 午夜欧美一区二区三区在线播放| 成人动漫av在线| 久久午夜羞羞影院免费观看| 日韩av网站免费在线| 欧美亚洲国产一区二区三区va | www国产成人| 国产精品一线二线三线| 国产精品对白交换视频| 狠狠色丁香九九婷婷综合五月| 国产嫩草影院久久久久| 91国在线观看| 国产一区二区影院| 日韩欧美国产一二三区| 成人av资源在线| 日韩av午夜在线观看| 欧美国产综合一区二区| 欧美亚洲动漫另类| 国产精品一级片| 亚洲一区二区三区在线播放| 欧美mv日韩mv国产网站app| 成人免费毛片app| 国产精品天天摸av网| 丁香六月久久综合狠狠色| 一区二区三区免费看视频| 色激情天天射综合网| 国内精品伊人久久久久av影院| 亚洲黄色在线视频| 久久久www免费人成精品| 欧美日韩国产精品成人| 蜜桃91丨九色丨蝌蚪91桃色| 中文字幕一区二区不卡| 欧美成人精品1314www| 色噜噜夜夜夜综合网| 国产成人精品免费视频网站| 日本亚洲电影天堂| 尤物在线观看一区| 国产精品美女久久久久av爽李琼| 日韩午夜激情免费电影| 欧美中文字幕一区| av一区二区三区黑人| 亚洲精品久久嫩草网站秘色| 久久精品一区二区三区不卡牛牛| 在线不卡a资源高清| 91免费在线视频观看| 亚洲成人免费影院| ...xxx性欧美| 国产精品国产三级国产aⅴ入口 | 中文字幕中文字幕一区二区| 精品1区2区在线观看| 欧美人伦禁忌dvd放荡欲情| a在线播放不卡| 成人综合婷婷国产精品久久蜜臀 | 欧美精品精品一区| 欧美性生交片4| 欧美午夜宅男影院| 欧美亚洲另类激情小说| 欧美体内she精视频| 成人高清视频在线观看| 丁香五精品蜜臀久久久久99网站 | 欧美体内she精视频| 欧美专区在线观看一区| 欧美网站大全在线观看| 欧美日韩免费电影| 欧美日韩第一区日日骚| 91麻豆精品国产综合久久久久久| 欧美国产日韩a欧美在线观看| 精品国产一区二区在线观看| 日韩欧美黄色影院| 精品播放一区二区| 久久精品男人天堂av| 国产亚洲美州欧州综合国| 国产欧美一区二区在线| 中文字幕制服丝袜一区二区三区| 中文字幕一区二区在线播放| 亚洲欧美影音先锋| 亚洲一二三四区| 91精品国产入口| 91久久一区二区| 欧美三级视频在线播放| 欧美日韩视频第一区| 欧美一区二区日韩一区二区| 欧美大黄免费观看| 国产欧美在线观看一区| 亚洲猫色日本管| 午夜精品福利在线| 久久99国产精品久久| www.色综合.com| 欧美日韩一区在线观看| 26uuu精品一区二区三区四区在线| 国产欧美视频一区二区| 一个色在线综合| 久久精品国产网站| 成人黄色一级视频| 欧美肥妇毛茸茸| 久久精品日韩一区二区三区| 亚洲在线视频网站| 国产一区二区不卡| 欧美中文字幕不卡| 国产欧美一区视频| 亚洲高清免费视频| 国产成人精品免费看| 欧美美女激情18p| 国产精品日产欧美久久久久| 日韩成人免费看| 成人免费高清在线| 欧美一卡2卡三卡4卡5免费| 亚洲国产精品成人综合色在线婷婷| 亚洲成人精品在线观看| 成人理论电影网| 日韩精品中文字幕在线不卡尤物 | 欧美日韩国产经典色站一区二区三区| 久久综合精品国产一区二区三区| 伊人色综合久久天天| 国产一区在线看| 欧美精三区欧美精三区| 综合电影一区二区三区| 国产一区日韩二区欧美三区| 欧美精选一区二区| 亚洲乱码精品一二三四区日韩在线 | 欧美一级黄色片| 亚洲精品中文在线影院| 岛国精品在线观看| 欧美va亚洲va国产综合| 日韩国产在线观看| 日本丶国产丶欧美色综合| 国产精品久久久久四虎| 久久99久久99| 制服丝袜一区二区三区| 亚洲综合图片区| 一本色道a无线码一区v| 国产精品理伦片| 从欧美一区二区三区| 欧美成人综合网站| 美腿丝袜亚洲色图| 欧美精品v日韩精品v韩国精品v| 一区二区三区四区高清精品免费观看| 福利一区福利二区| 欧美极品xxx| 国产不卡免费视频| 国产女同互慰高潮91漫画| 欧美中文字幕一二三区视频| 亚洲免费伊人电影| 91猫先生在线| 亚洲一区免费在线观看| 色婷婷av一区二区| 亚洲午夜久久久久中文字幕久| 欧美在线观看一区二区| 亚洲 欧美综合在线网络| 欧美人狂配大交3d怪物一区| 天天操天天色综合|