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

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

?? bittobyteoutput.java

?? jpeg2000算法實現
?? JAVA
字號:
/*  * CVS identifier: *  * $Id: BitToByteOutput.java,v 1.14 2000/12/22 12:59:54 grosbois Exp $ *  * Class:                   BitToByteOutput *  * Description:             Adapter to perform bit based output on a byte *                          based one. *  *  *  * 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.encoder;import jj2000.j2k.io.*;/** * This class provides an adapter to perform bit based output on byte based * output objects that inherit from a 'ByteOutputBuffer' class. This class * implements the bit stuffing policy needed for the 'selective arithmetic * coding bypass' mode of the entropy coder. This class also delays the output * of a trailing 0xFF, since they are synthetized be the decoder. * */class BitToByteOutput {    /** The alternating sequence of 0's and 1's used for byte padding */    static final int PAD_SEQ = 0x2A;    /** Flag that indicates if an FF has been delayed */    boolean delFF = false;    /** The byte based output */    ByteOutputBuffer out;    /** The bit buffer */    int bbuf;    /** The position of the next bit to put in the bit buffer. When it is 7     * the bit buffer 'bbuf' is empty. The value should always be between 7     * and 0 (i.e. if it gets to -1, the bit buffer should be immediately     * written to the byte output). */    int bpos = 7;    /** The number of written bytes (excluding the bit buffer) */    int nb = 0;    /**     * Instantiates a new 'BitToByteOutput' object that uses 'out' as the     * underlying byte based output.     *     * @param out The underlying byte based output     * */    BitToByteOutput(ByteOutputBuffer out) {        this.out = out;    }    /**     * Writes to the bit stream the symbols contained in the 'symbuf'     * buffer. The least significant bit of each element in 'symbuf'is     * written.     *     * @param symbuf The symbols to write     *     * @param nsym The number of symbols in symbuf     * */    final void writeBits(int[] symbuf, int nsym) {        int i;        int bbuf,bpos;        bbuf = this.bbuf;        bpos = this.bpos;        // Write symbol by symbol to bit buffer        for (i=0; i<nsym; i++) {            bbuf |= (symbuf[i]&0x01)<<(bpos--);            if (bpos<0) { // Bit buffer is full, write it                if (bbuf != 0xFF) { // No bit-stuffing needed                    if (delFF) { // Output delayed 0xFF if any                        out.write(0xFF);                        delFF = false;                        nb++;                    }                    out.write(bbuf);                    nb++;                    bpos = 7;                }                else { // We need to do bit stuffing on next byte                    delFF = true;                    bpos = 6; // One less bit in next byte                }                bbuf = 0;            }        }        this.bbuf = bbuf;        this.bpos = bpos;    }    /**     * Write a bit to the output. The least significant bit of 'bit' is     * written to the output.     *     * @param bit     * */    final void writeBit(int bit) {        bbuf |= (bit&0x01)<<(bpos--);        if (bpos<0) {            if (bbuf != 0xFF) { // No bit-stuffing needed                if (delFF) { // Output delayed 0xFF if any                    out.write(0xFF);                    delFF = false;                    nb++;                }                // Output the bit buffer                out.write(bbuf);                nb++;                bpos = 7;            }            else { // We need to do bit stuffing on next byte                delFF = true;                bpos = 6; // One less bit in next byte            }            bbuf = 0;        }    }    /**     * Writes the contents of the bit buffer and byte aligns the output by     * filling bits with an alternating sequence of 0's and 1's.     * */    void flush() {        if (delFF) { // There was a bit stuffing            if (bpos != 6) { // Bit buffer is not empty                // Output delayed 0xFF                out.write(0xFF);                delFF = false;                nb++;                // Pad to byte boundary with an alternating sequence of 0's                // and 1's.                bbuf |= (PAD_SEQ >>> (6-bpos));                // Output the bit buffer                out.write(bbuf);                nb++;                bpos = 7;                bbuf = 0;            }        }        else { // There was no bit stuffing            if (bpos != 7) { // Bit buffer is not empty                // Pad to byte boundary with an alternating sequence of 0's and                // 1's.                bbuf |= (PAD_SEQ >>> (6-bpos));                // Output the bit buffer (bbuf can not be 0xFF)                out.write(bbuf);                nb++;                bpos = 7;                bbuf = 0;            }        }    }    /**     * Terminates the bit stream by calling 'flush()' and then 'reset()'.     * */    public void terminate() {        flush();        reset();    }    /**     * Resets the bit buffer to empty, without writing anything to the     * underlying byte output, and resets the byte count. The underlying byte     * output is NOT reset.     * */    void reset() {        delFF = false;        bpos = 7;        bbuf = 0;        nb = 0;    }    /**     * Returns the length, in bytes, of the output bit stream as written by     * this object. If the output bit stream does not have an integer number     * of bytes in length then it is rounded to the next integer.     *     * @return The length, in bytes, of the output bit stream.     * */    int length() {        if (delFF) {            // If bit buffer is empty we just need 'nb' bytes. If not we need            // the delayed FF and the padded bit buffer.            return nb + ((bpos==6) ? 0 : 2);        }        else {            // If the bit buffer is empty, we just need 'nb' bytes. If not, we            // add length of the padded bit buffer            return nb + ((bpos==7) ? 0 : 1);        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
六月丁香婷婷色狠狠久久| 欧美伊人久久久久久午夜久久久久| 天天操天天干天天综合网| 亚洲一区二区精品3399| 一区二区三区欧美亚洲| 亚洲主播在线观看| 亚洲国产婷婷综合在线精品| 亚洲国产成人av网| 日本一区中文字幕| 日本一区中文字幕| 精品一区二区av| 精品一区二区三区免费毛片爱 | 亚洲精品国产精品乱码不99| 中文字幕一区二区三区在线播放| 国产精品毛片久久久久久久| 中文字幕日韩精品一区| 亚洲美女一区二区三区| 亚洲一区二区av在线| 日韩成人午夜精品| 免费成人美女在线观看.| 国产在线看一区| 成人h动漫精品一区二区| 色综合久久久久综合99| 欧美精品一卡两卡| 久久影院午夜论| 国产精品久久久久久久久搜平片| 综合欧美一区二区三区| 视频精品一区二区| 狠狠色丁香婷综合久久| av一区二区三区| 欧美日韩黄色一区二区| 精品卡一卡二卡三卡四在线| 国产精品久久久久精k8| 亚洲午夜av在线| 九九视频精品免费| 99国产精品久久久| 欧美人xxxx| 中文字幕精品—区二区四季| 亚洲国产裸拍裸体视频在线观看乱了| 日韩av一区二区三区四区| 国产成人午夜高潮毛片| 在线精品视频一区二区三四| 欧美一区中文字幕| 成人手机在线视频| 日本成人中文字幕| 成人午夜伦理影院| 欧美精品一卡两卡| 中文字幕日本不卡| 日韩**一区毛片| 91在线视频网址| 日韩亚洲欧美成人一区| 国产精品久久免费看| 视频一区视频二区中文| av资源站一区| 亚洲精品一区二区三区精华液 | 粉嫩13p一区二区三区| 欧美在线观看一二区| 久久亚洲综合色| 亚洲第一激情av| 成人精品视频一区| 91精品国产91久久综合桃花| 亚洲免费视频成人| 国产精品一级二级三级| 欧美日韩成人综合天天影院 | 亚洲成人中文在线| 国产不卡在线一区| 欧美区在线观看| 樱花影视一区二区| 丰满少妇久久久久久久| 欧美一级一区二区| 亚洲色图都市小说| 成人午夜私人影院| 精品卡一卡二卡三卡四在线| 五月婷婷综合网| 91美女片黄在线观看91美女| 久久久激情视频| 精品一区二区三区免费毛片爱| 欧美亚洲一区三区| 中文字幕一区二区在线观看 | 91精品国产综合久久久蜜臀粉嫩 | 亚洲高清免费一级二级三级| 99精品视频一区二区| 久久精品综合网| 久久66热re国产| 91麻豆精品国产自产在线观看一区| 亚洲欧美日韩国产综合在线 | 7777精品久久久大香线蕉 | 风间由美一区二区av101| 日韩欧美www| 美女网站一区二区| 91麻豆精品国产91久久久久| 亚洲第一狼人社区| 欧美日韩一区久久| 亚洲高清三级视频| 欧美四级电影网| 亚洲高清视频中文字幕| 欧美性做爰猛烈叫床潮| 亚洲精品国产成人久久av盗摄| 91丨九色丨尤物| 丰满少妇久久久久久久| 久久这里只有精品视频网| 精品一区精品二区高清| 欧美成人精品1314www| 日本不卡视频在线| 日韩欧美电影一区| 国产一区二区久久| 欧美国产日韩a欧美在线观看| 国产精品99久| 国产精品免费av| 色综合久久99| 亚洲一区免费观看| 91精品国产综合久久精品图片| 蜜桃视频第一区免费观看| 日韩欧美国产一二三区| 国产精品99久久久久久久女警| 中文字幕av不卡| gogo大胆日本视频一区| 亚洲人一二三区| 欧美日本一区二区| 极品瑜伽女神91| 国产欧美中文在线| 色琪琪一区二区三区亚洲区| 亚洲国产精品一区二区尤物区| 91精品国产综合久久精品性色| 久久99国内精品| 国产精品三级视频| 在线观看一区不卡| 蜜臀av性久久久久av蜜臀妖精| 26uuu亚洲综合色欧美| 成人免费毛片高清视频| 亚洲乱码一区二区三区在线观看| 欧美丝袜丝交足nylons| 免费的成人av| 国产精品毛片高清在线完整版| 色噜噜久久综合| 奇米在线7777在线精品| 久久精品综合网| 91国在线观看| 久久国产夜色精品鲁鲁99| 国产欧美日韩精品a在线观看| 91啪亚洲精品| 理论片日本一区| 中文字幕一区二区三区乱码在线| 欧美四级电影在线观看| 国产在线精品一区二区| 亚洲欧美日韩人成在线播放| 日韩欧美你懂的| 91蜜桃婷婷狠狠久久综合9色| 天天综合色天天| 国产精品久久免费看| 欧美一区二区三区不卡| 成人av在线资源网| 日韩高清中文字幕一区| 国产精品电影一区二区| 日韩一区二区在线观看视频播放| 成人丝袜18视频在线观看| 日本不卡123| 亚洲精品美国一| 精品福利一二区| 欧美亚洲国产怡红院影院| 国产精品一品视频| 亚洲va国产va欧美va观看| 国产精品久久久久永久免费观看| 欧美一区二区视频网站| 色婷婷国产精品综合在线观看| 国产伦精品一区二区三区免费| 日韩中文字幕麻豆| 亚洲天堂精品在线观看| 久久婷婷成人综合色| 69av一区二区三区| 91福利在线看| av不卡在线播放| 国产精品中文字幕日韩精品 | 国产一区不卡视频| 久久成人av少妇免费| 亚洲影视在线播放| 国产精品高潮呻吟久久| 日韩欧美www| 欧美久久久久久久久中文字幕| 99国产精品视频免费观看| 国产精品亚洲专一区二区三区 | 五月婷婷另类国产| 亚洲三级电影全部在线观看高清| 国产亚洲欧美激情| 精品黑人一区二区三区久久 | 国产精品乱码妇女bbbb| 久久在线观看免费| 欧美成人官网二区| 99国产一区二区三精品乱码| 欧美理论在线播放| 色呦呦国产精品| 91日韩精品一区| 成人av中文字幕| 国产91在线看| 国产高清无密码一区二区三区| 韩国三级中文字幕hd久久精品| 青青草精品视频| 久久国产剧场电影| 蜜臀久久99精品久久久久久9| 首页亚洲欧美制服丝腿|