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

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

?? filebitstreamreaderagent.java

?? jpeg2000算法實現
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
				lastByte = in.getPos()+				    tilePartLen[t][curTilePart]-1-				    tilePartHeadLen[t][curTilePart]; 			    }                            // Read SOP marker segment if necessary                            status = pktDec.                                readSOPMarker(nBytes,precIdx[c][r][l],c,r);                            if(status){                                if(pl.getBooleanParameter("cdstr_info"))                                  FacilityManager.getMsgLogger().                                    printmsg(MsgLogger.INFO,strInfo);                                return true;                            }                            if(!pph)                                status = pktDec.                                    readPktHead(l,r,c,precIdx[c][r][l],                                                cbI[c][r],nBytes);			    if(status) {                                if(pl.getBooleanParameter("cdstr_info"))                                    FacilityManager.getMsgLogger().                                        printmsg(MsgLogger.INFO,strInfo);				return true;                            }			    			    // Store packet head length                            hlen = in.getPos()-start;			    pktHL.addElement(new Integer(hlen));			    			    status = 				pktDec.readPktBody(l,r,c,precIdx[c][r][l],                                                   cbI[c][r],nBytes);                            plen = in.getPos()-start;                            strInfo+= " Pkt l="+l+",r="+r+",c="+c+": "+                                start+", "+plen+", "+hlen+"\n";			    if(status){                                if(pl.getBooleanParameter("cdstr_info"))                                    FacilityManager.getMsgLogger().                                        printmsg(MsgLogger.INFO,strInfo);                                return true;                            }			    precIdx[c][r][l]++;			} // End loop on layers		    } // End test on precinct  		} // End loop on resolution levels   	    } // End loop on components 	} // End loop on precincts        if(pl.getBooleanParameter("cdstr_info"))            FacilityManager.getMsgLogger().printmsg(MsgLogger.INFO,strInfo);	return false; // Decoding rate was not reached    }        /**      * Reads packets of the current tile according to the     * component-position-resolution-layer progressiveness.     *     * @param lys Index of the first layer for each component and resolution     *     * @param lye Index of the last layer     *     * @param ress Index of the first resolution level     *     * @param rese Index of the last resolution level     *     * @param comps Index of the first component     *     * @param compe Index of the last component     *     * @return True if rate has been reached     * */    private boolean readCompPosResLy(int lys[][],int lye,int ress,int rese,				     int comps,int compe,                                     int curTilePart)         throws IOException{        boolean pph=false;	int t = getTileIdx(); // Current tile index	boolean status=false; // True if decoding rate is reached when        int lastByte = in.getPos()+tilePartLen[t][curTilePart]-1-            tilePartHeadLen[t][curTilePart];	int start;	Coord xys[],xyInc;	int x0,y0,x1,y1,xInc,yInc,x0_rl,y0_rl,xInc_rl,yInc_rl;        int hlen,plen;        String strInfo = "Tile "+getTileIdx()+" (tile-part:"+curTilePart+            "): offset, length, header length\n";;        if(((Boolean)decSpec.pphs.getTileDef(t)).booleanValue()){            pph = true;        }	// precinct index	int[][][] precIdx = new int[compe][rese][lye];	for(int c=comps; c<compe; c++){// Loop on components	    	    // Loop on precints	    xys = pktDec.getSotEotArrayMax(c);	    x0 = xys[0].x;	    y0 = xys[0].y;	    x1 = xys[1].x;	    y1 = xys[1].y;	    	    xyInc = pktDec.getIncArrayMax(c);	    xInc = xyInc.x;	    yInc = xyInc.y;	    	    // Loop on precincts	    for(int y=y0; y<y1; y+=yInc)		for(int x=x0; x<x1; x+=xInc){		    		    // Loop on resolution levels		    for(int r=ress; r<rese; r++){			// Check if resolution level is defined for this			// component			if(r>mdl[c]) continue;			xyInc = pktDec.getIncArray(c,r);			xInc_rl = xyInc.x;			yInc_rl = xyInc.y;			xys = pktDec.getSotEotArray(c,r);			x0_rl = xys[0].x;			y0_rl = xys[0].y;			// Test on precinct			if( ( (x==x0) || (x%xInc_rl==0) ) &&			    ( (y==y0) || (y%yInc_rl==0) ) ){			    			    // Loop on layers			    for(int l=lys[c][r]; l<lye; l++){				start = in.getPos();                                // If packed packet headers are used, there                                 // is no need to check that there are bytes                                 // enough to read header                                if(pph)                                    status =                                         pktDec.                                        readPktHead(l,r,c,precIdx[c][r][l],                                                    cbI[c][r],nBytes);				// If we are about to read outside of				// tile-part, skip to next tile-part                                if(start>lastByte &&                                    curTilePart < firstPackOff[t].length-1){				    curTilePart++;				    in.seek(firstPackOff[t][curTilePart]);				    lastByte = in.getPos()+					tilePartLen[t][curTilePart]-1-					tilePartHeadLen[t][curTilePart]; 				}                                // Read SOP marker segment if necessary                                status = pktDec.                                    readSOPMarker(nBytes,precIdx[c][r][l],c,r);                                if(status){                                    if(pl.getBooleanParameter("cdstr_info"))                                      FacilityManager.getMsgLogger().                                        printmsg(MsgLogger.INFO,strInfo);                                    return true;                                }                                if(!pph)                                    status =                                         pktDec.                                        readPktHead(l,r,c,precIdx[c][r][l],                                                    cbI[c][r],nBytes);				if(status){                                    if(pl.getBooleanParameter("cdstr_info"))                                        FacilityManager.getMsgLogger().                                            printmsg(MsgLogger.INFO,strInfo);				    return true;				}			    				// Store packet head length                                hlen = in.getPos()-start;				pktHL.addElement(new Integer(hlen));			    				status = 				    pktDec.readPktBody(l,r,c,precIdx[c][r][l],                                                       cbI[c][r],nBytes);                                plen = in.getPos()-start;                                strInfo+= " Pkt l="+l+",r="+r+",c="+c+": "+                                    start+", "+plen+", "+hlen+"\n";				if(status){                                    if(pl.getBooleanParameter("cdstr_info"))                                        FacilityManager.getMsgLogger().                                            printmsg(MsgLogger.INFO,strInfo);				    return true;				}				precIdx[c][r][l]++;			    } // End loop on layers			} // End test on precincts		    } // End loop on resolution levels 		} // End loop on precincts	} // End loop on components        if(pl.getBooleanParameter("cdstr_info"))            FacilityManager.getMsgLogger().printmsg(MsgLogger.INFO,strInfo);	return false; // Decoding rate was not reached    }    /**      * Finish initialization of members for specified tile, reads packets head     * of each tile and keeps location of each code-block's codewords. The     * last 2 tasks are done by calling specific methods of PktDecoder.     *     * <P>Then, if a parsing output rate is defined, it keeps information of     * first layers only. This operation simulates a creation of a     * layer-resolution-component progressive bit-stream which will be next     * truncated and decoded.     *     * @param t Tile index     *     * @see PktDecoder     * */    private void initTile(int t) throws IOException{	pktHL = new Vector();        // Number of layers        int nl = ((Integer)decSpec.nls.getTileDef(t)).intValue();        // If packed packet headers was used, get the packet headers for this        // tile        if(((Boolean)decSpec.pphs.getTileDef(t)).booleanValue()){            // Get packed headers as separate input stream            ByteArrayInputStream pphbais=hd.getPackedPktHead(t);                        // Restarts PacketDecoder instance            cbI = pktDec.restart(nc,mdl,nl,cbI,true,pphbais);        }        else{            // Restarts PacketDecoder instance            cbI = pktDec.restart(nc,mdl,nl,cbI,false,null);        }        // Reads packets of the tile according to the progression order        int[][] pocSpec = ((int[][])decSpec.pcs.getTileDef(t));        int nChg = (pocSpec==null) ?  0 : pocSpec.length;	// Create an array containing information about changes (progression	// order type, layers index start, layer index end, resolution level	// start, resolution level end, component index start, component index	// end). There is one row per progresion order	int[][] change = new int[nChg+1][6];	int idx = 0; // Index of the current progression order		// First progression order is given by the COD marker.	change[0][0] = ((Integer)decSpec.pos.getTileDef(t)).intValue();	change[0][1] = 0; // layer start	for(idx=0; idx<nChg; idx++){	    change[idx][1] = pocSpec[idx][2];// layer end	    change[idx][2] = pocSpec[idx][0]; // res. lev. start	    change[idx][3] = pocSpec[idx][3]; // res. lev. end	    change[idx][4] = pocSpec[idx][1]; // Comp. index start	    change[idx][5] = pocSpec[idx][4]; // Comp. index end	    	    // Next progression order type 	    change[idx+1][0] = pocSpec[idx][5];	}	change[idx][1] = nl; // Layer index end	change[idx][2] = 0; // resolution level start	change[idx][3] = decSpec.dls.getMaxInTile(t)+1; // res. level end	change[idx][4] = 0; // Component index start	change[idx][5] = nc; // Component index end        // Seek to the first packet in the first tile-part	try{            // If in truncation mode, the first tile-part may be beyond the            // target decoding rate. In this case, the offset of the first            // packet is not defined.            if(isTruncMode && firstPackOff==null || firstPackOff[t]==null)                return;            in.seek(firstPackOff[t][0]);	}	catch(EOFException e){	    FacilityManager.getMsgLogger().		printmsg(MsgLogger.WARNING,"Codestream truncated in tile "+t);            return;	}        curTilePart = 0;        // Start and end indexes for layers, resolution levels and components.        int lye,ress,rese,comps,compe;	boolean status = false;	int nb = nBytes[t];	int[][] lys = new int[nc][];	for(int c=0; c<nc; c++){	    lys[c] = new int[((Integer)decSpec.dls.getTileCompVal(t,c)).			    intValue()+1];	}	    	try{            for(int chg=0; chg<=nChg; chg++){                lye = change[chg][1];                ress = change[chg][2];                rese = change[chg][3];                comps = change[chg][4];                compe = change[chg][5];                                switch(change[chg][0]){                case LY_RES_COMP_POS_PROG:                    status = readLyResCompPos(lys,lye,ress,rese,comps,compe,                                              curTilePart);                    break;                case RES_LY_COMP_POS_PROG:                    status = readResLyCompPos(lys,lye,ress,rese,comps,compe,                                              curTilePart);                    break;                case RES_POS_COMP_LY_PROG:                    status = readResPosCompLy(lys,lye,ress,rese,comps,compe,                                              curTilePart);                    break;                case POS_COMP_RES_LY_PROG:                    status = readPosCompResLy(lys,lye,ress,rese,comps,compe,                                              curTilePart);                    break;                case COMP_POS_RES_LY_PROG:                    status = readCompPosResLy(lys,lye,ress,rese,comps,compe,                                              curTilePart);                    break;                default:                    throw new IllegalArgumentException("Not recognized "+                                                       "progression type");                }                		// Update next first layer index 		for(int c=comps; c<compe; c++) {                    if(c>=lys.length) continue;		    for(int r=ress; r<rese; r++) {                        if(r>=lys[c].length) continue;			lys[c][r] = lye;                    }                }                if(status)                    break;            }        }	catch(EOFException e){

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩成人免费在线| 91精品国产综合久久久久久漫画| 色域天天综合网| 一本大道综合伊人精品热热| 日韩欧美国产成人一区二区| 国产欧美一区二区精品性| 亚洲成av人影院| 成人美女视频在线看| 日韩视频免费观看高清完整版| 中文字幕一区二区三区在线观看| 日韩va亚洲va欧美va久久| 91麻豆精品一区二区三区| 久久久久青草大香线综合精品| 亚洲成人免费观看| 色婷婷久久久久swag精品| 国产偷v国产偷v亚洲高清| 麻豆精品一区二区| 欧美日韩精品一区二区三区蜜桃 | 国产精品无遮挡| 青青草原综合久久大伊人精品优势| 91在线观看视频| 国产精品素人一区二区| 国产乱国产乱300精品| 日韩欧美成人一区| 蜜桃一区二区三区在线| 7777女厕盗摄久久久| 亚洲成a人v欧美综合天堂| 在线一区二区视频| 亚洲日本va午夜在线影院| 国产**成人网毛片九色 | 成人一区二区三区视频在线观看| 日韩一区和二区| 麻豆精品久久精品色综合| 9191久久久久久久久久久| 亚洲国产另类av| 欧美老肥妇做.爰bbww| 亚洲国产精品久久艾草纯爱 | 91在线观看视频| 国产精品国产三级国产aⅴ原创 | 91精品国产乱码| 麻豆精品在线看| 久久香蕉国产线看观看99| 国产精品中文字幕欧美| 国产精品视频第一区| 91在线小视频| 亚洲线精品一区二区三区| 欧美剧情片在线观看| 免费高清不卡av| 国产欧美一区二区三区在线看蜜臀| 粉嫩一区二区三区在线看| 亚洲欧美一区二区三区久本道91| 一本大道久久a久久精二百| 亚洲影视在线观看| 69久久夜色精品国产69蝌蚪网| 蜜臀av一区二区| 国产亚洲成aⅴ人片在线观看 | 精品国产麻豆免费人成网站| 国产曰批免费观看久久久| 欧美激情中文字幕| 欧美亚洲一区二区在线| 奇米四色…亚洲| 亚洲国产成人在线| 欧美性色黄大片| 激情六月婷婷久久| 亚洲欧美国产三级| 欧美一区二区三区日韩| 成人午夜视频在线观看| 午夜精品久久久久久久久久久| 精品对白一区国产伦| 色婷婷精品大在线视频| 免费不卡在线观看| 国产精品电影一区二区| 欧美精品乱码久久久久久| 国产成人综合网| 亚洲成人av一区二区| 国产三级一区二区| 欧美日韩卡一卡二| 成人自拍视频在线| 日韩精品乱码av一区二区| 日本一区二区高清| 日韩一区二区三区视频| 91天堂素人约啪| 黄色日韩网站视频| 亚洲国产日韩精品| 中文字幕第一区第二区| 欧美精选在线播放| 99精品欧美一区二区三区小说| 日本在线不卡视频一二三区| |精品福利一区二区三区| 精品奇米国产一区二区三区| 在线看国产日韩| av亚洲精华国产精华精| 经典一区二区三区| 三级亚洲高清视频| 亚洲自拍都市欧美小说| 中文字幕亚洲一区二区va在线| 26uuu亚洲| 欧美一区二区三区性视频| 99riav一区二区三区| 国产成人午夜视频| 久久99国产精品免费| 午夜电影一区二区| 一区二区三区中文字幕| 国产精品免费视频一区| 久久久777精品电影网影网| 日韩视频免费观看高清在线视频| 欧美日韩精品一区二区在线播放| 一本色道亚洲精品aⅴ| www.欧美日韩| 99re视频精品| 99re在线视频这里只有精品| www.久久久久久久久| 成人av中文字幕| 成人ar影院免费观看视频| 国产福利视频一区二区三区| 激情综合五月婷婷| 国内成人自拍视频| 国产激情91久久精品导航| 国产一区二区三区在线观看免费| 久久精品国产亚洲一区二区三区| 视频一区国产视频| 日本vs亚洲vs韩国一区三区二区 | 亚洲综合免费观看高清完整版| 亚洲免费高清视频在线| 夜夜精品视频一区二区| 亚洲尤物在线视频观看| 亚洲成人久久影院| 青青草97国产精品免费观看无弹窗版 | 色狠狠桃花综合| 欧美午夜片在线观看| 欧美精品色综合| 精品久久久久久久人人人人传媒| 久久精品一区二区三区不卡牛牛| 日本一区二区三区久久久久久久久不| 国产精品免费视频一区| 一区二区三区av电影| 日韩专区欧美专区| 韩国欧美国产1区| 成人精品国产免费网站| 欧美亚洲一区二区三区四区| 日韩一二三区视频| 国产精品入口麻豆原神| 一级女性全黄久久生活片免费| 日韩av二区在线播放| 成人性生交大片免费看视频在线| 色哦色哦哦色天天综合| 日韩亚洲欧美在线观看| 国产精品日韩成人| 五月婷婷久久丁香| 国产成人精品亚洲午夜麻豆| 欧美三级韩国三级日本一级| 精品国产a毛片| 亚洲精品亚洲人成人网在线播放| 日本v片在线高清不卡在线观看| 国产91对白在线观看九色| 欧美亚洲国产一区在线观看网站 | 国产毛片一区二区| 色综合咪咪久久| 欧美成人精品二区三区99精品| 亚洲人成人一区二区在线观看| 麻豆精品在线观看| 一本久久a久久精品亚洲 | 日韩欧美黄色影院| 亚洲三级电影网站| 免费成人你懂的| 一本久道中文字幕精品亚洲嫩| 精品久久久久99| 亚洲一区二区三区在线| 国产伦精品一区二区三区免费 | 亚洲视频一区二区在线观看| 久久国产精品72免费观看| 91丨国产丨九色丨pron| 久久久久久影视| 三级久久三级久久久| 色狠狠桃花综合| 亚洲国产高清不卡| 国产一区二区伦理片| 欧美日韩国产首页| 亚洲人成精品久久久久| 成人听书哪个软件好| 久久久噜噜噜久噜久久综合| 日韩高清不卡在线| 欧美性一级生活| 亚洲欧洲综合另类在线| 成人黄色777网| 久久精品这里都是精品| 蜜臀av一区二区在线观看| 欧美群妇大交群的观看方式| 亚洲精品视频一区二区| www.激情成人| 国产精品福利在线播放| 国产精品系列在线观看| 久久久久久久免费视频了| 久久国产夜色精品鲁鲁99| 日韩一区二区三区电影| 免费观看在线色综合| 日韩欧美一区二区在线视频| 日本亚洲电影天堂| 91精品国产入口| 久久精品国产第一区二区三区|