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

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

?? pktheaderbitreader.java

?? jpeg2000算法實現(xiàn)
?? JAVA
字號:
/*  * CVS identifier: *  * $Id: PktHeaderBitReader.java,v 1.9 2000/11/26 17:51:36 qtxjoas Exp $ *  * Class:                   PktHeaderBitReader *  * Description:             Bit based reader for packet headers *  *  *  * 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.codestream.reader;import jj2000.j2k.io.*;import java.io.*;/** * This class provides a bit based reading facility from a byte based one, * applying the bit unstuffing procedure as required by the packet headers. * */class PktHeaderBitReader {    /** The byte based source of data */    RandomAccessIO in;    /** The byte array that is the source of data if the PktHeaderBitReader     * is instantiated with a buffer instead of a RandomAccessIO*/    ByteArrayInputStream bais;    /** Flag indicating whether the data should be read from the buffer */    boolean usebais;    /** The current bit buffer */    int bbuf;    /** The position of the next bit to read in the bit buffer (0 means      *  empty, 8 full) */    int bpos;    /** The next bit buffer, if bit stuffing occurred (i.e. current bit      *  buffer holds 0xFF) */    int nextbbuf;    /**     * Instantiates a 'PktHeaderBitReader' that gets the byte data from the     * given source.     *     * @param in The source of byte data     *     * */    PktHeaderBitReader(RandomAccessIO in) {        this.in = in;        usebais=false;    }    /**     * Instantiates a 'PktHeaderBitReader' that gets the byte data from the     * given source.     *     * @param bais The source of byte data     *     * */    PktHeaderBitReader(ByteArrayInputStream bais) {        this.bais = bais;        usebais=true;    }    /**     * Reads a single bit from the input.     *     * @return The read bit (0 or 1)     *     * @exception IOException If an I/O error occurred     *     * @exception EOFException If teh end of file has been reached     *     * */    final int readBit() throws IOException {        if (bpos == 0) { // Is bit buffer empty?            if (bbuf != 0xFF) { // No bit stuffing                if(usebais)                    bbuf = bais.read();                else                    bbuf = in.read();                bpos = 8;                if (bbuf == 0xFF) { // If new bit stuffing get next byte                    if(usebais)                        nextbbuf = bais.read();                    else                        nextbbuf = in.read();                }            }            else { // We had bit stuffing, nextbuf can not be 0xFF                bbuf = nextbbuf;                bpos = 7;            }        }        return (bbuf >> --bpos) & 0x01;    }    /**     * Reads a specified number of bits and returns them in a single     * integer. The bits are returned in the 'n' least significant bits of the      * returned integer. The maximum number of bits that can be read is 31.     *     * @param n The number of bits to read     *     * @return The read bits, packed in the 'n' LSBs.     * @exception IOException If an I/O error occurred     *     * @exception EOFException If teh end of file has been reached     *     * */    final int readBits(int n) throws IOException {        int bits; // The read bits        // Can we get all bits from the bit buffer?        if (n <= bpos) {            return (bbuf >> (bpos-=n)) & ((1<<n)-1);        }        else {            // NOTE: The implementation need not be recursive but the not            // recursive one exploits a bug in the IBM x86 JIT and caused            // incorrect decoding (Diego Santa Cruz).            bits = 0;            do {                // Get all the bits we can from the bit buffer                bits <<= bpos;                n -= bpos;                bits |= readBits(bpos);                // Get an extra bit to load next byte (here bpos is 0)                if (bbuf != 0xFF) { // No bit stuffing                    if(usebais)                        bbuf = bais.read();                    else                        bbuf = in.read();                                      bpos = 8;                    if (bbuf == 0xFF) { // If new bit stuffing get next byte                        if(usebais)                            nextbbuf = bais.read();                        else                            nextbbuf = in.read();                    }                }                else { // We had bit stuffing, nextbuf can not be 0xFF                    bbuf = nextbbuf;                    bpos = 7;                }            } while (n > bpos);            // Get the last bits, if any            bits <<= n;            bits |= (bbuf >> (bpos-=n)) & ((1<<n)-1);            // Return result            return bits;        }    }    /**     * Synchronizes this object with the underlying byte based input. It     * discards and buffered bits and gets ready to read bits from the current      * position in the underlying byte based input.     *     * <P>This method should always be called when some data has been read     * directly from the underlying byte based input since the last call to     * 'readBits()' or 'readBit()' before a new call to any of those methods.     *     * */    void sync() {        bbuf = 0;        bpos = 0;    }    /**     * Sets the underlying byte based input to the given object. This method     * discards any currently buffered bits and gets ready to start reading     * bits from 'in'.     *     * <P>This method is equivalent to creating a new 'PktHeaderBitReader'     * object.     *     * @param in The source of byte data     *     * */    void setInput(RandomAccessIO in) {        this.in = in;        bbuf = 0;        bpos = 0;    }    /**     * Sets the underlying byte based input to the given object. This method     * discards any currently buffered bits and gets ready to start reading     * bits from 'in'.     *     * <P>This method is equivalent to creating a new 'PktHeaderBitReader'     * object.     *     * @param bais The source of byte data     *     * */    void setInput(ByteArrayInputStream bais) {        this.bais = bais;        bbuf = 0;        bpos = 0;    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆成人91精品二区三区| 日韩欧美激情在线| 亚洲激情六月丁香| 色综合中文字幕国产 | 国产午夜亚洲精品羞羞网站| 日本欧美久久久久免费播放网| 4438x成人网最大色成网站| 日韩精品免费专区| 精品久久久网站| 国产suv精品一区二区三区| 国产精品美女久久久久久久久| av电影天堂一区二区在线| 亚洲靠逼com| 欧美一个色资源| 国产成人在线观看| 亚洲男人天堂一区| 欧美高清dvd| 国产精品一卡二卡| 亚洲精品videosex极品| 3atv一区二区三区| 国产精品亚洲视频| 亚洲成人av电影| 26uuu久久天堂性欧美| av中文字幕一区| 亚洲成人福利片| 26uuu久久天堂性欧美| 91性感美女视频| 久久精品国产精品亚洲综合| 欧美激情一区二区三区全黄| 欧洲av一区二区嗯嗯嗯啊| 蜜桃精品视频在线观看| 国产精品初高中害羞小美女文| 欧美日韩美女一区二区| 豆国产96在线|亚洲| 亚洲国产毛片aaaaa无费看| 国产亚洲自拍一区| 欧美日韩大陆一区二区| 成人涩涩免费视频| 日本aⅴ免费视频一区二区三区| 中文一区一区三区高中清不卡| 欧美天堂一区二区三区| 成人一区二区三区中文字幕| 午夜不卡av免费| 亚洲女同ⅹxx女同tv| 久久亚洲捆绑美女| 日韩一区二区在线观看视频| 一本到一区二区三区| 国产一区二区在线电影| 亚洲成a人片综合在线| 欧美国产精品劲爆| 337p粉嫩大胆噜噜噜噜噜91av| 在线观看国产一区二区| 成人丝袜高跟foot| 国精产品一区一区三区mba桃花| 亚洲国产精品久久不卡毛片| 欧美国产97人人爽人人喊| 精品日韩在线一区| 欧美精品亚洲二区| 在线精品视频小说1| eeuss鲁片一区二区三区在线看| 九色porny丨国产精品| 五月天网站亚洲| 亚洲综合色自拍一区| 一区免费观看视频| 国产精品久久久久天堂| 久久久五月婷婷| 久久网这里都是精品| 欧美本精品男人aⅴ天堂| 777亚洲妇女| 3751色影院一区二区三区| 欧美日韩高清一区| 欧美日本高清视频在线观看| 欧美偷拍一区二区| 欧洲亚洲国产日韩| 欧洲激情一区二区| 欧美午夜精品久久久久久超碰| 欧美性受极品xxxx喷水| 在线免费精品视频| 欧美午夜精品理论片a级按摩| 在线免费观看成人短视频| 欧美主播一区二区三区美女| 欧美这里有精品| 欧美色图12p| 欧美片网站yy| 日韩一区二区三区精品视频| 欧美一区二区三区爱爱| 欧美电影免费观看高清完整版在线 | 欧美一级久久久| 日韩一区二区三区视频在线| 91精品婷婷国产综合久久性色| 这里只有精品免费| 337p日本欧洲亚洲大胆精品| 久久综合av免费| 国产精品成人免费在线| 亚洲宅男天堂在线观看无病毒| 三级久久三级久久| 久久国产精品无码网站| 国产夫妻精品视频| 91亚洲精品一区二区乱码| 欧美日韩免费一区二区三区视频| 欧美日韩视频专区在线播放| 91精品国产综合久久香蕉麻豆 | 精品久久免费看| 国产精品色婷婷久久58| 一区二区三区产品免费精品久久75| 亚洲va欧美va国产va天堂影院| 日韩成人免费电影| 国产91露脸合集magnet| 91久久精品一区二区二区| 欧美日韩国产乱码电影| 久久综合九色欧美综合狠狠 | 久久亚洲春色中文字幕久久久| 日本一区二区三区在线不卡| 亚洲另类在线一区| 久久99国内精品| 一本一道综合狠狠老| 欧美一区中文字幕| 国产精品伦一区二区三级视频| 亚洲成av人片观看| 粉嫩aⅴ一区二区三区四区| 精品1区2区3区| 日本一区二区高清| 首页欧美精品中文字幕| 国产99精品国产| 欧美日韩国产不卡| 国产精品成人网| 久久福利视频一区二区| 色婷婷久久一区二区三区麻豆| 精品国产乱码久久久久久图片 | 成人高清在线视频| 91麻豆精品国产91久久久使用方法| 国产视频亚洲色图| 五月天亚洲精品| 91视频在线观看| 国产亚洲一本大道中文在线| 亚洲国产wwwccc36天堂| 成人蜜臀av电影| 日韩精品中午字幕| 亚洲va欧美va天堂v国产综合| www.欧美色图| 国产午夜精品在线观看| 日韩中文字幕亚洲一区二区va在线| 波多野结衣91| 久久精品视频免费观看| 免费精品视频最新在线| 在线观看亚洲专区| 亚洲天堂福利av| 粉嫩一区二区三区在线看| 欧美精品一区二区三区四区| 亚洲成精国产精品女| 91福利国产成人精品照片| 亚洲国产精品v| 国产成人av电影| 久久伊人中文字幕| 美腿丝袜在线亚洲一区| 欧美日韩一卡二卡| 夜夜夜精品看看| 91在线视频免费观看| 国产欧美视频在线观看| 国产主播一区二区三区| 精品人在线二区三区| 免费高清视频精品| 日韩免费看网站| 久久精品国产99| 日韩欧美aaaaaa| 国产综合久久久久影院| 精品少妇一区二区三区 | 91精品国产全国免费观看| 波波电影院一区二区三区| 亚洲午夜成aⅴ人片| 色婷婷综合久久久久中文一区二区| 国产亚洲va综合人人澡精品 | 精品国产精品网麻豆系列| 麻豆精品一区二区三区| 日韩欧美一级二级三级 | 国产成人自拍高清视频在线免费播放| 欧美一级片在线观看| 日韩国产欧美在线观看| 欧美一区二区三级| 国内精品久久久久影院一蜜桃| 精品成人私密视频| 国产精品456| 最近中文字幕一区二区三区| 97精品久久久午夜一区二区三区 | 亚洲免费在线看| 91久久精品网| 天天爽夜夜爽夜夜爽精品视频| 制服丝袜亚洲网站| 国产又粗又猛又爽又黄91精品| 国产欧美一区二区三区沐欲| kk眼镜猥琐国模调教系列一区二区| 日韩久久一区二区| 欧美日韩一区二区欧美激情 | 国产精品女主播在线观看| fc2成人免费人成在线观看播放| 亚洲特黄一级片| 欧美高清一级片在线| 国内精品伊人久久久久av影院| 中文字幕第一区二区| 在线看国产日韩|