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

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

?? tagtreeencoder.java

?? jpeg2000編解碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * CVS identifier: * * $Id: TagTreeEncoder.java,v 1.1.1.1 2002/07/22 09:26:47 grosbois Exp $ * * Class:                   TagTreeEncoder * * Description:             Encoder of tag trees * * * * 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.writer;import jj2000.j2k.util.*;import jj2000.j2k.io.*;import java.io.*;/** * This class implements the tag tree encoder. A tag tree codes a 2D matrix of * integer elements in an efficient way. The encoding procedure 'encode()' * codes information about a value of the matrix, given a threshold. The * procedure encodes the sufficient information to identify whether or not the * value is greater than or equal to the threshold. * * <p>The tag tree saves encoded information to a BitOutputBuffer.</p> * * <p>A particular and useful property of tag trees is that it is possible to * change a value of the matrix, provided both new and old values of the * element are both greater than or equal to the largest threshold which has * yet been supplied to the coding procedure 'encode()'. This property can be * exploited through the 'setValue()' method.</p> * * <p>This class allows saving the state of the tree at any point and * restoring it at a later time, by calling save() and restore().</p> * * <p>A tag tree can also be reused, or restarted, if one of the reset() * methods is called.</p> * * <p>The TagTreeDecoder class implements the tag tree decoder.</p> * * <p>Tag trees that have one dimension, or both, as 0 are allowed for * convenience. Of course no values can be set or coded in such cases.</p> * * @see BitOutputBuffer * * @see jj2000.j2k.codestream.reader.TagTreeDecoder * */public class TagTreeEncoder {    /** The horizontal dimension of the base level */    protected int w;    /** The vertical dimensions of the base level */    protected int h;    /** The number of levels in the tag tree */    protected int lvls;    /** The tag tree values. The first index is the level, starting at level 0     * (leafs). The second index is the element within the level, in     * lexicographical order. */    protected int treeV[][];    /** The tag tree state. The first index is the level, starting at level 0     * (leafs). The second index is the element within the level, in     * lexicographical order. */    protected int treeS[][];    /** The saved tag tree values. The first index is the level, starting at     * level 0 (leafs). The second index is the element within the level, in     * lexicographical order. */    protected int treeVbak[][];    /** The saved tag tree state. The first index is the level, starting at     * level 0 (leafs). The second index is the element within the level, in     * lexicographical order. */    protected int treeSbak[][];    /** The saved state. If true the values and states of the tree have been     * saved since the creation or last reset. */    protected boolean saved;    /**     * Creates a tag tree encoder with 'w' elements along the horizontal     * dimension and 'h' elements along the vertical direction. The total     * number of elements is thus 'vdim' x 'hdim'.     *     * <p>The values of all elements are initialized to Integer.MAX_VALUE.</p>     *     * @param h The number of elements along the horizontal direction.     *     * @param w The number of elements along the vertical direction.     * */    public TagTreeEncoder(int h, int w) {        int k;        // Check arguments        if ( w < 0 || h < 0 ) {            throw new IllegalArgumentException();        }        // Initialize elements        init(w,h);        // Set values to max        for (k = treeV.length-1; k >= 0; k--) {            ArrayUtil.intArraySet(treeV[k],Integer.MAX_VALUE);        }    }    /**     * Creates a tag tree encoder with 'w' elements along the horizontal     * dimension and 'h' elements along the vertical direction. The total     * number of elements is thus 'vdim' x 'hdim'. The values of the leafs in     * the tag tree are initialized to the values of the 'val' array.     *     * <p>The values in the 'val' array are supposed to appear in     * lexicographical order, starting at index 0.</p>     *     * @param h The number of elements along the horizontal direction.     *     * @param w The number of elements along the vertical direction.     *     * @param val The values with which initialize the leafs of the tag tree.     * */    public TagTreeEncoder(int h, int w, int val[]) {        int k;        // Check arguments        if ( w < 0 || h < 0 || val.length < w*h ) {            throw new IllegalArgumentException();        }        // Initialize elements        init(w,h);        // Update leaf values        for (k=w*h-1; k>=0; k--) {            treeV[0][k]=val[k];        }        // Calculate values at other levels        recalcTreeV();    }    /**     * Returns the number of leafs along the horizontal direction.     *     * @return The number of leafs along the horizontal direction.     * */    public final int getWidth() {        return w;    }    /**     * Returns the number of leafs along the vertical direction.     *     * @return The number of leafs along the vertical direction.     * */    public final int getHeight() {        return h;    }    /**     * Initializes the variables of this class, given the dimensions at the     * base level (leaf level). All the state ('treeS' array) and values     * ('treeV' array) are intialized to 0. This method is called by the     * constructors.     *     * @param w The number of elements along the vertical direction.     *     * @param h The number of elements along the horizontal direction.     * */    private void init(int w, int h) {        int i;        // Initialize dimensions        this.w = w;        this.h = h;        // Calculate the number of levels        if (w == 0 || h == 0) {            lvls = 0;        }        else {            lvls = 1;            while (h != 1 || w != 1) { // Loop until we reach root                w = (w+1)>>1;                h = (h+1)>>1;                lvls++;            }        }        // Allocate tree values and states (no need to initialize to 0 since        // it's the default)        treeV = new int[lvls][];        treeS = new int[lvls][];        w = this.w;        h = this.h;        for (i=0; i<lvls; i++) {            treeV[i] = new int[h*w];            treeS[i] = new int[h*w];            w = (w+1)>>1;            h = (h+1)>>1;        }    }    /**     * Recalculates the values of the elements in the tag tree, in levels 1     * and up, based on the values of the leafs (level 0).     * */    private void recalcTreeV() {        int m,n,bi,lw,tm1,tm2,lh,k;        // Loop on all other levels, updating minimum        for (k=0; k<lvls-1; k++) {            // Visit all elements in level            lw = (w+(1<<k)-1)>>k;            lh = (h+(1<<k)-1)>>k;            for (m=((lh>>1)<<1)-2;m>=0;m-=2) { // All quads with 2 lines                for (n=((lw>>1)<<1)-2;n>=0;n-=2) { // All quads with 2 columns                    // Take minimum of 4 elements and put it in higher                     // level                    bi = m*lw+n;                    tm1 = (treeV[k][bi] < treeV[k][bi+1]) ?                        treeV[k][bi] : treeV[k][bi+1];                    tm2 = (treeV[k][bi+lw] < treeV[k][bi+lw+1]) ?                        treeV[k][bi+lw] : treeV[k][bi+lw+1];                    treeV[k+1][(m>>1)*((lw+1)>>1)+(n>>1)] =                        tm1 < tm2 ? tm1 : tm2;                }                // Now we may have quad with 1 column, 2 lines                if (lw%2 != 0) {                    n = ((lw>>1)<<1);                    // Take minimum of 2 elements and put it in higher 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩国产一区二| 国产精品护士白丝一区av| 国产高清成人在线| 国产精品18久久久久久久久| 亚洲一区中文日韩| 欧美日韩一区视频| 亚洲成人免费视频| 欧美精品少妇一区二区三区| 美女一区二区久久| 国产精品毛片a∨一区二区三区| 成人综合在线视频| 亚洲欧美日韩电影| 精品视频一区三区九区| 毛片av一区二区三区| 久久亚洲捆绑美女| 成人ar影院免费观看视频| 一区二区三区波多野结衣在线观看| 久久精品亚洲一区二区三区浴池| 国产一区视频网站| 日韩毛片一二三区| 91麻豆精品国产自产在线 | 欧美视频精品在线| 婷婷久久综合九色国产成人| 精品国产1区二区| 成人h动漫精品一区二区| 一区二区三区免费在线观看| 日韩一区二区三区在线观看| 国产91精品露脸国语对白| 一区二区三区在线影院| 日韩欧美中文字幕一区| av在线不卡电影| 日韩精品成人一区二区在线| 国产偷v国产偷v亚洲高清| 欧美在线影院一区二区| 国产高清不卡二三区| 亚洲综合色在线| 久久色在线视频| 欧美日韩国产美| 成人免费观看视频| 日韩国产在线观看| 亚洲欧洲制服丝袜| 337p粉嫩大胆色噜噜噜噜亚洲| proumb性欧美在线观看| 在线亚洲一区二区| 日韩午夜av一区| 日韩精品专区在线影院观看 | 91色视频在线| 国产一区二区美女诱惑| 亚洲成人福利片| 亚洲人成亚洲人成在线观看图片| 欧美不卡视频一区| 欧美精品色综合| 色拍拍在线精品视频8848| 国产九色sp调教91| 久久精品国产精品亚洲红杏| 夜夜操天天操亚洲| 国产精品成人一区二区三区夜夜夜| 日韩欧美久久久| 欧美日韩你懂得| 色偷偷一区二区三区| 成人性生交大合| 国内成人免费视频| 蜜桃精品视频在线| 国产精品456露脸| 欧美精品一区二区三区在线播放| 成人av电影在线网| 国精产品一区一区三区mba桃花 | 4hu四虎永久在线影院成人| 97aⅴ精品视频一二三区| 国产盗摄一区二区| 狠狠色丁香九九婷婷综合五月| 午夜精品福利视频网站| 亚洲美女在线一区| 日韩久久一区二区| 综合分类小说区另类春色亚洲小说欧美| 久久综合视频网| 精品国产乱码91久久久久久网站| 91精品国产综合久久久蜜臀图片| 欧美综合一区二区| 91在线免费看| 色哟哟在线观看一区二区三区| 99视频精品在线| 91丨九色丨蝌蚪丨老版| 99精品视频在线免费观看| 波多野结衣精品在线| 成人福利视频在线| 91亚洲精品久久久蜜桃| 色婷婷综合久久久中文一区二区| 色一情一乱一乱一91av| 欧美自拍丝袜亚洲| 欧美亚洲国产怡红院影院| 欧美视频在线一区| 555www色欧美视频| 欧美大片一区二区| 久久精品亚洲麻豆av一区二区 | 日韩毛片在线免费观看| 亚洲九九爱视频| 亚洲成人av福利| 麻豆精品一区二区三区| 国产精品综合一区二区| 成人在线视频一区二区| 91麻豆国产福利在线观看| 91久久免费观看| 在线电影欧美成精品| 欧美va亚洲va国产综合| 国产精品视频一二| 亚洲一区二区精品3399| 免费成人在线观看视频| 国产精品99久久久| 色综合久久88色综合天天免费| 日本伦理一区二区| 日韩免费视频一区| 中文欧美字幕免费| 亚洲福利国产精品| 国产在线视频不卡二| 99久久综合国产精品| 欧美日本乱大交xxxxx| www国产亚洲精品久久麻豆| 国产精品白丝在线| 免费久久99精品国产| 成人av午夜电影| 欧美一区永久视频免费观看| 欧美激情一区二区| 日韩电影在线看| av在线综合网| 日韩欧美一二三| 亚洲免费观看高清完整| 久久97超碰国产精品超碰| 91麻豆123| 久久久99精品久久| 亚洲va天堂va国产va久| 成人av免费观看| 久久综合久色欧美综合狠狠| 亚洲最大色网站| 国产91丝袜在线观看| 欧美精品vⅰdeose4hd| 中文字幕一区三区| 韩国午夜理伦三级不卡影院| 欧美日韩精品电影| 亚洲欧洲三级电影| 国产精品 日产精品 欧美精品| 欧美欧美欧美欧美首页| 亚洲欧美日韩国产手机在线| 国产一区二区三区精品欧美日韩一区二区三区 | 久久国产精品色| 欧美在线免费观看亚洲| 中文字幕国产一区二区| 久久se精品一区精品二区| 欧美日韩午夜影院| 亚洲免费观看高清完整版在线观看 | 国产蜜臀97一区二区三区| 日本在线不卡视频一二三区| 日本精品视频一区二区三区| 欧美国产精品中文字幕| 国产一区高清在线| 欧美电影免费观看高清完整版在 | 国产精品亚洲成人| 日韩女优av电影| 亚洲成人资源网| 色婷婷国产精品综合在线观看| 国产精品久久久久影院| 成人福利视频网站| 国产精品久久久久久一区二区三区| 国产麻豆精品在线观看| 精品福利在线导航| 国产在线播放一区三区四| 欧美成人aa大片| 激情国产一区二区| 精品成人免费观看| 国产专区欧美精品| 日本一区二区三区免费乱视频| 国产精品1区2区3区| 国产拍欧美日韩视频二区| 国产精品911| 国产精品福利在线播放| www.亚洲国产| 亚洲欧美色一区| 色综合激情久久| 丝袜亚洲另类欧美| 7777精品伊人久久久大香线蕉完整版| 午夜视黄欧洲亚洲| 777亚洲妇女| 韩国一区二区视频| 国产精品国产三级国产aⅴ原创| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 在线观看亚洲成人| 亚洲福利视频一区二区| 日韩久久久久久| 国产aⅴ综合色| 1024成人网| 欧美日韩成人激情| 久久草av在线| 中文文精品字幕一区二区| 91丨九色丨黑人外教| 亚洲高清不卡在线观看| 欧美成人激情免费网| 成人综合婷婷国产精品久久蜜臀 | 三级不卡在线观看| 久久尤物电影视频在线观看| a级精品国产片在线观看|