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

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

?? imgreaderpgm.java

?? jpeg2000算法實現
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    public final DataBlk getInternCompData(DataBlk blk, int c) {        int k,j,i,mi;        int barr[];        // Check component index        if (c != 0)            throw new IllegalArgumentException();	// Check type of block provided as an argument	if(blk.getDataType()!=DataBlk.TYPE_INT){	    if(intBlk==null)		intBlk = new DataBlkInt(blk.ulx,blk.uly,blk.w,blk.h);	    else{		intBlk.ulx = blk.ulx;		intBlk.uly = blk.uly;		intBlk.w = blk.w;		intBlk.h = blk.h;	    }	    blk = intBlk;	}		// Get data array	barr = (int[]) blk.getData();	if (barr == null || barr.length < blk.w*blk.h) {	    barr = new int[blk.w*blk.h];	    blk.setData(barr); 	}               // Check line buffer        if (buf == null || buf.length < blk.w) {            buf = new byte[blk.w];        }        try {            // Read line by line            mi = blk.uly + blk.h;            for (i = blk.uly; i < mi; i++) {                // Reposition in input                in.seek(offset+i*w+blk.ulx);                in.read(buf,0,blk.w);                for (k = (i-blk.uly)*blk.w+blk.w-1, j = blk.w-1;                     j >= 0; j--, k--) {                    barr[k] = (((int)buf[j])&0xFF)-DC_OFFSET;                }            }        }        catch (IOException e) {            JJ2KExceptionHandler.handleException(e);        }        // Turn off the progressive attribute        blk.progressive = false;        // Set buffer attributes        blk.offset = 0;        blk.scanw = blk.w;	return blk;    }    /**     * Returns, in the blk argument, a block of image data containing the     * specifed rectangular area, in the specified component. The data is     * returned, as a copy of the internal data, therefore the returned data     * can be modified "in place".     *     * <P> After being read the coefficients are level shifted by subtracting     * 2^(nominal bit range - 1)     *     * <P>The rectangular area to return is specified by the 'ulx', 'uly', 'w'     * and 'h' members of the 'blk' argument, relative to the current     * tile. These members are not modified by this method. The 'offset' of     * the returned data is 0, and the 'scanw' is the same as the block's     * width. See the 'DataBlk' class.     *     * <P>If the data array in 'blk' is 'null', then a new one is created. If     * the data array is not 'null' then it is reused, and it must be large     * enough to contain the block's data. Otherwise an 'ArrayStoreException'     * or an 'IndexOutOfBoundsException' is thrown by the Java system.     *     * <P>The returned data has its 'progressive' attribute unset     * (i.e. false).     *     * <P>This method just calls 'getInternCompData(blk, n)'.     *     * <P>When an I/O exception is encountered the JJ2KExceptionHandler is     * used. The exception is passed to its handleException method. The action     * that is taken depends on the action that has been registered in     * JJ2KExceptionHandler. See JJ2KExceptionHandler for details.     *     * @param blk Its coordinates and dimensions specify the area to     * return. If it contains a non-null data array, then it must have the     * correct dimensions. If it contains a null data array a new one is     * created. The fields in this object are modified to return the data.     *     * @param c The index of the component from which to get the data. Only 0     * is valid.     *     * @return The requested DataBlk     *     * @see #getInternCompData     *     * @see JJ2KExceptionHandler     * */    public DataBlk getCompData(DataBlk blk, int c) {        return getInternCompData(blk,c);    }    /**     * Returns a byte read from the RandomAccessIO. The number of read byted     * are counted to keep track of the offset of the pixel data in the PGM     * file     *     * @return One byte read from the header of the PGM file.     *     * @exception IOException If an I/O error occurs.     *     * @exception EOFException If an EOF is read      * */     private byte countedByteRead() throws IOException, EOFException{        offset++;        return in.readByte();    }        /**     * Checks that the RandomAccessIO begins with 'P5'     *     * @exception IOException If an I/O error occurs.     * @exception EOFException If an EOF is read     * */            private void confirmFileType() throws IOException, EOFException{        byte[] type={80,53}; // 'P5'        int i;        byte b;        for(i=0;i<2;i++){            b = countedByteRead();            if(b!=type[i]){                if( i==1 && b==50 )  { //i.e 'P2'                    throw new                         IllegalArgumentException("JJ2000 does not support"+                                                 " ascii-PGM files. Use "+                                                 " raw-PGM file instead. ");                } else {                    throw new IllegalArgumentException("Not a raw-PGM file");                }            }        }    }        /**     * Skips any line in the header starting with '#' and any space, tab, line     * feed or carriage return.     *     * @exception IOException If an I/O error occurs.       * @exception EOFException if an EOF is read     * */    private void skipCommentAndWhiteSpace() throws IOException, EOFException {        boolean done=false;        byte b;                while(!done){            b=countedByteRead();            if(b==35){ // Comment start                while(b!=10 && b!=13){ // Comment ends in end of line                    b=countedByteRead();                }            }else if(!(b==9||b==10||b==13||b==32)){ // If not whitespace                done=true;            }        }        // Put last valid byte in        offset--;        in.seek(offset);    }           /**     * Returns an int read from the header of the PGM file.     *      * @return One int read from the header of the PGM file.     *     * @exception IOException If an I/O error occurs.     * @exception EOFException If an EOF is read      * */    private int readHeaderInt() throws IOException, EOFException{        int res=0;        byte b=0;                b=countedByteRead();           while(b!=32&&b!=10&&b!=9&&b!=13){ // While not whitespace            res=res*10+b-48; // Covert ASCII to numerical value            b=countedByteRead();            }        return res;    }        /**     * Returns true if the data read was originally signed in the specified     * component, false if not. This method returns always false since PGM     * data is always unsigned.     *     * @param c The index of the component, from 0 to N-1.     *     * @return always false, since PGM data is always unsigned.     * */    public boolean isOrigSigned(int c) {        // Check component index        if (c != 0)            throw new IllegalArgumentException();        return false;    }    /**     * Returns a string of information about the object, more than 1 line     * long. The information string includes information from the underlying     * RandomAccessIO (its toString() method is called in turn).     *     * @return A string of information about the object.       * */    public String toString() {        return "ImgReaderPGM: WxH = " + w + "x" + h + ", Component = 0" +            "\nUnderlying RandomAccessIO:\n" + in.toString();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99在线观看| 亚洲精品一区二区在线观看| 综合久久久久久久| 成人18视频日本| 国产精品的网站| 欧美三级电影一区| 日韩国产欧美在线播放| 日韩午夜精品视频| 丰满少妇久久久久久久| 亚洲精品国产无天堂网2021| 欧美日韩国产乱码电影| 狠狠色综合日日| 国产精品久久久久久久岛一牛影视 | 国产成人av自拍| 国产精品不卡视频| 666欧美在线视频| 久久99精品一区二区三区三区| 久久精品人人做人人综合| 99精品国产一区二区三区不卡| 日韩美女视频一区二区| 欧美日本在线播放| 国产精品18久久久久久久网站| 亚洲日本va在线观看| 91麻豆精品国产91久久久使用方法| 国产在线不卡一区| 亚洲欧美国产三级| 日韩亚洲欧美一区二区三区| 国产精品原创巨作av| 亚洲午夜成aⅴ人片| 久久青草国产手机看片福利盒子| 91视频www| 精品无人码麻豆乱码1区2区| 自拍偷拍亚洲欧美日韩| 日韩一二在线观看| 国产福利视频一区二区三区| 亚洲女性喷水在线观看一区| 日韩免费观看高清完整版 | 91在线小视频| 黄色成人免费在线| 亚洲国产综合人成综合网站| 国产欧美精品一区aⅴ影院| 欧美亚一区二区| 风间由美一区二区av101| 日本午夜精品视频在线观看| 中文字幕一区二区三区四区不卡 | 久久影音资源网| 欧美日韩国产小视频在线观看| 丰满岳乱妇一区二区三区 | 精品一区二区在线观看| 亚洲一级二级在线| 中文在线一区二区| 欧美变态tickling挠脚心| 欧美日韩精品系列| 91丨porny丨户外露出| 国产一区二区三区久久久| 男女性色大片免费观看一区二区 | av一本久道久久综合久久鬼色| 六月婷婷色综合| 天天亚洲美女在线视频| 一区二区三区视频在线看| 国产精品入口麻豆九色| 2024国产精品视频| 精品国免费一区二区三区| 91精品国产色综合久久ai换脸 | 成人毛片在线观看| 精品一区二区三区免费观看| 午夜成人免费电影| 亚洲一区二区三区四区在线免费观看 | 欧美日韩久久久| 欧洲色大大久久| 日本精品视频一区二区| jlzzjlzz欧美大全| 成人av电影在线| 99久久精品国产导航| 成人免费av网站| av午夜一区麻豆| 成人免费精品视频| 成人三级伦理片| 成人精品鲁一区一区二区| 岛国精品在线播放| 91在线看国产| 欧美午夜影院一区| 欧美日本国产视频| 日韩免费视频一区| 国产日韩精品一区| 专区另类欧美日韩| 樱花草国产18久久久久| 亚洲午夜精品在线| 天天影视色香欲综合网老头| 麻豆成人在线观看| 国产毛片精品国产一区二区三区| 国产成人亚洲综合a∨婷婷| 国产999精品久久| 一本大道综合伊人精品热热| 欧美性xxxxx极品少妇| 91精品福利在线一区二区三区 | 国产精品一区二区男女羞羞无遮挡| 国产精品自在在线| 99久久国产综合色|国产精品| 97se亚洲国产综合自在线| 欧美视频在线不卡| 精品日韩在线观看| 亚洲欧美一区二区在线观看| 亚洲综合一区二区| 久久 天天综合| 99re热视频精品| 欧美久久一二区| 国产午夜亚洲精品理论片色戒 | 在线综合视频播放| 国产婷婷色一区二区三区四区| 国产精品不卡一区二区三区| 亚洲香肠在线观看| 国产毛片精品国产一区二区三区| 97se亚洲国产综合自在线| 欧美一区二区三区影视| 久久久九九九九| 一区二区三区日韩欧美精品| 激情综合网最新| 欧美综合一区二区| 欧美精品一区二区精品网| 亚洲免费av高清| 国内一区二区在线| 欧美午夜不卡在线观看免费| 久久新电视剧免费观看| 亚洲一区二区三区三| 国产美女在线精品| 欧美久久婷婷综合色| 国产精品第四页| 精品一区二区在线播放| 欧美婷婷六月丁香综合色| 久久久精品国产99久久精品芒果| 一区二区三区丝袜| 成人av网在线| 欧美tk丨vk视频| 亚洲一区二区三区爽爽爽爽爽 | 樱花影视一区二区| 国产aⅴ综合色| 7777精品伊人久久久大香线蕉的 | 亚洲国产aⅴ天堂久久| 国产成人午夜99999| 51午夜精品国产| 亚洲人成影院在线观看| 国产成人99久久亚洲综合精品| 这里只有精品电影| 亚洲一区二区三区不卡国产欧美 | 国产在线视频不卡二| 欧美日本免费一区二区三区| 日韩码欧中文字| 成人免费视频免费观看| 久久一夜天堂av一区二区三区| 日韩成人一级片| 精品视频在线免费| ...xxx性欧美| 粉嫩欧美一区二区三区高清影视 | 91在线国产观看| 国产精品卡一卡二卡三| 国产精品自在在线| 久久久久国产精品厨房| 国产伦精品一区二区三区视频青涩 | 激情小说欧美图片| 91精品国产日韩91久久久久久| 一区二区三区不卡在线观看| 91在线视频免费91| 亚洲欧洲成人av每日更新| 成人黄色综合网站| 国产精品国产三级国产有无不卡| 粉嫩av一区二区三区在线播放| 久久免费国产精品| 国产精品一二三区在线| 久久久三级国产网站| 国产精品77777| 欧美激情资源网| 99精品视频一区| 亚洲精品视频在线观看免费| 色狠狠色噜噜噜综合网| 亚洲综合成人网| 91精品婷婷国产综合久久| 青青国产91久久久久久| 欧美电影免费提供在线观看| 另类小说色综合网站| 国产亚洲精品免费| 99精品在线免费| 夜夜亚洲天天久久| 国产精品一级在线| 99精品黄色片免费大全| 91精品国产色综合久久ai换脸| 亚洲乱码国产乱码精品精的特点| 色噜噜狠狠一区二区三区果冻| 一区二区三区日韩在线观看| 9191国产精品| 精品一二线国产| 奇米影视7777精品一区二区| 精品久久久三级丝袜| 成人黄色在线看| 亚洲国产另类av| 欧美精品一区二区三区视频| 99久久精品国产一区二区三区| 亚洲高清不卡在线观看| 久久综合久久综合亚洲| 91浏览器入口在线观看|