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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? roidescaler.java

?? jpeg2000算法實現(xiàn)
?? JAVA
字號:
/* * CVS identifier: * * $Id: ROIDeScaler.java,v 1.35 2001/03/01 09:37:14 grosbois Exp $ * * * Class:                   ROIDeScaler * * Description:             The class taking care of de-scaling ROI coeffs. * * * * 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.roi;import jj2000.j2k.quantization.dequantizer.*;import jj2000.j2k.codestream.reader.*;import jj2000.j2k.wavelet.synthesis.*;import jj2000.j2k.codestream.*;import jj2000.j2k.entropy.*;import jj2000.j2k.decoder.*;import jj2000.j2k.image.*;import jj2000.j2k.util.*;import jj2000.j2k.io.*;import jj2000.j2k.*;import java.io.*;/** * This class takes care of the de-scaling of ROI coefficients. The de-scaler * works on a tile basis and any mask that is generated is for the current * mask only * * <P>Default implementations of the methods in 'MultiResImgData' are provided * through the 'MultiResImgDataAdapter' abstract class. * * <P>Sign magnitude representation is used (instead of two's complement) for * the output data. The most significant bit is used for the sign (0 if * positive, 1 if negative). Then the magnitude of the quantized coefficient * is stored in the next most significat bits. The most significant magnitude * bit corresponds to the most significant bit-plane and so on. * */public class ROIDeScaler extends MultiResImgDataAdapter    implements CBlkQuantDataSrcDec{    /** The MaxShiftSpec containing the scaling values for all tile-components     * */    private MaxShiftSpec mss;    /** The prefix for ROI decoder options: 'R' */    public final static char OPT_PREFIX = 'R';    /** The list of parameters that is accepted by the entropy decoders. They     * start with 'R'. */    private final static String [][] pinfo = {	{ "Rno_roi",null,	  "This argument makes sure that the no ROI de-scaling is performed. "+	  "Decompression is done like there is no ROI in the image",null},    };    /** The entropy decoder from where to get the compressed data (the source)     * */    private CBlkQuantDataSrcDec src;    /**     * Constructor of the ROI descaler, takes EntropyDEcoder as source of data     * to de-scale.     *     * @param src The EntropyDecoder that is the source of data.     *     * @param mss The MaxShiftSpec containing the scaling values for all     * tile-components     * */    public ROIDeScaler(CBlkQuantDataSrcDec src, MaxShiftSpec mss){        super(src);        this.src=src;        this.mss=mss;    }    /**     * Returns the subband tree, for the specified tile-component. This method     * returns the root element of the subband tree structure, see Subband and     * SubbandSyn. The tree comprises all the available resolution levels.     *     * <P>The number of magnitude bits ('magBits' member variable) for each     * subband is not initialized.     *     * @param t The index of the tile, from 0 to T-1.     *     * @param c The index of the component, from 0 to C-1.     *     * @return The root of the tree structure.     * */    public SubbandSyn getSubbandTree(int t,int c) {        return src.getSubbandTree(t,c);    }    /**     * Returns the horizontal coordinate of the origin of the cell and     * code-block partition, with respect to the canvas origin, on the     * reference grid. Allowable values are 0 and 1, nothing else.     *     * @return The horizontal coordinate of the origin of the cell and     * code-block partitions, with respect to the canvas origin, on the     * reference grid.     * */    public int getPartitionULX() {        return src.getPartitionULX();    }    /**     * Returns the vertical coordinate of the origin of the cell and     * code-block partition, with respect to the canvas origin, on the     * reference grid. Allowable values are 0 and 1, nothing else.     *     * @return The vertical coordinate of the origin of the cell and     * code-block partitions, with respect to the canvas origin, on the     * reference grid.     * */    public int getPartitionULY() {        return src.getPartitionULY();    }    /**     * Returns the parameters that are used in this class and implementing     * classes. It returns a 2D String array. Each of the 1D arrays is for a     * different option, and they have 3 elements. The first element is the     * option name, the second one is the synopsis and the third one is a long     * description of what the parameter is. The synopsis or description may     * be 'null', in which case it is assumed that there is no synopsis or     * description of the option, respectively. Null may be returned if no     * options are supported.     *     * @return the options name, their synopsis and their explanation, or null     * if no options are supported.     * */    public static String[][] getParameterInfo() {        return pinfo;    }    /**     * Returns the number of code-blocks in a subband, along the horizontal     * and vertical dimensions.     *     * @param sb The subband for which to return the number of blocks.     *     * @param n The component where the subband is.     *     * @param co If not null the values are returned in this object. If null a     * new object is allocated and returned.     *     * @return The number of code-blocks along the horizontal dimension in     * 'Coord.x' and the number of code-blocks along the vertical dimension in     * 'Coord.y'.     * */    public Coord getNumCodeBlocks(SubbandSyn sb, int n, Coord co){        return src.getNumCodeBlocks(sb,n,co);    }    /**     * Returns the specified code-block in the current tile for the specified     * component, as a copy (see below).     *     * <P>The returned code-block may be progressive, which is indicated by     * the 'progressive' variable of the returned 'DataBlk' object. If a     * code-block is progressive it means that in a later request to this     * method for the same code-block it is possible to retrieve data which is     * a better approximation, since meanwhile more data to decode for the     * code-block could have been received. If the code-block is not     * progressive then later calls to this method for the same code-block     * will return the exact same data values.     *     * <P>The data returned by this method is always a copy of the internal     * data of this object, if any, and it can be modified "in place" without     * any problems after being returned. The 'offset' of the returned data is     * 0, and the 'scanw' is the same as the code-block width. See the     * 'DataBlk' class.     *     * <P>The 'ulx' and 'uly' members of the returned 'DataBlk' object contain     * the coordinates of the top-left corner of the block, with respect to     * the tile, not the subband.     *     * @param c The component for which to return the next code-block.     *     * @param m The vertical index of the code-block to return, in the     * specified subband.     *     * @param n The horizontal index of the code-block to return, in the     * specified subband.     *     * @param sb The subband in which the code-block to return is.     *     * @param cblk If non-null this object will be used to return the new     * code-block. If null a new one will be allocated and returned. If the     * "data" array of the object is non-null it will be reused, if possible,     * to return the data.     *     * @return The next code-block in the current tile for component 'n', or     * null if all code-blocks for the current tile have been returned.     *     * @see DataBlk     * */    public DataBlk getCodeBlock(int c, int m, int n, SubbandSyn sb,                                  DataBlk cblk){        return getInternCodeBlock(c,m,n,sb,cblk);    }        /**     * Returns the specified code-block in the current tile for the specified     * component (as a reference or copy).     *     * <P>The returned code-block may be progressive, which is indicated by     * the 'progressive' variable of the returned 'DataBlk' object. If a     * code-block is progressive it means that in a later request to this     * method for the same code-block it is possible to retrieve data which is     * a better approximation, since meanwhile more data to decode for the     * code-block could have been received. If the code-block is not     * progressive then later calls to this method for the same code-block     * will return the exact same data values.     *     * <P>The data returned by this method can be the data in the internal     * buffer of this object, if any, and thus can not be modified by the     * caller. The 'offset' and 'scanw' of the returned data can be     * arbitrary. See the 'DataBlk' class.     *     * <P>The 'ulx' and 'uly' members of the returned 'DataBlk' object contain     * the coordinates of the top-left corner of the block, with respect to     * the tile, not the subband.     *     * @param c The component for which to return the next code-block.     *     * @param m The vertical index of the code-block to return, in the     * specified subband.     *     * @param n The horizontal index of the code-block to return, in the     * specified subband.     *     * @param sb The subband in which the code-block to return is.     *     * @param cblk If non-null this object will be used to return the new     * code-block. If null a new one will be allocated and returned. If the     * "data" array of the object is non-null it will be reused, if possible,     * to return the data.     *     * @return The requested code-block in the current tile for component 'c'.     *     * @see DataBlk     * */    public DataBlk getInternCodeBlock(int c, int m, int n, SubbandSyn sb,                                        DataBlk cblk){        int mi,i,j,k,wrap;        int ulx, uly, w, h;        int[] data;                       // local copy of quantized data        int tmp;        int limit;        // Get data block from entropy decoder        cblk = src.getInternCodeBlock(c,m,n,sb,cblk);        // If there are no ROIs in the tile, Or if we already got all blocks        boolean noRoiInTile = false;        if(mss==null || mss.getTileCompVal(getTileIdx(),c)==null )            noRoiInTile = true;        if (noRoiInTile || cblk==null) {             return cblk;        }        data = (int[])cblk.getData();        ulx = cblk.ulx;        uly = cblk.uly;        w = cblk.w;        h = cblk.h;	// Scale coefficients according to magnitude. If the magnitude of a	// coefficient is lower than 2 pow 31-magbits then it is a background	// coeff and should be up-scaled	int boost = ((Integer) mss.getTileCompVal(getTileIdx(),c)).intValue();        int mask = ((1<<sb.magbits)-1)<<(31-sb.magbits);        int mask2 = (~mask)&0x7FFFFFFF;	wrap=cblk.scanw-w;	i=cblk.offset+cblk.scanw*(h-1)+w-1;	for(j=h;j>0;j--){	    for(k=w;k>0;k--,i--){		tmp=data[i];		if((tmp & mask) == 0 ) { // BG		    data[i] = (tmp & 0x80000000) | (tmp << boost);		}                else { // ROI                    if ((tmp & mask2) != 0) {                        // decoded more than magbits bit-planes, set                        // quantization mid-interval approx. bit just after                        // the magbits.                        data[i] = (tmp&(~mask2)) | (1<<(30-sb.magbits));                    }                }	    }	    i-=wrap;	}        return cblk;        }        /**     * Creates a ROIDeScaler object. The information needed to create the     * object is the Entropy decoder used and the parameters.     *     * @param src The source of data that is to be descaled     *     * @param pl The parameter list (or options).     *     * @param decSpec The decoding specifications     *     * @exception IllegalArgumentException If an error occurs while parsing     * the options in 'pl'     * */    public static ROIDeScaler createInstance(CBlkQuantDataSrcDec src,                                             ParameterList pl,                                             DecoderSpecs decSpec){        String noRoi;        int i;        // Check parameters        pl.checkList(OPT_PREFIX,pl.toNameArray(pinfo));        // Check if no_roi specified in command line or no roi signalled	// in bit stream        noRoi = pl.getParameter("Rno_roi");        if (noRoi != null || decSpec.rois == null) {            // no_roi specified in commandline!	    return new ROIDeScaler(src,null);        }        return new ROIDeScaler( src, decSpec.rois );    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精选一区二区| 欧美成人欧美edvon| 亚洲成av人**亚洲成av**| 日韩欧美中文一区二区| 99视频在线精品| 久久国产欧美日韩精品| 亚洲裸体在线观看| 日本一区二区三区电影| 欧美一区二区三区在线观看| 91麻豆成人久久精品二区三区| 国内精品久久久久影院色| 婷婷综合另类小说色区| 亚洲伦理在线精品| 欧美极品aⅴ影院| www国产精品av| 56国语精品自产拍在线观看| 一本一道久久a久久精品综合蜜臀| 风间由美性色一区二区三区| 日本成人中文字幕| 亚洲成人先锋电影| 亚洲欧美国产77777| 中文在线资源观看网站视频免费不卡| 日韩欧美一区二区免费| 欧美三级电影一区| 在线看国产一区二区| 成人h精品动漫一区二区三区| 国产一区二区三区四区五区入口 | 亚洲欧美一区二区三区国产精品| 欧美一卡在线观看| 欧美日韩成人在线| 欧美日韩综合在线免费观看| 日本高清不卡一区| 91久久精品一区二区三| 91浏览器打开| 91网站黄www| 91年精品国产| 91在线视频播放| 99久久久免费精品国产一区二区| 欧美一级国产精品| 欧美卡1卡2卡| 3751色影院一区二区三区| 91精品蜜臀在线一区尤物| 欧美裸体一区二区三区| 欧美精品久久一区| 91精品国产日韩91久久久久久| 91麻豆精品国产91久久久| 日韩亚洲欧美综合| 日韩美女视频一区二区在线观看| 精品电影一区二区三区| 欧美精品一区二区在线观看| 国产欧美视频一区二区三区| 中文字幕不卡在线播放| 国产精品久久久久影院老司| 亚洲啪啪综合av一区二区三区| 亚洲激情av在线| 无码av免费一区二区三区试看| 免费成人在线观看| 国产成人免费视频网站| av不卡免费在线观看| 欧美性xxxxx极品少妇| 欧美一区二区不卡视频| 久久久久国产精品人| 亚洲视频在线观看一区| 亚洲一区在线视频观看| 美女一区二区视频| 成人午夜伦理影院| 91久久精品一区二区三| 91精品国产欧美一区二区成人| 精品日韩欧美在线| 国产精品久久久久久久久免费樱桃| 一区二区三区四区av| 日韩国产高清影视| 国产一区二区女| 在线精品视频一区二区三四| 69av一区二区三区| 中文字幕av资源一区| 性做久久久久久免费观看| 激情文学综合丁香| 91热门视频在线观看| 91精品午夜视频| 国产精品乱码人人做人人爱| 无码av中文一区二区三区桃花岛| 国产高清亚洲一区| 欧美伊人久久大香线蕉综合69 | 国产成人自拍高清视频在线免费播放 | 亚洲码国产岛国毛片在线| 日韩精品一级中文字幕精品视频免费观看 | 91精彩视频在线观看| 日韩精品一区二区三区在线| 1024亚洲合集| 久久精品久久精品| 在线视频国内自拍亚洲视频| 久久日一线二线三线suv| 亚洲精品一二三| 欧美人动与zoxxxx乱| 国产精品久久午夜夜伦鲁鲁| 日韩在线a电影| 91亚洲精品久久久蜜桃网站| 日韩精品一区二区三区在线| 一区二区三区日韩欧美| 国产伦精品一区二区三区视频青涩 | 99久久久精品免费观看国产蜜| 欧美一区二区三区性视频| 自拍偷拍亚洲激情| 国产精品一二二区| 日韩一区二区三区在线视频| 一区二区三区不卡在线观看 | 亚洲色图欧美偷拍| 国产一区二区三区av电影| 9191国产精品| 一区二区三区精密机械公司| 成人午夜视频在线观看| 精品国产一区二区三区av性色 | 午夜精品福利在线| av午夜一区麻豆| 国产区在线观看成人精品| 日本午夜一本久久久综合| 在线观看av一区| 中文字幕一区在线观看视频| 国产黄色精品网站| 精品国产凹凸成av人网站| 免费不卡在线观看| 欧美日韩精品免费观看视频| 亚洲资源在线观看| 91豆麻精品91久久久久久| 亚洲美女免费视频| 91一区一区三区| 亚洲欧美日韩国产中文在线| 99热在这里有精品免费| 国产精品蜜臀av| 成人毛片视频在线观看| 欧美国产亚洲另类动漫| 国产精品自拍一区| 国产日产欧产精品推荐色| 国产大片一区二区| 欧美国产一区在线| 99久久夜色精品国产网站| 亚洲国产精品ⅴa在线观看| 国产91露脸合集magnet| 国产精品视频一区二区三区不卡| 处破女av一区二区| 国产精品欧美久久久久无广告| bt7086福利一区国产| 成人免费在线播放视频| 91麻豆成人久久精品二区三区| 亚洲综合色丁香婷婷六月图片| 欧美日韩久久久一区| 日韩中文字幕亚洲一区二区va在线 | 91久久精品午夜一区二区| 一区二区成人在线| 精品污污网站免费看| 日本欧美久久久久免费播放网| 精品国产三级电影在线观看| 欧美大片拔萝卜| 狠狠色狠狠色综合系列| 国产午夜精品久久久久久久| 99精品一区二区三区| 一区二区高清免费观看影视大全| 欧美电影影音先锋| 久久99这里只有精品| 国产拍欧美日韩视频二区| 99久久伊人精品| 亚洲1区2区3区视频| 精品三级av在线| 99久久精品国产导航| 午夜久久福利影院| 国产亚洲欧美日韩俺去了| 91麻豆国产福利精品| 美女视频网站黄色亚洲| 国产精品乱码久久久久久| 欧美亚洲动漫制服丝袜| 久久av资源网| 亚洲女女做受ⅹxx高潮| 777色狠狠一区二区三区| 国产91色综合久久免费分享| 亚洲成av人片www| 国产人成一区二区三区影院| 欧美性猛交xxxxxx富婆| 国产一区二区三区黄视频 | 欧美日韩中文一区| 国产在线国偷精品产拍免费yy| ㊣最新国产の精品bt伙计久久| 91精品国产一区二区| 波多野结衣在线aⅴ中文字幕不卡| 偷拍自拍另类欧美| 国产精品美女一区二区| 9191国产精品| 91视视频在线观看入口直接观看www | 成人一级视频在线观看| 亚洲国产aⅴ天堂久久| 欧美激情艳妇裸体舞| 欧美日韩国产三级| 国产69精品久久久久777| 午夜精品视频在线观看| 国产精品免费av| 亚洲精品在线三区| 欧美日韩成人一区二区| 色婷婷综合中文久久一本| 懂色中文一区二区在线播放| 青青青爽久久午夜综合久久午夜|