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

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

?? imgreaderppm.java

?? jpeg2000算法實現
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * * Class:                   ImgWriterPPM * * Description:             Image writer for unsigned 8 bit data in *                          PPM files. * * * * 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.io.*;import jj2000.j2k.*;import java.io.*;/** * This class implements the ImgData interface for reading 8 bits unsigned * data from a binary PPM file * * <P> After being read the coefficients are level shifted by subtracting * 2^(nominal bit range - 1) * * <P>The transfer type (see ImgData) of this class is TYPE_INT. * * <P>This class is <i>buffered</i>: the 3 input components(R,G,B) are read * when the first one (R) is asked. The 2 others are stored until they are * needed. * * <P>NOTE: This class is not thread safe, for reasons of internal buffering. * * @see ImgData * */public class ImgReaderPPM extends ImgReader {    /** DC offset value used when reading image */    public static int DC_OFFSET = 128;    /** Where to read the data from */    private RandomAccessFile in;        /** The offset of the raw pixel data in the PPM file */    private int offset;    /** The number of bits that determine the nominal dynamic range */    private int rb;    /** Buffer for the 3 components of each pixel(in the current block) */    private int[][] barr = new int[3][];    /** Data block used only to store coordinates of the buffered blocks */    private DataBlkInt dbi = new DataBlkInt();    /** The line buffer. */    // This makes the class not thread safe (but it is not the only one making    // it so)    private byte buf[];    /** Temporary DataBlkInt object (needed when encoder uses floating-point        filters). This avoid allocating new DataBlk at each time */    private DataBlkInt intBlk;    /**     * Creates a new PPM file reader from the specified file.     *     * @param file The input file.     *     * @param IOException If an error occurs while opening the file.     * */    public ImgReaderPPM(File file) throws IOException {        this(new RandomAccessFile(file,"r"));    }    /**     * Creates a new PPM file reader from the specified file name.     *     * @param fname The input file name.     *     * @param IOException If an error occurs while opening the file.     * */    public ImgReaderPPM(String fname) throws IOException {        this(new RandomAccessFile(fname,"r"));    }    /**     * Creates a new PPM file reader from the specified RandomAccessFile     * object. The file header is read to acquire the image size.     *     * @param in From where to read the data     *     * @exception EOFException if an EOF is read     * @exception IOException if an error occurs when opening the file     * */    private ImgReaderPPM(RandomAccessFile in)throws EOFException,IOException {        this.in = in;        confirmFileType();        skipCommentAndWhiteSpace();        w=readHeaderInt();        skipCommentAndWhiteSpace();        h=readHeaderInt();        skipCommentAndWhiteSpace();        /*Read the highest pixel value from header (not used)*/        readHeaderInt();        nc=3;        rb=8;        }                    /**     * Closes the underlying file from where the image data is being read. No     * operations are possible after a call to this method.     *     * @exception IOException If an I/O error occurs.     * */    public void close() throws IOException {        in.close();        in = null;        // Free memory        barr[0] = null;        barr[1] = null;        barr[2] = null;        buf = null;    }    /**     * Returns the number of bits corresponding to the nominal range of the     * data in the specified component. This is the value rb (range bits) that     * was specified in the constructor, which normally is 8 for non bilevel     * data, and 1 for bilevel data.     *     * <P>If this number is <i>b</b> then the nominal range is between     * -2^(b-1) and 2^(b-1)-1, since unsigned data is level shifted to have a     * nominal avergae of 0.     *     * @param c The index of the component.     *     * @return The number of bits corresponding to the nominal range of the     * data. For floating-point data this value is not applicable and the     * return value is undefined.     * */    public int getNomRangeBits(int c) {        // Check component index        if (c<0 || c>2)            throw new IllegalArgumentException();        return rb;    }    /**     * Returns the position of the fixed point in the specified component     * (i.e. the number of fractional bits), which is always 0 for this     * ImgReader.     *     * @param c The index of the component.     *     * @return The position of the fixed-point (i.e. the number of fractional     * bits). Always 0 for this ImgReader.     * */    public int getFixedPoint(int c) {        // Check component index        if (c<0 || c>2)           throw new IllegalArgumentException();        return 0;    }    /**     * Returns, in the blk argument, the 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> After being read the coefficients are level shifted by subtracting     * 2^(nominal bit range - 1)     *     * <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>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     * new array may have been created. Instead, get the array from     * <tt>blk</tt> after the method has returned.     *     * <P>The returned data always has its 'progressive' attribute unset     * (i.e. false).     *     * <P>When an I/O exception is encountered the JJ2KExceptionHandler is     * used. The exception is passed to its handleException method. The action     * that is taken depends on the action that has been registered in     * JJ2KExceptionHandler. See JJ2KExceptionHandler for details.     *     * <P>This method implements buffering for the 3 components: When the     * first one is asked, all the 3 components are read and stored until they     * are needed.     *     * @param blk Its coordinates and dimensions specify the area to     * return. Some fields in this object are modified to return the data.     *     * @param c The index of the component from which to get the data. Only 0,     * 1 and 3 are valid.     *     * @return The requested DataBlk     *     * @see #getCompData     *     * @see JJ2KExceptionHandler     **/    public final DataBlk getInternCompData(DataBlk blk, int c) {        // Check component index        if (c<0||c>2)            throw new IllegalArgumentException();	// Check type of block provided as an argument	if(blk.getDataType()!=DataBlk.TYPE_INT){	    if(intBlk==null)		intBlk = new DataBlkInt(blk.ulx,blk.uly,blk.w,blk.h);	    else{		intBlk.ulx = blk.ulx;		intBlk.uly = blk.uly;		intBlk.w = blk.w;		intBlk.h = blk.h;	    }	    blk = intBlk;	}        // If asking a component for the first time for this block, read the 3        // components        if ((barr[c] == null) ||

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩aⅴ一区二区三区四区| 国产精品不卡视频| 国产色91在线| 亚洲三级在线播放| 日韩精品一二三| 国产高清无密码一区二区三区| 不卡av在线免费观看| 欧美三级电影在线观看| 欧美精品一区二区三区四区 | 蜜桃一区二区三区在线| 国产精品亚洲一区二区三区在线| 91片黄在线观看| 91精品国产aⅴ一区二区| 国产婷婷精品av在线| 夜夜精品浪潮av一区二区三区| 免费一级片91| 91丨porny丨国产入口| 欧美一区二区精品在线| 亚洲欧洲另类国产综合| 日本女人一区二区三区| av亚洲精华国产精华精华| 在线播放欧美女士性生活| 中文字幕av资源一区| 视频一区中文字幕国产| 不卡影院免费观看| 日韩三级伦理片妻子的秘密按摩| 国产精品卡一卡二卡三| 久久精品国内一区二区三区| 色婷婷亚洲精品| 国产日韩欧美精品在线| 日韩福利视频导航| 91啪亚洲精品| 久久久久国产精品人| 日本中文字幕一区二区视频| 一本到高清视频免费精品| 精品国产91洋老外米糕| 亚洲福利一区二区三区| 波多野结衣精品在线| 日韩精品一区二区三区三区免费| 亚洲黄色小视频| 综合自拍亚洲综合图不卡区| 国产精品水嫩水嫩| 奇米在线7777在线精品| 欧美在线你懂的| 亚洲欧洲中文日韩久久av乱码| 九九热在线视频观看这里只有精品| 在线观看国产一区二区| 中文字幕在线不卡一区| 国产一区二区三区久久悠悠色av| 欧美伦理电影网| 亚洲综合免费观看高清完整版在线 | 国产一区二区在线视频| 欧美精品一级二级| 夜夜揉揉日日人人青青一国产精品| 成人av免费观看| 日本一区免费视频| 国产成人在线免费观看| 精品捆绑美女sm三区| 久久精品国产秦先生| 91精品免费在线| 午夜激情久久久| 欧美三级电影网站| 亚洲国产美国国产综合一区二区| 色8久久精品久久久久久蜜| 中文字幕在线不卡一区二区三区| 丰满白嫩尤物一区二区| 亚洲国产精品黑人久久久| 国产精品99久久久久久久女警| 亚洲精品一区二区三区福利| 久久国产婷婷国产香蕉| 日韩一区二区三区电影在线观看| 日韩成人精品视频| 91精品国产麻豆国产自产在线 | 日韩视频免费观看高清在线视频| 五月婷婷综合激情| 91精品一区二区三区久久久久久 | 日韩一二三区不卡| 美日韩一区二区| 欧美成人精品3d动漫h| 久草中文综合在线| 久久综合五月天婷婷伊人| 国产精品69久久久久水密桃| 久久久久97国产精华液好用吗| 国产精品99久久久久久似苏梦涵 | 色综合久久综合网欧美综合网| 中文字幕一区在线| 91蜜桃在线观看| 亚洲国产色一区| 欧美一级二级三级乱码| 另类综合日韩欧美亚洲| 2021国产精品久久精品| 成人一级片在线观看| 亚洲少妇最新在线视频| 欧洲精品一区二区三区在线观看| 亚洲一区在线观看视频| 91精品国产麻豆国产自产在线 | 国产精品视频免费看| gogogo免费视频观看亚洲一| 亚洲美女视频在线观看| 欧美午夜精品一区二区三区| 日本麻豆一区二区三区视频| 亚洲精品一区二区精华| 99久久er热在这里只有精品15| 樱花草国产18久久久久| 欧美精品 国产精品| 国产在线观看一区二区| 国产精品久久久久桃色tv| 日本丶国产丶欧美色综合| 天天爽夜夜爽夜夜爽精品视频| 欧美xxxx老人做受| 成人ar影院免费观看视频| 亚洲一区二区在线观看视频| 欧美本精品男人aⅴ天堂| av中文一区二区三区| 亚洲午夜久久久久久久久电影网| 日韩视频在线你懂得| 国产a久久麻豆| 亚洲国产视频在线| 26uuu久久天堂性欧美| a级精品国产片在线观看| 天堂成人国产精品一区| 国产精品天美传媒沈樵| 欧美综合亚洲图片综合区| 乱中年女人伦av一区二区| 亚洲日本中文字幕区| 欧美一级午夜免费电影| 国产真实乱偷精品视频免| 亚洲人成7777| 精品国产污污免费网站入口| 91免费精品国自产拍在线不卡| 美美哒免费高清在线观看视频一区二区| 日本一区二区三区四区在线视频| 欧美日韩高清在线| 成人免费毛片app| 青青草国产精品亚洲专区无| 18欧美亚洲精品| 精品免费视频.| 欧美日韩精品欧美日韩精品| 成人av在线影院| 久久成人免费电影| 亚洲国产成人av| 国产精品久久久久四虎| 精品国产精品网麻豆系列 | 日韩成人免费电影| 亚洲男女一区二区三区| 欧美精品一区二区不卡 | 日本欧美一区二区| 亚洲亚洲人成综合网络| 中文字幕欧美日本乱码一线二线| 日韩精品资源二区在线| 欧美日韩精品一区二区| av一区二区久久| 国产精品18久久久久久久久 | 久久女同性恋中文字幕| 欧美理论电影在线| 色欲综合视频天天天| 粉嫩久久99精品久久久久久夜| 久久成人av少妇免费| 日本成人在线电影网| 亚洲一区二区在线免费观看视频| 亚洲欧洲日产国产综合网| 国产午夜精品久久久久久免费视| 日韩三级视频在线看| 制服视频三区第一页精品| 欧美在线一二三四区| 一本大道av伊人久久综合| 成人午夜在线播放| 国产激情精品久久久第一区二区| 日韩黄色小视频| 亚洲成a人片综合在线| 夜夜亚洲天天久久| 一区二区三区中文字幕| 亚洲天堂av一区| 亚洲图片激情小说| 国产精品视频一区二区三区不卡| 国产日韩欧美不卡在线| 国产午夜精品一区二区三区四区| 欧美岛国在线观看| 精品毛片乱码1区2区3区| 精品国产精品网麻豆系列| 日韩免费性生活视频播放| 日韩美女天天操| 2021久久国产精品不只是精品| 久久亚洲精华国产精华液| 久久久久久亚洲综合影院红桃| 精品久久久久久久人人人人传媒| 日韩精品一区二区三区swag| 精品少妇一区二区三区| 精品国产91乱码一区二区三区| 精品国产制服丝袜高跟| 2023国产精华国产精品| 久久久www成人免费无遮挡大片 | 99久久精品费精品国产一区二区| 99久久免费视频.com| 94色蜜桃网一区二区三区| 91美女在线看| 欧美日韩一区二区三区免费看| 欧美久久久影院| 欧美一区二区三区免费视频| 精品国产一区二区三区忘忧草|