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

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

?? imgreader.java

?? jpeg2000算法實現
?? JAVA
字號:
/* * CVS identifier: * * $Id: ImgReader.java,v 1.8 2000/11/27 14:57:29 grosbois Exp $ * * Class:                   ImgReader * * Description:             Generic interface for image readers (from *                          file or other resource) * * * * 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.input;import jj2000.j2k.image.*;import jj2000.j2k.*;import java.io.*;/** * This is the generic interface to be implemented by all image file (or other * resource) readers for different image file formats. * * <P>An ImgReader behaves as an ImgData object. Whenever image data is * requested through the getInternCompData() or getCompData() methods, the * image data will be read (if it is not buffered) and returned. Implementing * classes should not buffer large amounts of data, so as to reduce memory * usage. * * <P>This class sets the image origin to (0,0). All default implementations * of the methods assume this. * * <P>This class provides default implementations of many methods. These * default implementations assume that there is no tiling (i.e., the only tile * is the entire image), that the image origin is (0,0) in the canvas system * and that there is no component subsampling (all components are the same * size), but they can be overloaded by the implementating class if need be. * */public abstract class ImgReader implements BlkImgDataSrc {    /** The width of the image */    protected int w;    /** The height of the image */    protected int h;    /** The number of components in the image */    protected int nc;    /**     * Closes the underlying file or network connection from where the     * image data is being read.     *     * @exception IOException If an I/O error occurs.     */    public abstract void close() throws IOException;    /**     * Returns the width of the current tile in pixels, assuming there is     * no-tiling. Since no-tiling is assumed this is the same as the width of     * the image. The value of <tt>w</tt> is returned.     *     * @return The total image width in pixels.     * */    public int getWidth() {        return w;    }    /**     * Returns the overall height of the current tile in pixels, assuming     * there is no-tiling. Since no-tiling is assumed this is the same as the     * width of the image. The value of <tt>h</tt> is returned.     *     * @return The total image height in pixels.  */    public int getHeight() {        return h;    }    /**     * Returns the overall width of the image in pixels. This is the image's     * width without accounting for any component subsampling or tiling. The     * value of <tt>w</tt> is returned.     *     * @return The total image's width in pixels.     * */    public int getImgWidth() {        return w;    }    /**     * Returns the overall height of the image in pixels. This is the image's     * height without accounting for any component subsampling or tiling. The     * value of <tt>h</tt> is returned.     *     * @return The total image's height in pixels.     * */    public int getImgHeight() {        return h;    }    /**     * Returns the number of components in the image. The value of <tt>nc</tt>     * is returned.     *     * @return The number of components in the image.     * */    public int getNumComps() {        return nc;    }    /**     * Returns the component subsampling factor in the horizontal direction,     * for the specified component. This is, approximately, the ratio of     * dimensions between the reference grid and the component itself, see the     * 'ImgData' interface desription for details.     *     * @param c The index of the component (between 0 and C-1)     *     * @return The horizontal subsampling factor of component 'c'     *     * @see ImgData     * */    public int getCompSubsX(int c) {        return 1;    }    /**     * Returns the component subsampling factor in the vertical direction, for     * the specified component. This is, approximately, the ratio of     * dimensions between the reference grid and the component itself, see the     * 'ImgData' interface desription for details.     *     * @param c The index of the component (between 0 and C-1)     *     * @return The vertical subsampling factor of component 'c'     *     * @see ImgData     * */    public int getCompSubsY(int c) {        return 1;    }    /**     * Returns the width in pixels of the specified component in the current     * tile. This default implementation assumes no tiling and no component     * subsampling (i.e., all components, or components, have the same     * dimensions in pixels).     *     * @param c The index of the component, from 0 to C-1.     *     * @return The width in pixels of component <tt>n</tt> in the current     * tile.     * */    public int getCompWidth(int n) {        return w;    }    /**     * Returns the height in pixels of the specified component in the current     * tile. This default implementation assumes no tiling and no component     * subsampling (i.e., all components, or components, have the same     * dimensions in pixels).     *     * @param c The index of the component, from 0 to C-1.     *     * @return The height in pixels of component <tt>c</tt> in the current     * tile.     * */    public int getCompHeight(int c) {        return h;    }    /**     * Returns the width in pixels of the specified component in the overall     * image. This default implementation assumes no component, or component,     * subsampling (i.e. all components have the same dimensions in pixels).     *     * @param c The index of the component, from 0 to C-1.     *     * @return The width in pixels of component <tt>c</tt> in the overall     * image.     * */    public int getCompImgWidth(int c) {        return w;    }    /**     * Returns the height in pixels of the specified component in the overall     * image. This default implementation assumes no component, or component,     * subsampling (i.e. all components have the same dimensions in pixels).     *     * @param c The index of the component, from 0 to C-1.     *     * @return The height in pixels of component <tt>c</tt> in the overall     * image.     * */    public int getCompImgHeight(int c) {        return h;    }    /**     * Changes the current tile, given the new coordinates. An     * IllegalArgumentException is thrown if the coordinates do not correspond     * to a valid tile. This default implementation assumes no tiling so the     * only valid arguments are x=0, y=0.     *     * @param x The horizontal coordinate of the tile.     *     * @param y The vertical coordinate of the new tile.     * */    public void setTile(int x, int y) {        if (x!=0 || y != 0) {            throw new IllegalArgumentException();        }    }    /**     * Advances to the next tile, in standard scan-line order (by rows then     * columns). A NoNextElementException is thrown if the current tile is the     * last one (i.e. there is no next tile). This default implementation     * assumes no tiling, so NoNextElementException() is always thrown.     * */    public void nextTile() {        throw new NoNextElementException();    }    /**     * Returns the coordinates of the current tile. This default     * implementation assumes no-tiling, so (0,0) is returned.     *     * @param co If not null this object is used to return the information. If     * null a new one is created and returned.     *     * @return The current tile's coordinates.     * */    public Coord getTile(Coord co) {        if (co != null) {            co.x = 0;            co.y = 0;            return co;        }        else {            return new Coord(0,0);        }    }    /**     * Returns the index of the current tile, relative to a standard scan-line     * order. This default implementations assumes no tiling, so 0 is always     * returned.     *     * @return The current tile's index (starts at 0).     * */    public int getTileIdx() {        return 0;    }    /**     * Returns the horizontal and vertical offset of the upper-left corner of     * the current tile, in the specified component, relative to the canvas     * origin, in the component coordinates (not in the reference grid     * coordinates). These are the coordinates of the current tile's (not     * active tile) upper-left corner relative to the canvas.     *     * <P>This default implementation assumes no tiling and that the     * partitioning origin is the canvas origin, so (0,0) is always returned.     *     * @param co If not null the object is used to return the values, if null     * a new one is created and returned.     *     * @param c The index of the component (between 0 and C-1)     *     * @return The horizontal and vertical offsets of the upper-left corner of     * the current tile, for the specified component, relative to the canvas     * origin, in the component coordinates.     * */    public Coord getTileOff(Coord co, int c) {        if (co != null) {            co.x = 0;            co.y = 0;            return co;        }        else {            return new Coord(0,0);        }    }    /**     * Returns the horizontal coordinate of the upper-left corner of the     * active tile, with respect to the canvas origin, in the component     * coordinates, for the specified component.     *     * @param c The index of the component (between 0 and C-1)     *     * @return The horizontal coordinate of the upper-left corner of the     * active tile, with respect to the canvas origin, for component 'c', in     * the component coordinates.     * */    public int getULX(int c) {        return 0;    }    /**     * Returns the vertical coordinate of the upper-left corner of the active     * tile, with respect to the canvas origin, in the component coordinates,     * for the specified component.     *     * @param c The index of the component (between 0 and C-1)     *     * @return The vertical coordinate of the upper-left corner of the active     * tile, with respect to the canvas origin, for component 'c', in the     * component coordinates.     * */    public int getULY(int c) {        return 0;    }    /**     * Returns the horizontal coordinate of the image origin, the top-left     * corner, in the canvas system, on the reference grid.     *     * @return The horizontal coordinate of the image origin in the canvas     * system, on the reference grid.     * */    public int getImgULX() {        return 0;    }    /**     * Returns the vertical coordinate of the image origin, the top-left     * corner, in the canvas system, on the reference grid.     *     * @return The vertical coordinate of the image origin in the canvas     * system, on the reference grid.     * */    public int getImgULY() {        return 0;    }    /**     * Returns the number of tiles in the horizontal and vertical     * directions. This default implementation assumes no tiling, so (1,1) is     * always returned.     *     * @param co If not null this object is used to return the information. If     * null a new one is created and returned.     *     * @return The number of tiles in the horizontal (Coord.x) and vertical     * (Coord.y) directions.     * */    public Coord getNumTiles(Coord co) {        if (co != null) {            co.x = 1;            co.y = 1;            return co;        }        else {            return new Coord(1,1);        }    }    /**     * Returns the total number of tiles in the image. This default     * implementation assumes no tiling, so 1 is always returned.     *     * @return The total number of tiles in the image.     * */    public int getNumTiles() {        return 1;    }    /**     * Returns true if the data read was originally signed in the specified     * component, false if not.     *     * @param c The index of the component, from 0 to C-1.     *     * @return true if the data was originally signed, false if not.     * */    public abstract boolean isOrigSigned(int c);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美丰满少妇xxxbbb| 成人欧美一区二区三区黑人麻豆| 在线视频你懂得一区| 久久成人免费日本黄色| 五月婷婷综合在线| 亚洲免费视频成人| 国产精品国产精品国产专区不蜜 | 欧美精品一区二区三区四区| 欧美亚洲精品一区| 色婷婷一区二区| 91麻豆国产香蕉久久精品| 国产福利91精品一区二区三区| 视频一区在线播放| 无码av免费一区二区三区试看| 一区二区三区**美女毛片| 麻豆精品在线看| 亚瑟在线精品视频| 亚洲小说春色综合另类电影| 中文字幕五月欧美| 亚洲欧美在线视频观看| 国产精品国模大尺度视频| 国产人妖乱国产精品人妖| 精品少妇一区二区三区日产乱码 | 不卡的av在线播放| 国产a精品视频| 成人激情免费电影网址| 国产成人av一区| 大尺度一区二区| 经典三级视频一区| 国内一区二区视频| 久久精品国产网站| 国产乱理伦片在线观看夜一区 | 成人毛片视频在线观看| 成人综合婷婷国产精品久久 | 欧美电视剧在线观看完整版| 日韩精品一区二区三区蜜臀| 欧美精品一区二区三区在线 | 欧美精选一区二区| 91精品一区二区三区久久久久久 | 欧美日韩极品在线观看一区| 在线不卡中文字幕播放| 欧美电视剧在线看免费| 国产视频一区在线观看| 亚洲天天做日日做天天谢日日欢| 亚洲激情图片一区| 亚洲一区二区欧美日韩| 日韩激情视频在线观看| 精品一区二区三区免费视频| 国产精品主播直播| 91久久一区二区| 91精品国产高清一区二区三区蜜臀| 在线成人av网站| 久久精品视频网| 亚洲乱码国产乱码精品精98午夜| 午夜精品福利在线| 三级欧美韩日大片在线看| 天堂在线一区二区| 国产精品乡下勾搭老头1| 色综合婷婷久久| 欧美久久久一区| 国产欧美日韩在线视频| 一区二区三区精品久久久| 日韩av电影天堂| 波多野结衣中文字幕一区 | 日韩亚洲欧美高清| 国产精品久久久久婷婷| 亚洲成av人片| 玖玖九九国产精品| 国产乱妇无码大片在线观看| 91国产丝袜在线播放| 欧美一级夜夜爽| 国产日韩精品一区| 午夜视频在线观看一区二区| 国产成人无遮挡在线视频| 欧美视频日韩视频在线观看| 久久久高清一区二区三区| 一二三四区精品视频| 国产成人自拍高清视频在线免费播放| 91麻豆福利精品推荐| 精品国产电影一区二区| 亚洲专区一二三| 高清日韩电视剧大全免费| 一本大道久久a久久精品综合| 欧美一区二区在线不卡| 亚洲欧美在线另类| 国产伦精一区二区三区| 欧美性受xxxx| 国产精品电影一区二区| 紧缚奴在线一区二区三区| 欧美日韩高清在线| 中文字幕中文字幕一区| 国产麻豆一精品一av一免费| 欧美日韩激情一区| 欧美国产一区二区| 国产制服丝袜一区| 7777精品伊人久久久大香线蕉经典版下载 | 日本系列欧美系列| 色网站国产精品| 久久亚洲精华国产精华液| 五月天一区二区| 一本色道**综合亚洲精品蜜桃冫| 国产亚洲一区字幕| 久久er精品视频| 欧美一区二区在线观看| 亚洲精品日日夜夜| 成人av在线网| 国产日韩欧美亚洲| 国产精品一品二品| 2020国产精品久久精品美国| 色999日韩国产欧美一区二区| 国产午夜精品一区二区三区视频 | 国产一区免费电影| 91精品国产一区二区三区蜜臀| 综合精品久久久| 成人av资源下载| 国产精品久久久久桃色tv| 福利视频网站一区二区三区| 久久午夜羞羞影院免费观看| 日韩av高清在线观看| 欧美一区二区三区精品| 日韩精品欧美精品| 在线电影院国产精品| 三级在线观看一区二区| 91视频www| 亚洲免费观看高清在线观看| 成人av小说网| 亚洲人午夜精品天堂一二香蕉| 成人app网站| 亚洲精品一二三| 欧美在线免费观看亚洲| 亚洲在线免费播放| 欧美日韩久久不卡| 另类小说一区二区三区| 这里是久久伊人| 亚洲一二三区在线观看| 88在线观看91蜜桃国自产| 蜜臀a∨国产成人精品| 欧美成人国产一区二区| 国产乱码精品一区二区三区忘忧草| 国产网红主播福利一区二区| 国产91精品露脸国语对白| 国产精品网站在线播放| 波多野洁衣一区| 亚洲综合一区在线| 69久久99精品久久久久婷婷| 久久99久久99小草精品免视看| 精品国产凹凸成av人导航| 国产福利一区二区三区视频在线 | 国产91露脸合集magnet| 亚洲午夜精品在线| 国产亚洲欧美日韩日本| 91国产免费观看| 国产精品一卡二卡在线观看| 亚洲免费观看视频| 26uuu亚洲综合色欧美| 91在线国产福利| 麻豆精品视频在线观看免费| 亚洲日本va在线观看| 日韩一级黄色片| 色综合色狠狠综合色| 久久99精品国产91久久来源| 亚洲乱码一区二区三区在线观看| 日韩精品一区二区三区中文不卡 | 欧美一区二区三区免费| 99视频一区二区三区| 精品午夜一区二区三区在线观看| 亚洲精品国产高清久久伦理二区| 精品福利在线导航| 在线观看一区二区视频| 成人午夜视频网站| 理论电影国产精品| 一区二区三区四区精品在线视频| www成人在线观看| 3d成人动漫网站| 色视频一区二区| 国产91精品一区二区| 免费看日韩精品| 一区二区三区中文字幕电影| 中文字幕久久午夜不卡| 欧美精品一区二区在线播放| 欧美日韩精品电影| 91久久精品国产91性色tv| 丰满放荡岳乱妇91ww| 精品在线免费视频| 日韩电影在线观看一区| 亚洲免费观看视频| 亚洲欧美自拍偷拍| 中文无字幕一区二区三区| 精品日韩99亚洲| 欧美一区二区大片| 91精品国产综合久久小美女| 欧美亚洲一区二区三区四区| 91视频在线看| 91无套直看片红桃| 成人黄色国产精品网站大全在线免费观看| 久久99精品国产| 国内外成人在线| 国内成人精品2018免费看| 极品美女销魂一区二区三区免费| 日本成人在线电影网|