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

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

?? jpeghuffmantable.java

?? 源碼為Eclipse開源開發(fā)平臺(tái)桌面開發(fā)工具SWT的源代碼,
?? JAVA
字號(hào):
/******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials  * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.internal.image;/** * JPEGHuffmanTable class actually represents two types of object: * 1) A DHT (Define Huffman Tables) segment, which may represent *	as many as 4 Huffman tables. In this case, the tables are *	stored in the allTables array. * 2) A single Huffman table. In this case, the allTables array *	will be null. * The 'reference' field is stored in both types of object, but * 'initialize' is only called if the object represents a DHT. */final class JPEGHuffmanTable extends JPEGVariableSizeSegment {	JPEGHuffmanTable[] allTables;	int tableClass;	int tableIdentifier;	int[] dhCodes;	int[] dhCodeLengths;	int[] dhMaxCodes;	int[] dhMinCodes;	int[] dhValPtrs;	int[] dhValues;	int[] ehCodes;	byte[] ehCodeLengths;	static byte[] DCLuminanceTable = {		(byte)255, (byte)196, 0, 31, 0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,		0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11	};	static byte[] DCChrominanceTable = {		(byte)255, (byte)196, 0, 31, 1, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,		0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11	};	static byte[] ACLuminanceTable = {		(byte)255, (byte)196, 0, (byte)181, 16, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125, 		1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 		50, (byte)129, (byte)145, (byte)161, 8, 35, 66, (byte)177, (byte)193, 21, 82, (byte)209, (byte)240, 36, 51, 98, 		114, (byte)130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 		54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 		88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 		119, 120, 121, 122, (byte)131, (byte)132, (byte)133, (byte)134, (byte)135, (byte)136, (byte)137, (byte)138, (byte)146, (byte)147, (byte)148, 		(byte)149, (byte)150, (byte)151, (byte)152, (byte)153, (byte)154, (byte)162, (byte)163, (byte)164, (byte)165, (byte)166, (byte)167, (byte)168, (byte)169, (byte)170, 		(byte)178, (byte)179, (byte)180, (byte)181, (byte)182, (byte)183, (byte)184, (byte)185, (byte)186, (byte)194, (byte)195, (byte)196, (byte)197, (byte)198, (byte)199, 		(byte)200, (byte)201, (byte)202, (byte)210, (byte)211, (byte)212, (byte)213, (byte)214, (byte)215, (byte)216, (byte)217, (byte)218, (byte)225, (byte)226, (byte)227, 		(byte)228, (byte)229, (byte)230, (byte)231, (byte)232, (byte)233, (byte)234, (byte)241, (byte)242, (byte)243, (byte)244, (byte)245, (byte)246, (byte)247, (byte)248, 		(byte)249, (byte)250	};	static byte[] ACChrominanceTable = {		(byte)255, (byte)196, 0, (byte)181, 17, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 		1, 2, 119, 0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 		50, (byte)129, 8, 20, 66, (byte)145, (byte)161, (byte)177, (byte)193, 9, 35, 		51, 82, (byte)240, 21, 98, 114, (byte)209, 10, 22, 36, 52, (byte)225, 37, 		(byte)241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 		68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 		103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, (byte)130, 		(byte)131, (byte)132, (byte)133, (byte)134, (byte)135, (byte)136, (byte)137, 		(byte)138, (byte)146, (byte)147, (byte)148, (byte)149, (byte)150, (byte)151, 		(byte)152, (byte)153, (byte)154, (byte)162, (byte)163, (byte)164, (byte)165, 		(byte)166, (byte)167, (byte)168, (byte)169, (byte)170, (byte)178, (byte)179, 		(byte)180, (byte)181, (byte)182, (byte)183, (byte)184, (byte)185, (byte)186, 		(byte)194, (byte)195, (byte)196, (byte)197, (byte)198, (byte)199, (byte)200, 		(byte)201, (byte)202, (byte)210, (byte)211, (byte)212, (byte)213, (byte)214, 		(byte)215, (byte)216, (byte)217, (byte)218, (byte)226, (byte)227, (byte)228, 		(byte)229, (byte)230, (byte)231, (byte)232, (byte)233, (byte)234, (byte)242, 		(byte)243, (byte)244, (byte)245, (byte)246, (byte)247, (byte)248, (byte)249, 		(byte)250	};	public JPEGHuffmanTable(byte[] reference) {	super(reference);}public JPEGHuffmanTable(LEDataInputStream byteStream) {	super(byteStream);	initialize();}public JPEGHuffmanTable[] getAllTables() {	return allTables;}public static JPEGHuffmanTable getDefaultACChrominanceTable() {	JPEGHuffmanTable result = new JPEGHuffmanTable(ACChrominanceTable);	result.initialize();	return result;}public static JPEGHuffmanTable getDefaultACLuminanceTable() {	JPEGHuffmanTable result = new JPEGHuffmanTable(ACLuminanceTable);	result.initialize();	return result;}public static JPEGHuffmanTable getDefaultDCChrominanceTable() {	JPEGHuffmanTable result = new JPEGHuffmanTable(DCChrominanceTable);	result.initialize();	return result;}public static JPEGHuffmanTable getDefaultDCLuminanceTable() {	JPEGHuffmanTable result = new JPEGHuffmanTable(DCLuminanceTable);	result.initialize();	return result;}public int[] getDhMaxCodes() {	return dhMaxCodes;}public int[] getDhMinCodes() {	return dhMinCodes;}public int[] getDhValPtrs() {	return dhValPtrs;}public int[] getDhValues() {	return dhValues;}public int getTableClass() {	return tableClass;}public int getTableIdentifier() {	return tableIdentifier;}void initialize() {	int totalLength = getSegmentLength() - 2;	int ofs = 4;	int[] bits = new int[16];	JPEGHuffmanTable[] huffTables = new JPEGHuffmanTable[8]; // maximum is 4 AC + 4 DC	int huffTableCount = 0;	while (totalLength > 0) {		int tc = (reference[ofs] & 0xFF) / 16; // table class: AC (1) or DC (0)		int tid = (reference[ofs] & 0xFF) % 16; // table id: 0-1 baseline, 0-3 prog/ext		ofs++;				/* Read the 16 count bytes and add them together to get the table size. */		int count = 0;		for (int i = 0; i < bits.length; i++) {			int bCount = reference[ofs + i] & 0xFF;			bits[i] = bCount;			count += bCount;		}		ofs += 16;		totalLength -= 17;				/* Read the table. */		int[] huffVals = new int[count];		for (int i = 0; i < count; i++) {			huffVals[i] = reference[ofs + i] & 0xFF;		}		ofs += count;		totalLength -= count;				/* Calculate the lengths. */		int[] huffCodeLengths = new int[50]; // start with 50 and increment as needed		int huffCodeLengthsIndex = 0;		for (int i = 0; i < 16; i++) {			for (int j = 0; j < bits[i]; j++) {				if (huffCodeLengthsIndex >= huffCodeLengths.length) {					int[] newHuffCodeLengths = new int[huffCodeLengths.length + 50];					System.arraycopy(huffCodeLengths, 0, newHuffCodeLengths, 0, huffCodeLengths.length);					huffCodeLengths = newHuffCodeLengths;				}				huffCodeLengths[huffCodeLengthsIndex] = i + 1;				huffCodeLengthsIndex++;			}		}				/* Truncate huffCodeLengths to the correct size. */		if (huffCodeLengthsIndex < huffCodeLengths.length) {			int[] newHuffCodeLengths = new int[huffCodeLengthsIndex];			System.arraycopy(huffCodeLengths, 0, newHuffCodeLengths, 0, huffCodeLengthsIndex);			huffCodeLengths = newHuffCodeLengths;		}				/* Calculate the Huffman codes. */		int[] huffCodes = new int[50]; // start with 50 and increment as needed		int huffCodesIndex = 0;		int k = 1;		int code = 0;		int si = huffCodeLengths[0];		int p = 0;		while (p < huffCodeLengthsIndex) {			while ((p < huffCodeLengthsIndex) && (huffCodeLengths[p] == si)) {				if (huffCodesIndex >= huffCodes.length) {					int[] newHuffCodes = new int[huffCodes.length + 50];					System.arraycopy(huffCodes, 0, newHuffCodes, 0, huffCodes.length);					huffCodes = newHuffCodes;				}				huffCodes[huffCodesIndex] = code;				huffCodesIndex++;				code++;				p++;			}			code *= 2;			si++;		}				/* Truncate huffCodes to the correct size. */		if (huffCodesIndex < huffCodes.length) {			int[] newHuffCodes = new int[huffCodesIndex];			System.arraycopy(huffCodes, 0, newHuffCodes, 0, huffCodesIndex);			huffCodes = newHuffCodes;		}				/* Calculate the maximum and minimum codes */		k = 0;		int[] maxCodes = new int[16];		int[] minCodes = new int[16];		int[] valPtrs = new int[16];		for (int i = 0; i < 16; i++) {			int bSize = bits[i];			if (bSize == 0) {				maxCodes[i] = -1;			} else {				valPtrs[i] = k;				minCodes[i] = huffCodes[k];				k += bSize;				maxCodes[i] = huffCodes[k - 1];			}		}				/* Calculate the eHuffman codes and lengths. */		int[] eHuffCodes = new int[256];		byte[] eHuffSize = new byte[256];		for (int i = 0; i < huffCodesIndex; i++) {			eHuffCodes[huffVals[i]] = huffCodes[i];			eHuffSize[huffVals[i]] = (byte)huffCodeLengths[i];		}				/* Create the new JPEGHuffmanTable and add it to the allTables array. */		JPEGHuffmanTable dhtTable = new JPEGHuffmanTable(reference);		dhtTable.tableClass = tc;		dhtTable.tableIdentifier = tid;		dhtTable.dhValues = huffVals;		dhtTable.dhCodes = huffCodes;		dhtTable.dhCodeLengths = huffCodeLengths;		dhtTable.dhMinCodes = minCodes;		dhtTable.dhMaxCodes = maxCodes;		dhtTable.dhValPtrs = valPtrs;		dhtTable.ehCodes = eHuffCodes;		dhtTable.ehCodeLengths = eHuffSize;		huffTables[huffTableCount] = dhtTable;		huffTableCount++;	}	allTables = new JPEGHuffmanTable[huffTableCount];	System.arraycopy(huffTables, 0, allTables, 0, huffTableCount);}public int signature() {	return JPEGFileFormat.DHT;}}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产精品99久久人人澡| 亚洲精品国产视频| 久久成人免费电影| 2022国产精品视频| 粉嫩av亚洲一区二区图片| 香蕉久久夜色精品国产使用方法 | 天堂一区二区在线| 欧美一级理论片| 国产伦精品一区二区三区视频青涩 | 日本一道高清亚洲日美韩| 欧美一区二区三区色| 久草在线在线精品观看| 国产亚洲欧美一区在线观看| 成人av资源在线观看| 亚洲国产一区二区a毛片| 日韩免费视频线观看| 国产成人在线看| 一区二区三区在线免费视频| 欧美日本不卡视频| 国产成人免费视频网站 | 欧美三级视频在线观看| 久久国产麻豆精品| 日韩理论电影院| 欧美mv日韩mv国产| 色综合中文字幕国产| 亚洲电影第三页| 久久综合久久综合亚洲| 91精品1区2区| 国产一区二区三区免费| 亚洲男人的天堂一区二区| 日韩精品一区二区三区老鸭窝| 成人丝袜视频网| 三级一区在线视频先锋| 国产精品久久久久影视| 欧美一级在线免费| 日本高清不卡aⅴ免费网站| 蜜臀a∨国产成人精品| 成人免费在线视频| 欧美精品一区二区三区蜜桃| 在线观看欧美日本| 国产成人无遮挡在线视频| 午夜伦理一区二区| 亚洲欧美日韩国产综合在线| 欧美精品一区二区三区很污很色的 | 精品成人在线观看| 欧美丰满少妇xxxxx高潮对白 | 亚洲欧美激情视频在线观看一区二区三区| 欧美日韩国产一级片| 不卡av在线免费观看| 国内精品免费在线观看| 日韩精品乱码av一区二区| 亚洲欧美乱综合| 欧美激情一二三区| 欧美r级在线观看| 7777精品伊人久久久大香线蕉的 | 亚洲三级免费观看| 7777精品伊人久久久大香线蕉最新版| 不卡av在线免费观看| 国产在线精品免费| 奇米影视一区二区三区| 精品一区二区精品| 94-欧美-setu| 国产精品中文字幕日韩精品| 国产成人在线免费| 色噜噜狠狠成人网p站| 欧美日韩综合不卡| 精品国免费一区二区三区| 国产日产欧产精品推荐色| 欧美韩日一区二区三区四区| 亚洲人成电影网站色mp4| 五月天欧美精品| 国产一区二区三区四区在线观看| 成人av在线播放网站| 欧美亚洲综合另类| 日韩欧美123| 国产精品国产三级国产三级人妇| 亚洲一区二区三区四区在线观看| 免费日韩伦理电影| 99re成人在线| 欧美一区二区成人| 国产精品国产三级国产aⅴ中文 | 一区二区三区不卡视频在线观看 | 精品国产乱码久久| 亚洲欧美成人一区二区三区| 日日夜夜精品视频免费| 成人精品gif动图一区| 欧美高清视频不卡网| 国产日韩欧美精品综合| 亚洲在线免费播放| 精品一区二区成人精品| 欧美四级电影网| 国产三区在线成人av| 午夜一区二区三区在线观看| 国产盗摄一区二区三区| 欧美日韩亚洲高清一区二区| 国产精品免费丝袜| 麻豆高清免费国产一区| 91九色最新地址| 欧美国产精品中文字幕| 美女任你摸久久| 国产精品久久久久久久久免费丝袜 | 久久久久久一二三区| 香蕉成人伊视频在线观看| 成人a区在线观看| www国产精品av| 日韩激情一区二区| 在线视频综合导航| 亚洲欧洲精品一区二区三区 | 亚洲欧美日韩电影| 国产98色在线|日韩| 日韩精品一区二区三区蜜臀| 亚洲第一主播视频| 色久综合一二码| 成人欧美一区二区三区白人| 国产乱人伦偷精品视频不卡| 日韩一区二区在线观看视频播放| 一区二区三区精品视频在线| 97久久超碰国产精品| 国产精品国产三级国产aⅴ无密码| 精品一区二区三区免费| 69堂国产成人免费视频| 午夜视频在线观看一区| 在线欧美一区二区| 一区二区三区中文在线观看| 95精品视频在线| 1024成人网| 色综合天天综合网天天狠天天| 国产麻豆精品一区二区| 91精品国产91久久综合桃花| 午夜欧美电影在线观看| 欧美日韩国产成人在线免费| 亚洲成va人在线观看| 欧美日韩精品专区| 日韩电影在线观看网站| 欧美区在线观看| 日韩中文字幕麻豆| 制服丝袜亚洲色图| 青青草伊人久久| 日韩一区二区在线观看视频播放| 日韩av高清在线观看| 欧美mv日韩mv| 国产ts人妖一区二区| 国产精品久久久久久久久搜平片| 99久久久无码国产精品| 一区二区三区在线看| 欧美三级电影一区| 日韩电影在线观看一区| 精品处破学生在线二十三| 国产精品1区2区| 日韩理论电影院| 欧美日韩综合在线免费观看| 日韩av电影免费观看高清完整版在线观看 | 国产精品亚洲视频| 国产精品久99| 欧美亚洲精品一区| 日韩高清在线电影| 久久久久国产精品厨房| 99视频在线精品| 午夜久久福利影院| 久久亚洲欧美国产精品乐播| 成人av在线播放网址| 亚洲成人自拍一区| 欧美精品一区二区三区蜜桃视频 | 久久久久久一二三区| 成人黄色大片在线观看| 一区二区三区不卡视频| 日韩欧美一区二区在线视频| 国产一区二区剧情av在线| 国产精品国产三级国产aⅴ中文| 欧美性大战xxxxx久久久| 久久97超碰色| 亚洲欧美另类图片小说| 一区二区三区欧美视频| 欧美精品1区2区3区| 懂色一区二区三区免费观看| 一区av在线播放| 2020国产精品久久精品美国| 91麻豆国产精品久久| 日本欧美久久久久免费播放网| 欧美国产国产综合| 欧美精品久久一区二区三区| 国产精品99久久久| 午夜日韩在线电影| 中文字幕国产精品一区二区| 欧美日韩二区三区| 成人精品视频一区二区三区 | 悠悠色在线精品| 精品国内片67194| 在线一区二区三区做爰视频网站| 看电视剧不卡顿的网站| 一区二区三区国产| 国产欧美日本一区视频| 欧美一区二区三区视频在线观看| 99精品桃花视频在线观看| 国内精品国产成人| 亚洲6080在线| 一区二区三区波多野结衣在线观看| 久久综合九色综合久久久精品综合| 欧美亚一区二区| 成人高清视频在线|