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

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

?? progressionspec.java

?? jpeg2000編解碼
?? JAVA
字號:
/* * CVS identifier: * * $Id: ProgressionSpec.java,v 1.1.1.1 2002/07/22 09:26:48 grosbois Exp $ * * Class:                   ProgressionSpec * * Description:             Specification of the progression(s) type(s) and *                          changes of progression. * * COPYRIGHT: *  * This software module was originally developed by Rapha雔 Grosbois and * Diego Santa Cruz (Swiss Federal Institute of Technology-EPFL); Joel * Askel鰂 (Ericsson Radio Systems AB); and Bertrand Berthelot, David * Bouchard, F閘ix Henry, Gerard Mozelle and Patrice Onno (Canon Research * Centre France S.A) in the course of development of the JPEG2000 * standard as specified by ISO/IEC 15444 (JPEG 2000 Standard). This * software module is an implementation of a part of the JPEG 2000 * Standard. Swiss Federal Institute of Technology-EPFL, Ericsson Radio * Systems AB and Canon Research Centre France S.A (collectively JJ2000 * Partners) agree not to assert against ISO/IEC and users of the JPEG * 2000 Standard (Users) any of their rights under the copyright, not * including other intellectual property rights, for this software module * with respect to the usage by ISO/IEC and Users of this software module * or modifications thereof for use in hardware or software products * claiming conformance to the JPEG 2000 Standard. Those intending to use * this software module in hardware or software products are advised that * their use may infringe existing patents. The original developers of * this software module, JJ2000 Partners and ISO/IEC assume no liability * for use of this software module or modifications thereof. No license * or right to this software module is granted for non JPEG 2000 Standard * conforming products. JJ2000 Partners have full right to use this * software module for his/her own purpose, assign or donate this * software module to any third party and to inhibit third parties from * using this software module for non JPEG 2000 Standard conforming * products. This copyright notice must be included in all copies or * derivative works of this software module. *  * Copyright (c) 1999/2000 JJ2000 Partners. * */package jj2000.j2k.entropy;import java.util.*;import jj2000.j2k.codestream.*;import jj2000.j2k.wavelet.*;import jj2000.j2k.image.*;import jj2000.j2k.util.*;import jj2000.j2k.*;/** * This class extends ModuleSpec class for progression type(s) and progression * order changes holding purposes. *  * <p>It stores  the progression type(s) used in the  codestream. There can be *  several progression  type(s) if  progression order  changes are  used (POC * markers).</p> * */public class ProgressionSpec extends ModuleSpec {    /**     * Creates a new ProgressionSpec object for the specified number of tiles     * and components.     *     * @param nt The number of tiles     *     * @param nc The number of components     *     * @param type the type of the specification module i.e. tile specific,     * component specific or both. The ProgressionSpec class should only be     * used only with the type ModuleSpec.SPEC_TYPE_TILE.     * */    public ProgressionSpec(int nt, int nc, byte type) {        super(nt, nc, type);        if ( type !=  ModuleSpec.SPEC_TYPE_TILE ) {            throw new Error("Illegal use of class ProgressionSpec !");        }    }        /**     * Creates a new ProgressionSpec object for the specified number of tiles,     * components and the ParameterList instance.     *     * @param nt The number of tiles     *     * @param nc The number of components     *     * @param nl The number of layer     *     * @param dls The number of decomposition levels specifications     *     * @param type the type of the specification module. The ProgressionSpec     * class should only be used only with the type ModuleSpec.SPEC_TYPE_TILE.     *     * @param pl The ParameterList instance     * */    public ProgressionSpec(int nt,int nc,int nl,IntegerSpec dls,byte type,			   ParameterList pl){        super(nt,nc,type);        String param  = pl.getParameter("Aptype");	Progression[] prog;	int mode = -1;        if(param == null){ // No parameter specified            if(pl.getParameter("Rroi") == null) {                mode = checkProgMode("res");            }            else {                mode = checkProgMode("layer");            }	    if(mode==-1){		String errMsg = "Unknown progression type : '"+param+"'";		throw new IllegalArgumentException(errMsg);  	    }	    prog = new Progression[1];	    prog[0] = new Progression(mode,0,nc,0,dls.getMax()+1,nl);            setDefault(prog);            return;        }        StringTokenizer stk = new StringTokenizer(param);        byte curSpecType = SPEC_DEF; // Specification type of the                                     // current parameter        boolean[] tileSpec = null; // Tiles concerned by the specification        String word   = null; // current word        String errMsg = null; // Error message	boolean needInteger = false; // True if an integer value is expected	int intType = 0; // Type of read integer value (0=index of first	// resolution level, 1= index of first component, 2=index of first  	// layer not included, 3= index of first resolution level not        // included, 4= index of  first component not included	Vector progression = new Vector();	int tmp = 0;	Progression curProg = null;        while(stk.hasMoreTokens()){	    word = stk.nextToken();            switch(word.charAt(0)){            case 't': 		// If progression were previously found, store them		if(progression.size()>0) {		    // Ensure that all information has been taken		    curProg.ce = nc;		    curProg.lye = nl;		    curProg.re = dls.getMax()+1;		    prog = new Progression[progression.size()];		    progression.copyInto(prog);		    if(curSpecType==SPEC_DEF){			setDefault(prog);		    }		    else if(curSpecType==SPEC_TILE_DEF){			for(int i=tileSpec.length-1; i>=0; i--)			    if(tileSpec[i]){				setTileDef(i,prog);			    }		    }		}		progression.removeAllElements();		intType = -1;		needInteger = false;                // Tiles specification                tileSpec = parseIdx(word,nTiles);		curSpecType = SPEC_TILE_DEF;  		break;            default:		// Here, words is either a Integer (progression bound index)		// or a String (progression order type). This is determined by		// the value of needInteger.		if(needInteger) { // Progression bound info		    try{			tmp = (new Integer(word)).intValue();		    }		    catch(NumberFormatException e){			// Progression has missing parameters			throw new IllegalArgumentException("Progression "+							   "order"+							   " specification "+							   "has missing "+							   "parameters: "+							   param);		    }		    switch(intType){		    case 0: // cs			if(tmp<0 || 			   tmp>(dls.getMax()+1))			    throw new 				IllegalArgumentException("Invalid res_start "+							 "in '-Aptype'"+                                                         " option: "+tmp);			curProg.rs = tmp; break;		    case 1: // rs			if(tmp<0 || tmp>nc) {			    throw new 				IllegalArgumentException("Invalid comp_start "+							 "in '-Aptype' "+                                                         "option: "+tmp);                        }			curProg.cs = tmp; break;		    case 2: // lye			if(tmp<0)			    throw new 				IllegalArgumentException("Invalid layer_end "+							 "in '-Aptype'"+                                                         " option: "+tmp);                        if(tmp>nl) {                            tmp = nl;                        }			curProg.lye = tmp; break;		    case 3: // ce			if(tmp<0)			    throw new 				IllegalArgumentException("Invalid res_end "+							 "in '-Aptype'"+                                                         " option: "+tmp);                        if( tmp>(dls.getMax()+1)) {                            tmp = dls.getMax()+1;                        }			curProg.re = tmp; break;		    case 4: // re			if(tmp<0)			    throw new 				IllegalArgumentException("Invalid comp_end "+							 "in '-Aptype'"+                                                         " option: "+tmp);                        if (tmp>nc) {                            tmp = nc;                        }			curProg.ce = tmp; break;		    }		    		    if(intType<4) {			intType++;			needInteger = true;			break;		    } else if(intType==4) {			intType = 0;			needInteger = false;			break;		    } else {			throw new Error("Error in usage of 'Aptype' "+					"option: "+param);		    }		}				if(!needInteger) { // Progression type info		    mode = checkProgMode(word);		    if(mode==-1) {			errMsg = "Unknown progression type : '"+word+"'";			throw new IllegalArgumentException(errMsg);  		    }		    needInteger = true;		    intType = 0;		    if(progression.size()==0) {			curProg = new Progression(mode,0,nc,0,dls.getMax()+1,                                                  nl);                    } else {			curProg = new Progression(mode,0,nc,0,dls.getMax()+1,                                                  nl);		    }		    progression.addElement(curProg);		}            } // switch        } // while 	if(progression.size()==0) { // No progression defined            if(pl.getParameter("Rroi") == null) {                mode = checkProgMode("res");            }            else {                mode = checkProgMode("layer");            }	    if(mode==-1) {		errMsg = "Unknown progression type : '"+param+"'";		throw new IllegalArgumentException(errMsg);  	    }	    prog = new Progression[1];	    prog[0] = new Progression(mode,0,nc,0,dls.getMax()+1,nl);            setDefault(prog);            return; 	}	// Ensure that all information has been taken	curProg.ce = nc;	curProg.lye = nl;	curProg.re = dls.getMax()+1;	// Store found progression	prog = new Progression[progression.size()];	progression.copyInto(prog);	if(curSpecType==SPEC_DEF){	    setDefault(prog);	}	else if(curSpecType==SPEC_TILE_DEF){	    for(int i=tileSpec.length-1; i>=0; i--)		if(tileSpec[i]){		    setTileDef(i,prog);		}	}        // Check that default value has been specified        if(getDefault()==null) {            int ndefspec = 0;            for(int t=nt-1; t>=0; t--){                for(int c=nc-1; c>=0 ; c--){                    if(specValType[t][c] == SPEC_DEF){                        ndefspec++;                    }                }            }                        // If some tile-component have received no specification, they            // receive the default progressiveness.            if(ndefspec!=0){                if(pl.getParameter("Rroi") == null) {                    mode = checkProgMode("res");                }                else {                    mode = checkProgMode("layer");                }                if(mode==-1){                    errMsg = "Unknown progression type : '"+param+"'";                    throw new IllegalArgumentException(errMsg);                  }                prog = new Progression[1];                prog[0] = new Progression(mode,0,nc,0,dls.getMax()+1,nl);                setDefault(prog);                           }            else{                // All tile-component have been specified, takes the first                // tile-component value as default.                setDefault(getTileCompVal(0,0));                switch(specValType[0][0]){                case SPEC_TILE_DEF:                    for(int c=nc-1; c>=0; c--){                        if(specValType[0][c]==SPEC_TILE_DEF)                            specValType[0][c] = SPEC_DEF;                    }                    tileDef[0] = null;                    break;                case SPEC_COMP_DEF:                    for(int t=nt-1; t>=0; t--){                        if(specValType[t][0]==SPEC_COMP_DEF)                            specValType[t][0] = SPEC_DEF;                    }                    compDef[0] = null;                    break;                case SPEC_TILE_COMP:                    specValType[0][0] = SPEC_DEF;                    tileCompVal.put("t0c0",null);                    break;                }            }        }           }    /**      * Check if the progression mode exists and if so, return its integer     * value. It returns -1 otherwise.     *     * @param mode The progression mode stored in a string     *     * @return The integer value of the progression mode or -1 if the     * progression mode does not exist.     *     * @see ProgressionType     * */    private int checkProgMode(String mode) {        if(mode.equals("res")){            return ProgressionType.RES_LY_COMP_POS_PROG;        }        else if( mode.equals("layer") ) {            return ProgressionType.LY_RES_COMP_POS_PROG;        }        else if( mode.equals("pos-comp") ) {            return ProgressionType.POS_COMP_RES_LY_PROG;        }        else if ( mode.equals("comp-pos") ) {            return ProgressionType.COMP_POS_RES_LY_PROG;        }        else if ( mode.equals("res-pos") ) {            return ProgressionType.RES_POS_COMP_LY_PROG;        }        else {            // No corresponding progression mode, we return -1.            return -1;        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级精品大片| 欧美日韩成人综合天天影院| 欧美在线观看视频一区二区三区| 久久免费美女视频| 久久国产视频网| 欧美日韩国产大片| 成人在线一区二区三区| 久久精品日韩一区二区三区| 狠狠色狠狠色合久久伊人| 91精品免费观看| 男男视频亚洲欧美| 3atv一区二区三区| 色综合久久88色综合天天6| 亚洲日本在线看| 91福利国产精品| 日韩黄色片在线观看| 欧美伦理电影网| 麻豆国产精品官网| 久久精品视频一区二区| 91精品国产一区二区三区| 国产在线播精品第三| 国产精品传媒视频| 欧美中文字幕一区二区三区| 国产a精品视频| 亚洲综合色在线| 欧美日韩国产天堂| 色婷婷狠狠综合| 成+人+亚洲+综合天堂| 亚洲动漫第一页| 欧美r级在线观看| 国产精品一级黄| 亚洲一二三四久久| 亚洲日本在线看| 1024成人网| 日韩欧美一级二级三级久久久| 国产精品一区免费视频| 久久av中文字幕片| 久久99久久99小草精品免视看| ...xxx性欧美| 亚洲婷婷国产精品电影人久久| 亚洲国产成人私人影院tom | 成人在线综合网| 久久99久久精品欧美| 青青草国产成人av片免费| 亚洲成av人片在线| 国产精品无码永久免费888| 欧美日本在线播放| 日韩亚洲电影在线| 久久天天做天天爱综合色| 99国产一区二区三精品乱码| 日本伊人色综合网| 亚洲欧美另类在线| 亚洲精品在线免费观看视频| 欧美视频在线一区| 不卡视频一二三| 日本韩国欧美三级| 欧美电影在哪看比较好| 91精品国产综合久久精品app| 欧美一区二区在线视频| 精品国产乱码久久| 欧美高清在线视频| 亚洲精品成a人| 亚洲国产精品二十页| 亚洲欧洲一区二区三区| 亚洲一区二区中文在线| 日本三级韩国三级欧美三级| 国产真实乱对白精彩久久| 欧美成人免费网站| 欧美激情中文不卡| 亚洲激情综合网| 麻豆精品一二三| 国产69精品久久99不卡| 在线视频国内自拍亚洲视频| 日韩欧美一级二级三级久久久| 国产日韩欧美综合一区| 337p日本欧洲亚洲大胆精品 | 中文字幕一区二区三区视频| 亚洲乱码国产乱码精品精小说 | 91免费版pro下载短视频| 国产成人午夜精品5599| 国内国产精品久久| 99视频热这里只有精品免费| 丁香婷婷综合网| 在线国产亚洲欧美| 久久尤物电影视频在线观看| 亚洲色图第一区| 国产一区在线看| 欧美最猛性xxxxx直播| 日韩精品一区二区在线观看| 一区二区三区日韩在线观看| 亚洲人妖av一区二区| 秋霞国产午夜精品免费视频| 成人福利电影精品一区二区在线观看| 欧美三级视频在线播放| 欧美精品第一页| 欧美国产成人在线| 美女视频第一区二区三区免费观看网站| 国产成人精品亚洲777人妖 | 国产精品资源站在线| 色婷婷一区二区| 久久久久久久电影| 午夜精品久久久久久久99水蜜桃| 亚洲乱码精品一二三四区日韩在线 | 国产欧美一区在线| 日韩av在线发布| 一本大道久久a久久精二百| 精品久久久久久亚洲综合网 | 精品在线你懂的| 国产网站一区二区三区| 洋洋成人永久网站入口| 国产不卡高清在线观看视频| 6080日韩午夜伦伦午夜伦| 亚洲欧美一区二区三区久本道91 | 日韩免费高清视频| 亚洲成av人片在线观看无码| 91在线观看下载| 国产日韩欧美精品一区| 精品一区二区三区视频在线观看| 欧美私人免费视频| 亚洲色图一区二区| av成人动漫在线观看| xnxx国产精品| 黑人巨大精品欧美黑白配亚洲| 欧美色区777第一页| 一区二区欧美在线观看| 99re热视频这里只精品| 国产日韩欧美在线一区| 国产精品综合一区二区| 欧美一区二区啪啪| 三级欧美在线一区| 欧美日韩一区三区| 亚洲成av人在线观看| 在线电影院国产精品| 亚洲一区二区三区中文字幕| 99久久99久久免费精品蜜臀| 国产蜜臀av在线一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 精品美女在线观看| 国产在线日韩欧美| 精品久久久久一区| 国产一区二区免费在线| 国产欧美综合色| 99riav一区二区三区| 一个色综合网站| 欧美日韩国产另类一区| 午夜精品久久久久久久99樱桃| 91精品国产91久久综合桃花| 亚洲成年人影院| 日韩一级片网站| 国产一区二区日韩精品| 国产精品欧美一区二区三区| 菠萝蜜视频在线观看一区| 亚洲欧洲三级电影| 欧美伊人久久久久久久久影院| 亚洲h动漫在线| 精品成人私密视频| 成人av小说网| 亚洲一区二区三区中文字幕| 日韩一区二区免费在线电影| 激情小说欧美图片| 国产精品免费久久久久| 91成人看片片| 日韩avvvv在线播放| 亚洲国产精品传媒在线观看| 91国偷自产一区二区三区成为亚洲经典 | 欧美日韩精品免费| 美国十次综合导航| 中日韩免费视频中文字幕| 色综合网站在线| 国产欧美日韩中文久久| 91美女精品福利| 日本视频免费一区| 国产精品久久久久久久午夜片| 色婷婷一区二区三区四区| 久久精品国产网站| 自拍偷自拍亚洲精品播放| 欧美肥妇毛茸茸| 成人一道本在线| 亚洲va欧美va人人爽午夜| 久久精品无码一区二区三区 | 久久综合一区二区| 91在线国产观看| 麻豆视频一区二区| 亚洲欧美偷拍三级| 久久先锋影音av鲁色资源网| 色噜噜狠狠色综合欧洲selulu| 免费美女久久99| 亚洲精品视频一区二区| 久久久久久97三级| 91精品国产乱| 一本色道久久综合亚洲91| 国产一区二区三区四| 亚洲一区二区三区四区在线| 国产亚洲婷婷免费| 5月丁香婷婷综合| 91丨porny丨户外露出| 国产一区在线不卡| 日日噜噜夜夜狠狠视频欧美人| 亚洲国产岛国毛片在线| 日韩免费电影一区|