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

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

?? tiler.java

?? jpeg2000編解碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * CVS identifier: * * $Id: Tiler.java,v 1.1.1.1 2002/07/22 09:26:50 grosbois Exp $ * * Class:                   Tiler * * Description:             An object to create TiledImgData from *                          ImgData * * * * 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.image;import jj2000.j2k.util.*;import jj2000.j2k.*;/** * This class places an image in the canvas coordinate system, tiles it, if so * specified, and performs the coordinate conversions transparently. The * source must be a 'BlkImgDataSrc' which is not tiled and has a the image * origin at the canvas origin (i.e. it is not "canvased"), or an exception is * thrown by the constructor. A tiled and "canvased" output is given through * the 'BlkImgDataSrc' interface. See the 'ImgData' interface for a * description of the canvas and tiling. * * <p>All tiles produced are rectangular, non-overlapping and their union * covers all the image. However, the tiling may not be uniform, depending on * the nominal tile size, tiling origin, component subsampling and other * factors. Therefore it might not be assumed that all tiles are of the same * width and height.</p> * * <p>The nominal dimension of the tiles is the maximal one, in the reference * grid. All the components of the image have the same number of tiles.</p> * * @see ImgData * @see BlkImgDataSrc * */public class Tiler extends ImgDataAdapter implements BlkImgDataSrc {    /** The source of image data */    private BlkImgDataSrc src = null;    /** Horizontal coordinate of the upper left hand reference grid point.*/    private int x0siz;    /** Vertical coordinate of the upper left hand reference grid point.*/    private int y0siz;    /** The horizontal coordinate of the tiling origin in the canvas system,     * on the reference grid. */    private int xt0siz;    /** The vertical coordinate of the tiling origin in the canvas system, on     * the reference grid. */    private int yt0siz;    /** The nominal width of the tiles, on the reference grid. If 0 then there      * is no tiling in that direction. */    private int xtsiz;    /** The nominal height of the tiles, on the reference grid. If 0 then     * there is no tiling in that direction. */    private int ytsiz;    /** The number of tiles in the horizontal direction. */    private int ntX;    /** The number of tiles in the vertical direction. */    private int ntY;    /** The component width in the current active tile, for each component */    private int compW[] = null;    /** The component height in the current active tile, for each component */    private int compH[] = null;    /** The horizontal coordinates of the upper-left corner of the components     * in the current tile */    private int tcx0[] = null;    /** The vertical coordinates of the upper-left corner of the components in     * the current tile. */    private int tcy0[] = null;    /** The horizontal index of the current tile */    private int tx;    /** The vertical index of the current tile */    private int ty;    /** The width of the current tile, on the reference grid. */    private int tileW;    /** The height of the current tile, on the reference grid. */    private int tileH;    /**     * Constructs a new tiler with the specified 'BlkImgDataSrc' source,     * image origin, tiling origin and nominal tile size.     *     * @param src The 'BlkImgDataSrc' source from where to get the image     * data. It must not be tiled and the image origin must be at '(0,0)' on     * its canvas.     *     * @param ax The horizontal coordinate of the image origin in the canvas     * system, on the reference grid (i.e. the image's top-left corner in the     * reference grid).     *     * @param ay The vertical coordinate of the image origin in the canvas     * system, on the reference grid (i.e. the image's top-left corner in the     * reference grid).     *     * @param px The horizontal tiling origin, in the canvas system, on the     * reference grid. It must satisfy 'px<=ax'.     *     * @param py The vertical tiling origin, in the canvas system, on the     * reference grid. It must satisfy 'py<=ay'.     *     * @param nw The nominal tile width, on the reference grid. If 0 then     * there is no tiling in that direction.     *     * @param nh The nominal tile height, on the reference grid. If 0 then     * there is no tiling in that direction.     *     * @exception IllegalArgumentException If src is tiled or "canvased", or     * if the arguments do not satisfy the specified constraints.     * */    public Tiler(BlkImgDataSrc src,int ax,int ay,int px,int py,int nw,int nh) {        super(src);        // Initialize        this.src = src;        this.x0siz = ax;        this.y0siz = ay;        this.xt0siz = px;        this.yt0siz = py;        this.xtsiz = nw;        this.ytsiz = nh;        // Verify that input is not tiled        if (src.getNumTiles()!=1) {            throw new IllegalArgumentException("Source is tiled");        }        // Verify that source is not "canvased"        if (src.getImgULX()!=0 || src.getImgULY()!=0) {            throw new IllegalArgumentException("Source is \"canvased\"");        }        // Verify that arguments satisfy trivial requirements        if (x0siz<0 || y0siz<0 || xt0siz<0 || yt0siz<0 || xtsiz<0 || ytsiz<0             || xt0siz>x0siz || yt0siz>y0siz) {            throw new IllegalArgumentException("Invalid image origin, "+                                               "tiling origin or nominal "+                                               "tile size");        }        // If no tiling has been specified, creates a unique tile with maximum        // dimension.        if (xtsiz==0) xtsiz = x0siz+src.getImgWidth()-xt0siz;        if (ytsiz==0) ytsiz = y0siz+src.getImgHeight()-yt0siz;        // Automatically adjusts xt0siz,yt0siz so that tile (0,0) always        // overlaps with the image.        if (x0siz-xt0siz>=xtsiz) {            xt0siz += ((x0siz-xt0siz)/xtsiz)*xtsiz;        }        if (y0siz-yt0siz>=ytsiz) {            yt0siz += ((y0siz-yt0siz)/ytsiz)*ytsiz;        }        if (x0siz-xt0siz>=xtsiz || y0siz-yt0siz>=ytsiz) {            FacilityManager.getMsgLogger().                printmsg(MsgLogger.INFO,"Automatically adjusted tiling "+                         "origin to equivalent one ("+xt0siz+","+                         yt0siz+") so that "+                         "first tile overlaps the image");        }        // Calculate the number of tiles        ntX = (int)Math.ceil((x0siz+src.getImgWidth())/(double)xtsiz);        ntY = (int)Math.ceil((y0siz+src.getImgHeight())/(double)ytsiz);    }    /**     * Returns the overall width of the current tile in pixels. This is the     * tile's width without accounting for any component subsampling.     *     * @return The total current tile width in pixels.     * */    public final int getTileWidth() {        return tileW;    }    /**     * Returns the overall height of the current tile in pixels. This is the     * tile's width without accounting for any component subsampling.     *     * @return The total current tile height in pixels.     * */    public final int getTileHeight() {        return tileH;    }    /**     * Returns the width in pixels of the specified tile-component.     *     * @param t Tile index     *     * @param c The index of the component, from 0 to N-1.     *     * @return The width of specified tile-component.     * */    public final int getTileCompWidth(int t,int c) {        if(t!=getTileIdx()) {            throw new Error("Asking the width of a tile-component which is "+                            "not in the current tile (call setTile() or "+                            "nextTile() methods before).");        }        return compW[c];    }    /**     * Returns the height in pixels of the specified tile-component.     *     * @param t The tile index.     *     * @param c The index of the component, from 0 to N-1.     *     * @return The height of specified tile-component.     * */    public final int getTileCompHeight(int t,int c) {        if(t!=getTileIdx()) {            throw new Error("Asking the width of a tile-component which is "+                            "not in the current tile (call setTile() or "+                            "nextTile() methods before).");        }        return compH[c];    }    /**     * Returns the position of the fixed point in the specified     * component. This is the position of the least significant integral     * (i.e. non-fractional) bit, which is equivalent to the number of     * fractional bits. For instance, for fixed-point values with 2 fractional     * bits, 2 is returned. For floating-point data this value does not apply     * and 0 should be returned. Position 0 is the position of the least     * significant bit in the data.     *     * @param c The index of the component.     *     * @return The position of the fixed-point, which is the same as the     * number of fractional bits. For floating-point data 0 is returned.     * */    public int getFixedPoint(int c) {        return src.getFixedPoint(c);    }    /**     * 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 reference to the internal data, if any, instead of as a     * copy, therefore the returned data should not be modified.     *     * <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' and     * 'scanw' of the returned data can be arbitrary. See the 'DataBlk'     * class.</p>     *     * <p>This method, in general, is more efficient than the 'getCompData()'     * method since it may not copy the data. However if the array of returned     * data is to be modified by the caller then the other method is probably     * preferable.</p>     *     * <p>If the data array in <tt>blk</tt> is <tt>null</tt>, then a new one     * is created if necessary. The implementation of this interface may     * choose to return the same array or a new one, depending on what is more     * efficient. Therefore, the data array in <tt>blk</tt> prior to the     * method call should not be considered to contain the returned data, a

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产综合久久久久久久| 成人午夜视频在线观看| 欧洲亚洲国产日韩| 一区二区在线免费观看| 色婷婷狠狠综合| 午夜精品久久久久久久久久| 欧美乱妇20p| 韩国午夜理伦三级不卡影院| 久久亚洲捆绑美女| 高清久久久久久| 亚洲女人小视频在线观看| 在线精品视频一区二区| 青青草97国产精品免费观看无弹窗版| 日韩欧美一级片| 成人午夜免费电影| 亚洲一级不卡视频| 91精品国产欧美一区二区| 韩国视频一区二区| **性色生活片久久毛片| 欧美肥妇bbw| 国产一区在线不卡| 一区二区三区在线视频播放| 欧美一区二区三区小说| 国产99一区视频免费| 亚洲情趣在线观看| 日韩欧美在线一区二区三区| 福利电影一区二区| 亚洲6080在线| 国产精品色在线观看| 欧美色男人天堂| 国产在线一区观看| 亚洲电影激情视频网站| 久久免费视频一区| 欧美日韩在线综合| 国产一区二区免费视频| 亚洲永久精品大片| 国产日韩三级在线| 欧美精品一二三区| 不卡视频免费播放| 蜜桃在线一区二区三区| 亚洲欧洲精品成人久久奇米网| 欧美理论电影在线| 99久久精品国产一区| 免费不卡在线视频| 亚洲精品你懂的| 久久毛片高清国产| 欧美精品日韩一区| 91视频xxxx| 国产精品亚洲成人| 午夜精品aaa| 亚洲精品成人在线| 国产色产综合产在线视频| 91精品国产综合久久久久久久| 99国产精品一区| 国产美女主播视频一区| 日本亚洲最大的色成网站www| 亚洲视频香蕉人妖| 久久久精品国产99久久精品芒果 | 国产精品成人午夜| 亚洲精品一区二区三区四区高清| 欧美亚洲图片小说| 成人av在线一区二区三区| 国模冰冰炮一区二区| 蜜臀av一区二区在线免费观看| 一区二区三区精品在线观看| 国产精品福利影院| 国产亚洲精品免费| 亚洲精品一区二区三区福利| 日韩视频123| 337p亚洲精品色噜噜| 欧美三级在线看| 91福利精品第一导航| 91丨porny丨国产| 成人毛片视频在线观看| 国产河南妇女毛片精品久久久 | 久久精品72免费观看| 日韩精品电影在线| 日韩主播视频在线| 视频在线在亚洲| 日韩国产欧美在线视频| 日本特黄久久久高潮| 日韩电影在线免费| 蜜桃一区二区三区在线观看| 免费看日韩a级影片| 久久er99精品| 国产美女在线观看一区| 国产成人亚洲精品狼色在线| 国产成a人亚洲| 成人黄色一级视频| 色婷婷综合激情| 欧美优质美女网站| 这里是久久伊人| 欧美精品一区二区三区在线播放| 久久免费看少妇高潮| 欧美激情综合网| 亚洲免费看黄网站| 午夜亚洲福利老司机| 美女视频黄a大片欧美| 国产精品中文字幕日韩精品| 粗大黑人巨茎大战欧美成人| 99久久精品免费看| 欧美日韩精品高清| 欧美不卡123| 国产精品久久久久影院老司| 一区二区三区国产豹纹内裤在线 | 欧美视频完全免费看| 制服丝袜成人动漫| 精品久久99ma| 国产精品传媒在线| 日本不卡一二三| 成人在线视频首页| 欧美午夜电影一区| 久久综合资源网| 亚洲乱码国产乱码精品精的特点| 亚洲成人一区在线| 国产精品2024| 欧美影片第一页| 久久久久久9999| 亚洲色图都市小说| 精品一区二区免费| 色综合久久66| 欧美精品一区二区三区久久久 | 九九九精品视频| 色综合久久九月婷婷色综合| 欧美一区二区网站| 中文字幕在线不卡一区| 天天色综合成人网| www.日韩大片| 日韩一区二区免费视频| 日韩美女视频一区| 久久99久久久久久久久久久| 91麻豆精品一区二区三区| 日韩欧美中文字幕精品| 亚洲综合久久av| 国产成人精品免费| 欧美一级视频精品观看| 亚洲欧美另类小说视频| 国内久久精品视频| 欧美日韩成人高清| 亚洲六月丁香色婷婷综合久久| 国产一二精品视频| 555www色欧美视频| 亚洲一区二区综合| 99久久综合狠狠综合久久| 日韩精品中文字幕一区二区三区| 亚洲另类在线一区| 成人午夜碰碰视频| 国产色一区二区| 久久疯狂做爰流白浆xx| 国产精品国产三级国产有无不卡 | 男女性色大片免费观看一区二区 | 欧美日韩一区二区三区在线看 | 亚洲一区在线观看视频| 成人av网址在线观看| 久久婷婷综合激情| 麻豆91精品视频| 91精品国产欧美一区二区18| 亚洲国产sm捆绑调教视频 | av资源网一区| 国产亚洲欧美日韩俺去了| 久久国产麻豆精品| 日韩一区二区三区免费看| 亚洲午夜av在线| 欧美综合欧美视频| 亚洲精品你懂的| 91久久国产综合久久| 亚洲精品va在线观看| 色噜噜狠狠成人中文综合| 亚洲丝袜制服诱惑| 97se狠狠狠综合亚洲狠狠| 国产精品剧情在线亚洲| jlzzjlzz欧美大全| 1区2区3区欧美| 91蝌蚪porny| 一区二区三区**美女毛片| 91国偷自产一区二区使用方法| 亚洲精品大片www| 色天使色偷偷av一区二区| 亚洲国产综合91精品麻豆| 欧美亚洲禁片免费| 日韩国产欧美在线视频| 日韩欧美精品在线| 国产乱码一区二区三区| 中文字幕在线不卡国产视频| 色成人在线视频| 亚洲福利一区二区| 日韩你懂的电影在线观看| 国内外成人在线视频| 国产欧美综合在线观看第十页| 成人av综合在线| 亚洲国产精品久久久久秋霞影院| 在线不卡a资源高清| 久久狠狠亚洲综合| 国产欧美日韩综合精品一区二区| 不卡一区中文字幕| 五月婷婷久久丁香| 久久久99久久精品欧美| 9i看片成人免费高清| 亚洲123区在线观看| 久久一区二区视频|