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

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

?? quant_h263.c

?? TMS320C6713Xvid視頻壓縮算法源代碼.rar
?? C
字號:
/***************************************************************************** * *  XVID MPEG-4 VIDEO CODEC *  - MPEG4 Quantization H263 implementation - * *  Copyright(C) 2001-2003 Peter Ross <pross@xvid.org> * *  This program is free software ; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation ; either version 2 of the License, or *  (at your option) any later version. * *  This program 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 General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program ; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA * * $Id$ * ****************************************************************************/#include "../global.h"#include "quant.h"/***************************************************************************** * Global function pointers ****************************************************************************//* Quant */quant_intraFuncPtr quant_h263_intra;quant_interFuncPtr quant_h263_inter;/* DeQuant */quant_intraFuncPtr dequant_h263_intra;quant_interFuncPtr dequant_h263_inter;/***************************************************************************** * Local data ****************************************************************************//* divide-by-multiply table * a 16 bit shiting is enough in this case */#define SCALEBITS	16#define FIX(X)		((1L << SCALEBITS) / (X) + 1)static const uint32_t multipliers[32] ={	0,       FIX(2),  FIX(4),  FIX(6),	FIX(8),  FIX(10), FIX(12), FIX(14),	FIX(16), FIX(18), FIX(20), FIX(22),	FIX(24), FIX(26), FIX(28), FIX(30),	FIX(32), FIX(34), FIX(36), FIX(38),	FIX(40), FIX(42), FIX(44), FIX(46),	FIX(48), FIX(50), FIX(52), FIX(54),	FIX(56), FIX(58), FIX(60), FIX(62)};/***************************************************************************** * Function definitions ****************************************************************************//*	quantize intra-block */uint32_tquant_h263_intra_c(int16_t * coeff,				   const int16_t * data,				   const uint32_t quant,				   const uint32_t dcscalar,				   const uint16_t * mpeg_quant_matrices){	const uint32_t mult = multipliers[quant];	const uint16_t quant_m_2 = quant << 1;	int i;	coeff[0] = DIV_DIV(data[0], (int32_t) dcscalar);	for (i = 1; i < 64; i++) {		int16_t acLevel = data[i];		if (acLevel < 0) {			acLevel = -acLevel;			if (acLevel < quant_m_2) {				coeff[i] = 0;				continue;			}			acLevel = (acLevel * mult) >> SCALEBITS;			coeff[i] = -acLevel;		} else {			if (acLevel < quant_m_2) {				coeff[i] = 0;				continue;			}			acLevel = (acLevel * mult) >> SCALEBITS;			coeff[i] = acLevel;		}	}	return(0);}/*	quantize inter-block */uint32_tquant_h263_inter_c(int16_t * coeff,				   const int16_t * data,				   const uint32_t quant,				   const uint16_t * mpeg_quant_matrices){	const uint32_t mult = multipliers[quant];	const uint16_t quant_m_2 = quant << 1;	const uint16_t quant_d_2 = quant >> 1;	uint32_t sum = 0;	uint32_t i;	for (i = 0; i < 64; i++) {		int16_t acLevel = data[i];		if (acLevel < 0) {			acLevel = (-acLevel) - quant_d_2;			if (acLevel < quant_m_2) {				coeff[i] = 0;				continue;			}			acLevel = (acLevel * mult) >> SCALEBITS;			sum += acLevel;		/* sum += |acLevel| */			coeff[i] = -acLevel;		} else {			acLevel -= quant_d_2;			if (acLevel < quant_m_2) {				coeff[i] = 0;				continue;			}			acLevel = (acLevel * mult) >> SCALEBITS;			sum += acLevel;			coeff[i] = acLevel;		}	}	return(sum);}/*	dequantize intra-block & clamp to [-2048,2047] */uint32_tdequant_h263_intra_c(int16_t * data,					 const int16_t * coeff,					 const uint32_t quant,					 const uint32_t dcscalar,					 const uint16_t * mpeg_quant_matrices){	const int32_t quant_m_2 = quant << 1;	const int32_t quant_add = (quant & 1 ? quant : quant - 1);	int i;	data[0] = coeff[0] * dcscalar;	if (data[0] < -2048) {		data[0] = -2048;	} else if (data[0] > 2047) {		data[0] = 2047;	}	for (i = 1; i < 64; i++) {		int32_t acLevel = coeff[i];		if (acLevel == 0) {			data[i] = 0;		} else if (acLevel < 0) {			acLevel = quant_m_2 * -acLevel + quant_add;			data[i] = (acLevel <= 2048 ? -acLevel : -2048);		} else {			acLevel = quant_m_2 * acLevel + quant_add;			data[i] = (acLevel <= 2047 ? acLevel : 2047);		}	}	return(0);}/* dequantize inter-block & clamp to [-2048,2047] */uint32_tdequant_h263_inter_c(int16_t * data,					 const int16_t * coeff,					 const uint32_t quant,					 const uint16_t * mpeg_quant_matrices){	const uint16_t quant_m_2 = quant << 1;	const uint16_t quant_add = (quant & 1 ? quant : quant - 1);	int i;	for (i = 0; i < 64; i++) {		int16_t acLevel = coeff[i];		if (acLevel == 0) {			data[i] = 0;		} else if (acLevel < 0) {			acLevel = acLevel * quant_m_2 - quant_add;			data[i] = (acLevel >= -2048 ? acLevel : -2048);		} else {			acLevel = acLevel * quant_m_2 + quant_add;			data[i] = (acLevel <= 2047 ? acLevel : 2047);		}	}	return(0);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产天堂| 欧美亚洲国产一区二区三区va| 一区二区高清免费观看影视大全| 日本一区二区三区国色天香 | 日韩一区二区三区电影在线观看 | 韩国v欧美v亚洲v日本v| 美腿丝袜亚洲综合| 青青草精品视频| 开心九九激情九九欧美日韩精美视频电影 | 成人精品一区二区三区四区| 国产精品综合视频| 国产suv精品一区二区6| 成人免费精品视频| 欧美在线视频你懂得| 欧美日韩aaaaaa| 欧美成人猛片aaaaaaa| 欧美电视剧在线看免费| 国产亚洲综合色| 亚洲视频一区在线观看| 一区二区欧美在线观看| 日韩高清不卡一区二区| 国产真实乱对白精彩久久| 成人高清伦理免费影院在线观看| 成人免费看片app下载| 欧美性videosxxxxx| 日韩一区二区视频| 中文字幕一区免费在线观看| 亚洲在线免费播放| 国产在线视频一区二区三区| 成人黄色大片在线观看| 欧美日韩在线一区二区| 2024国产精品视频| 一区二区成人在线| 国产成人精品一区二区三区四区 | 日韩午夜激情视频| 中文字幕一区二区在线观看| 日韩av电影天堂| 99久久777色| 精品欧美久久久| 亚洲激情图片小说视频| 精品亚洲aⅴ乱码一区二区三区| 99久久免费国产| 日韩免费高清av| 亚洲一二三四区| 成人av网在线| 久久亚洲欧美国产精品乐播| 亚洲一二三区不卡| 9l国产精品久久久久麻豆| 日韩视频一区在线观看| 亚洲一线二线三线久久久| 成人在线视频一区二区| 欧美大片国产精品| 五月天亚洲婷婷| 色94色欧美sute亚洲线路一久| 久久久亚洲精品一区二区三区 | 精品1区2区在线观看| 亚洲国产综合在线| 日本高清成人免费播放| 欧美国产欧美亚州国产日韩mv天天看完整| 椎名由奈av一区二区三区| 国产黄色精品网站| 久久人人97超碰com| 蜜桃久久精品一区二区| 欧美日韩美少妇| 亚洲高清不卡在线观看| 91黄视频在线| 夜夜嗨av一区二区三区中文字幕 | 91国偷自产一区二区三区成为亚洲经典| 欧美成人精品二区三区99精品| 亚洲成人黄色影院| 欧美体内she精视频| 亚洲永久精品国产| 欧美伊人精品成人久久综合97 | 精品少妇一区二区三区| 日韩一区欧美二区| 在线播放亚洲一区| 日韩精品高清不卡| 欧美大片在线观看一区| 久久99最新地址| 精品国产一区二区在线观看| 精品一区二区三区在线播放| 日韩美女视频一区二区在线观看| 蜜臀久久99精品久久久久宅男| 欧美一区二区免费| 激情图片小说一区| 国产精品美女久久久久av爽李琼| 99久久久久免费精品国产| 亚洲欧洲精品一区二区精品久久久| 9久草视频在线视频精品| 亚洲精品写真福利| 欧美日韩成人一区二区| 久久精品国产亚洲高清剧情介绍 | 欧美一区二区三区啪啪| 日日骚欧美日韩| 久久综合狠狠综合久久综合88| 国产一区二区三区黄视频 | 在线国产电影不卡| 日本最新不卡在线| 久久久综合视频| 成人免费视频一区| 亚洲国产色一区| 久久人人爽爽爽人久久久| gogo大胆日本视频一区| 日本中文一区二区三区| 国产视频一区二区在线| 91蜜桃免费观看视频| 日韩精品国产欧美| 国产精品久久久久婷婷二区次| 欧美日韩综合色| 成人一区二区视频| 日韩在线观看一区二区| 日本一区二区免费在线观看视频| 在线观看国产精品网站| 国产精品99久久久久久似苏梦涵 | 国产精品国产三级国产普通话蜜臀| 日本韩国一区二区三区| 国产精品一级二级三级| 亚洲国产日韩综合久久精品| 亚洲国产精品99久久久久久久久 | 中文字幕在线视频一区| 欧美妇女性影城| 99精品偷自拍| 国产呦萝稀缺另类资源| 水野朝阳av一区二区三区| 日韩理论电影院| 久久久久久久久蜜桃| 91麻豆精品国产91久久久久久| 99国产精品视频免费观看| 九九在线精品视频| 香蕉成人伊视频在线观看| 国产精品久久久久婷婷| 久久精品一区蜜桃臀影院| 日韩亚洲欧美在线观看| 欧美人牲a欧美精品| 91福利视频在线| 91视视频在线观看入口直接观看www | 亚洲国产精品综合小说图片区| 国产免费成人在线视频| 日韩三级视频在线看| 欧美日韩激情一区| 欧美在线观看你懂的| 99久久99久久久精品齐齐| 丁香另类激情小说| 成人午夜电影久久影院| 国产福利一区在线| 国产精品自拍毛片| 国产成人综合视频| 国产激情视频一区二区三区欧美 | 欧美精品日韩精品| 欧美视频一区在线观看| 日本精品一区二区三区四区的功能| 成人性生交大合| 99久久久精品| 色婷婷久久综合| 色婷婷精品久久二区二区蜜臂av | 水蜜桃久久夜色精品一区的特点 | 国产精品久久久久影院色老大| 欧美国产视频在线| 国产精品国产三级国产aⅴ无密码| 国产精品另类一区| 亚洲视频狠狠干| 一区二区三区欧美在线观看| 亚洲午夜精品网| 日本不卡一区二区三区高清视频| 日本不卡的三区四区五区| 韩国视频一区二区| 国产成人午夜精品5599| 91丨porny丨首页| 欧美色大人视频| 精品国产91洋老外米糕| 国产精品天天看| 亚洲大片在线观看| 精品亚洲成a人| 91麻豆国产福利在线观看| 欧美日韩国产a| 国产视频一区不卡| 亚洲一区二区欧美日韩| 精品写真视频在线观看| 9i看片成人免费高清| 777色狠狠一区二区三区| 久久久精品影视| 亚洲成av人片一区二区| 国产一区二区在线免费观看| 91视频一区二区三区| 日韩一区二区精品葵司在线 | 91天堂素人约啪| 欧美电影一区二区| 国产日韩精品一区二区浪潮av| 一区二区三区在线高清| 国产呦萝稀缺另类资源| 欧美日韩精品福利| 欧美国产精品专区| 免费精品视频最新在线| 91女神在线视频| 久久免费电影网| 日韩电影在线免费看| 日本乱人伦aⅴ精品| 久久久亚洲精华液精华液精华液 | 久久影院电视剧免费观看| 亚洲精品视频自拍|