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

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

?? imgreader.java

?? jpeg2000編解碼
?? JAVA
字號:
/** * CVS identifier: * * $Id: ImgReader.java,v 1.2 2002/07/23 12:23:28 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> * * <p>This class sets the image origin to (0,0). All default implementations * of the methods assume this.</p> * * <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.</p> * */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 getTileWidth() {        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 getTileHeight() {        return h;    }    /** Returns the nominal tiles width */    public int getNomTileWidth() {        return w;    }    /** Returns the nominal tiles height */    public int getNomTileHeight() {        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 jj2000.j2k.image.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 jj2000.j2k.image.ImgData     * */    public int getCompSubsY(int c) {        return 1;    }    /**     * Returns the width in pixels of the specified tile-component. This     * default implementation assumes no tiling and no component subsampling     * (i.e., all components, or components, have the same dimensions in     * pixels).     *     * @param t Tile index     *     * @param c The index of the component, from 0 to C-1.     *     * @return The width in pixels of component <tt>c</tt> in tile<tt>t</tt>.     * */    public int getTileCompWidth(int t,int c) {        if(t!=0) {            throw new Error("Asking a tile-component width for a tile index"+                            " greater than 0 whereas there is only one tile");        }        return w;    }    /**     * Returns the height in pixels of the specified tile-component. This     * default implementation assumes no tiling and no component subsampling     * (i.e., all components, or components, have the same dimensions in     * pixels).     *     * @param t The tile index     *     * @param c The index of the component, from 0 to C-1.     *     * @return The height in pixels of component <tt>c</tt> in tile     * <tt>t</tt>.     * */    public int getTileCompHeight(int t,int c) {        if(t!=0) {            throw new Error("Asking a tile-component width for a tile index"+                            " greater than 0 whereas there is only one tile");        }        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 coordinate of the upper-left corner of the     * specified component in the current tile.     *     * @param c The component index.     * */    public int getCompULX(int c) {        return 0;    }    /**     * Returns the vertical coordinate of the upper-left corner of the     * specified component in the current tile.     *     * @param c The component index.     * */    public int getCompULY(int c) {        return 0;    }    /** Returns the horizontal tile partition offset in the reference grid */    public int getTilePartULX() {        return 0;    }    /** Returns the vertical tile partition offset in the reference grid */    public int getTilePartULY() {        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一区二区三区免费野_久草精品视频
免费看日韩精品| 亚洲男人天堂av| 麻豆成人综合网| 日韩视频在线观看一区二区| 日本午夜一区二区| 日韩一区二区免费在线电影| 久久精品国产一区二区| 精品伦理精品一区| 成人黄色软件下载| 亚洲一区二区三区美女| 欧美男人的天堂一二区| 精品亚洲欧美一区| 国产精品成人一区二区三区夜夜夜| 成人福利视频在线| 午夜私人影院久久久久| 欧美变态口味重另类| 不卡电影免费在线播放一区| 亚洲综合激情另类小说区| 日韩西西人体444www| 成人中文字幕合集| 五月天一区二区三区| 久久久久九九视频| 欧美体内she精视频| 激情欧美一区二区| 一区二区三区四区五区视频在线观看| 欧美精品丝袜中出| www.综合网.com| 三级在线观看一区二区| 欧美极品美女视频| 欧美日韩精品电影| 不卡视频一二三| 青青草91视频| 亚洲精品成a人| 久久婷婷一区二区三区| 色www精品视频在线观看| 精品一区二区久久久| 亚洲激情五月婷婷| 久久久久久亚洲综合| 欧美婷婷六月丁香综合色| 国产乱人伦偷精品视频免下载| 日韩理论在线观看| 久久九九全国免费| 91精品国产综合久久久久久久久久| 成人午夜伦理影院| 日本欧美韩国一区三区| 亚洲免费观看高清完整| 久久精品夜色噜噜亚洲a∨| 欧美日韩国产高清一区二区| 成人黄色免费短视频| 极品瑜伽女神91| 手机精品视频在线观看| 亚洲精品中文在线| 国产精品久久毛片| 久久尤物电影视频在线观看| 欧美一区日本一区韩国一区| 色爱区综合激月婷婷| 精品视频一区二区不卡| 国产成人欧美日韩在线电影| 免费高清视频精品| 五月天中文字幕一区二区| 亚洲人成在线观看一区二区| 国产蜜臀97一区二区三区| 精品国免费一区二区三区| 欧美一区二区在线视频| 欧美在线免费观看视频| 色欧美日韩亚洲| 93久久精品日日躁夜夜躁欧美| 风间由美一区二区三区在线观看 | 国产精品一二二区| 裸体歌舞表演一区二区| 免费在线观看视频一区| 亚洲一区免费视频| 亚洲一区在线视频| 一区二区三区欧美日韩| 亚洲黄色小说网站| 一区二区三区成人在线视频| 亚洲欧美日韩久久精品| 一区二区三区高清在线| 亚洲一区二区三区四区不卡| 亚洲一区二区视频在线| 亚洲国产日韩一级| 日欧美一区二区| 日本aⅴ精品一区二区三区| 日韩福利电影在线观看| 麻豆一区二区三区| 国产一区二区精品久久99| 国产精品一区二区在线观看网站| 国产在线精品一区二区夜色| 国产一区二区成人久久免费影院| 国产精品亚洲а∨天堂免在线| 国产成人av电影在线| 成人久久久精品乱码一区二区三区| 成人黄色小视频| 91激情五月电影| 欧美电影一区二区| 精品成人私密视频| 欧美高清在线精品一区| 亚洲精品水蜜桃| 午夜视频在线观看一区二区| 久久狠狠亚洲综合| 成年人国产精品| 欧美精品123区| 久久久久久久性| 亚洲免费观看高清完整版在线观看 | 欧美aa在线视频| 国产一区二区日韩精品| 99久久婷婷国产综合精品电影| 91美女在线视频| 日韩一本二本av| 成人欧美一区二区三区小说| 天天亚洲美女在线视频| 国产传媒久久文化传媒| 91久久精品国产91性色tv| 欧美一区三区四区| 中文字幕一区免费在线观看 | 视频在线观看一区| 国产成人在线看| 欧美日韩国产精品成人| 国产喂奶挤奶一区二区三区 | 免费在线观看不卡| 成人福利视频网站| 欧美一区二区私人影院日本| 国产精品嫩草影院av蜜臀| 首页国产丝袜综合| 99久久er热在这里只有精品66| 欧美嫩在线观看| 亚洲女与黑人做爰| 国产最新精品免费| 欧美麻豆精品久久久久久| 中文字幕欧美日本乱码一线二线| 午夜av一区二区三区| 成人黄色777网| 精品国产乱码久久久久久夜甘婷婷 | 国产精品中文字幕欧美| 欧美视频中文字幕| 国产精品久久综合| 国产在线精品一区二区夜色 | 日韩中文字幕1| 91亚洲男人天堂| 国产日本欧洲亚洲| 免费观看在线综合| 欧美亚洲国产怡红院影院| 国产欧美精品国产国产专区| 日本大胆欧美人术艺术动态| 欧美伊人精品成人久久综合97 | 9i看片成人免费高清| 26uuu精品一区二区三区四区在线| 亚洲图片欧美色图| 色综合天天狠狠| 国产精品欧美一区喷水| 国产一区二区三区久久久| 日韩午夜在线观看| 日本一道高清亚洲日美韩| 欧美性猛交xxxx乱大交退制版 | 免费高清在线一区| 717成人午夜免费福利电影| 一区二区三区四区乱视频| 色综合天天综合色综合av | 中文字幕一区二区三区不卡在线| 精品一区二区免费在线观看| 日韩午夜激情视频| 理论电影国产精品| 日韩欧美另类在线| 激情五月激情综合网| 精品动漫一区二区三区在线观看| 美腿丝袜一区二区三区| 日韩精品一区二区在线观看| 久久精品理论片| 精品国产乱码久久久久久老虎 | 国产精品69毛片高清亚洲| 欧美大片在线观看| 久久超碰97人人做人人爱| 精品国产乱子伦一区| 国模无码大尺度一区二区三区| 久久综合色综合88| 国产精品一级片在线观看| 欧美国产一区视频在线观看| 成人免费视频app| 亚洲伦理在线精品| 91福利在线播放| 丝袜亚洲另类欧美综合| 日韩三级.com| 风间由美一区二区av101| 亚洲欧洲日韩女同| 在线看一区二区| 欧美aaaaaa午夜精品| 久久久久久免费网| 色综合天天综合| 视频在线观看91| 久久久国产精品不卡| 99麻豆久久久国产精品免费| 一区二区欧美视频| 欧美一区二区三区免费在线看| 久久se精品一区精品二区| 国产精品天天摸av网| 欧美视频精品在线| 精品一区二区免费视频| 日韩一区欧美小说| 日韩一区二区在线看片| 成人毛片视频在线观看|