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

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

?? stdquantizer.java

?? jpeg2000算法實現
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * CVS identifier: * * $Id: StdQuantizer.java,v 1.12 2001/01/08 13:28:38 grosbois Exp $ * * Class:                   StdQuantizer * * Description:             Scalar deadzone quantizer of integer or float *                          data. * *                          Mergerd from StdQuantizerInt and *                          StdQuantizerFloat from Joel Askelof. * * * 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.quantization.quantizer;import jj2000.j2k.codestream.writer.*;import jj2000.j2k.wavelet.analysis.*;import jj2000.j2k.quantization.*;import jj2000.j2k.wavelet.*;import jj2000.j2k.encoder.*;import jj2000.j2k.image.*;import jj2000.j2k.*;/** * This class implements scalar quantization of integer or floating-point * valued source data. The source data is the wavelet transformed image data * and the output is the quantized wavelet coefficients represented in * sign-magnitude (see below). * * <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 M most significat bits. The rest of the bits (least * significant bits) can contain a fractional value of the quantized * coefficient. This fractional value is not to be coded by the entropy * coder. However, it can be used to compute rate-distortion measures with * greater precision. * * <P>The value of M is determined for each subband as the sum of the number * of guard bits G and the nominal range of quantized wavelet coefficients in * the corresponding subband (Rq), minus 1: * * <P>M = G + Rq -1 * * <P>The value of G should be the same for all subbands. The value of Rq * depends on the quantization step size, the nominal range of the component * before the wavelet transform and the analysis gain of the subband (see * Subband). * * <P>The blocks of data that are requested should not cross subband * boundaries. * * @see Subband * * @see Quantizer * */public class StdQuantizer extends Quantizer {    /** The number of mantissa bits for the quantization steps */    public final static int QSTEP_MANTISSA_BITS = 11;    /** The number of exponent bits for the quantization steps */    // NOTE: formulas in 'convertFromExpMantissa()' and    // 'convertToExpMantissa()' methods do not support more than 5 bits.    public final static int QSTEP_EXPONENT_BITS = 5;    /** The maximum value of the mantissa for the quantization steps */    public final static int QSTEP_MAX_MANTISSA = (1<<QSTEP_MANTISSA_BITS)-1;    /** The maximum value of the exponent for the quantization steps */    public final static int QSTEP_MAX_EXPONENT = (1<<QSTEP_EXPONENT_BITS)-1;    /** Natural log of 2, used as a convenience variable */    private static double log2 = Math.log(2);    /** The quantization type specifications */    private QuantTypeSpec qts;    /** The quantization step size specifications */    private QuantStepSizeSpec qsss;    /** The guard bits specifications */    private GuardBitsSpec gbs;    /** The 'CBlkWTDataFloat' object used to request data, used when     * quantizing floating-point data. */    // This variable makes the class thread unsafe, but it avoids allocating    // new objects for code-block that is quantized.    private CBlkWTDataFloat infblk;    /**     * Initializes the source of wavelet transform coefficients. The     * constructor takes information on whether the quantizer is in     * reversible, derived or expounded mode. If the quantizer is reversible     * the value of 'derived' is ignored. If the source data is not integer     * (int) then the quantizer can not be reversible.     *      * <P> After initializing member attributes, getSubbandTree is called for     * all components setting the 'stepWMSE' for all subbands in the current     * tile.     *     * @param src The source of wavelet transform coefficients.     *     * @param encSpec The encoder specifications     * */    public StdQuantizer(CBlkWTDataSrc src,EncoderSpecs encSpec){	super(src);	qts  = encSpec.qts;        qsss = encSpec.qsss;        gbs  = encSpec.gbs;    }    /**      * Returns the quantization type spec object associated to the quantizer.     *     * @return The quantization type spec     * */    public QuantTypeSpec getQuantTypeSpec(){	return qts;    }    /**     * Returns the number of guard bits used by this quantizer in the given     * tile-component.     *     * @param t Tile index     *     * @param c Component index     *     * @return The number of guard bits     * */    public int getNumGuardBits(int t,int c){        return ((Integer)gbs.getTileCompVal(t,c)).intValue();    }    /**     * Returns the number of code-blocks in a subband, along the horizontal     * and vertical dimensions.     *     * <P>Since the quantizer does not modify the number of code-blocks it     * just returns the values obtained by calling the same method on the     * source of non-quantized data.     *     * @param sb The subband for which to return the number of blocks.     *     * @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(SubbandAn sb, Coord co) {        return src.getNumCodeBlocks(sb,co);    }    /**     * Returns true if the quantized data is reversible, for the specified     * tile-component. For the quantized data to be reversible it is necessary     * and sufficient that the quantization is reversible.     *     * @param t The tile to test for reversibility     *     * @param c The component to test for reversibility     *     * @return True if the quantized data is reversible, false if not.     * */    public boolean isReversible(int t,int c){	return qts.isReversible(t,c);    }        /**      * Returns true if given tile-component uses derived quantization step     * sizes.     *     * @param t Tile index     *     * @param c Component index     *     * @return True if derived     *     */    public boolean isDerived(int t,int c){	return qts.isDerived(t,c);    }    /**     * Returns the next code-block in the current tile for the specified     * component, as a copy (see below). The order in which code-blocks are     * returned is not specified. However each code-block is returned only     * once and all code-blocks will be returned if the method is called 'N'     * times, where 'N' is the number of code-blocks in the tile. After all     * the code-blocks have been returned for the current tile calls to this     * method will return 'null'.     *     * <P>When changing the current tile (through 'setTile()' or 'nextTile()')     * this method will always return the first code-block, as if this method     * was never called before for the new current tile.     *     * <P>The data returned by this method is always a copy of the     * data. Therfore 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 'CBlkWTData' class.     *     * <P>The 'ulx' and 'uly' members of the returned 'CBlkWTData' 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 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 CBlkWTData     * */    public CBlkWTData getNextCodeBlock(int c,CBlkWTData cblk) {        return getNextInternCodeBlock(c,cblk);    }    /**     * Returns the next code-block in the current tile for the specified     * component. The order in which code-blocks are returned is not     * specified. However each code-block is returned only once and all     * code-blocks will be returned if the method is called 'N' times, where     * 'N' is the number of code-blocks in the tile. After all the code-blocks     * have been returned for the current tile calls to this method will     * return 'null'.     *     * <P>When changing the current tile (through 'setTile()' or 'nextTile()')     * this method will always return the first code-block, as if this method     * was never called before for the new current tile.     *     * <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 'CBlkWTData' class.     *     * <P>The 'ulx' and 'uly' members of the returned 'CBlkWTData' 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 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 CBlkWTData     * */    public final CBlkWTData getNextInternCodeBlock(int c, CBlkWTData cblk) {        // NOTE: this method is declared final since getNextCodeBlock() relies        // on this particular implementation        int k,j;        int tmp,shiftBits,jmin;        int w,h;        int outarr[];        float infarr[] = null;        CBlkWTDataFloat infblk;        float invstep;    // The inverse of the quantization step size        boolean intq;     // flag for quantizig ints        SubbandAn sb;        float stepUDR;    // The quantization step size (for a dynamic                          // range of 1, or unit)        int g = ((Integer)gbs.getTileCompVal(tIdx,c)).intValue();        // Are we quantizing ints or floats?        intq = (src.getDataType(tIdx,c) == DataBlk.TYPE_INT);        // Check that we have an output object        if (cblk == null) {            cblk = new CBlkWTDataInt();        }        // Cache input float code-block        infblk = this.infblk;        // Get data to quantize. When quantizing int data 'cblk' is used to        // get the data to quantize and to return the quantized data as well,        // that's why 'getNextCodeBlock()' is used. This can not be done when        // quantizing float data because of the different data types, that's        // why 'getNextInternCodeBlock()' is used in that case.        if (intq) { // Source data is int            cblk = src.getNextCodeBlock(c,cblk);            if (cblk == null) {                return null; // No more code-blocks in current tile for comp.            }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
1000部国产精品成人观看| 亚洲成人福利片| 亚洲一区二区av电影| 美女视频一区在线观看| 成人国产亚洲欧美成人综合网| 欧美日韩亚洲综合| 中文字幕在线观看不卡视频| 日本欧美肥老太交大片| 色激情天天射综合网| 久久九九影视网| 老汉av免费一区二区三区| 欧美性做爰猛烈叫床潮| 中文字幕一区三区| 激情欧美日韩一区二区| 欧美男男青年gay1069videost| 国产精品久久久久久亚洲毛片| 老汉av免费一区二区三区| 欧美肥妇bbw| 一区二区三区精品视频| www.日韩在线| 久久久噜噜噜久噜久久综合| 日韩va亚洲va欧美va久久| 99国产精品99久久久久久| 国产欧美中文在线| 国产在线视频精品一区| 欧美大片在线观看一区二区| 三级在线观看一区二区| 欧美日韩久久一区| 亚洲6080在线| 欧美日韩电影一区| 日韩影院在线观看| 欧美一级生活片| 美腿丝袜亚洲三区| 日韩精品影音先锋| 美国毛片一区二区| 精品免费日韩av| 国产精品中文字幕一区二区三区| 欧美一级欧美三级在线观看| 日本女人一区二区三区| 欧美一激情一区二区三区| 美女mm1313爽爽久久久蜜臀| 欧美老肥妇做.爰bbww| 日本成人在线电影网| 日韩视频中午一区| 国产伦精一区二区三区| 国产欧美在线观看一区| a4yy欧美一区二区三区| 一区二区三区欧美激情| 欧美日韩久久一区| 老司机午夜精品| 国产日韩精品一区二区浪潮av| 国产福利91精品一区二区三区| 国产精品毛片a∨一区二区三区| 成人91在线观看| 亚洲777理论| 久久综合九色综合久久久精品综合| 国产久卡久卡久卡久卡视频精品| 国产精品人妖ts系列视频| 色综合咪咪久久| 午夜欧美2019年伦理| 久久这里都是精品| 91原创在线视频| 日韩精品一二区| 国产精品久久午夜| 欧美三级日韩三级| 粉嫩嫩av羞羞动漫久久久| 亚洲免费观看高清完整| 日韩丝袜美女视频| 99久久免费国产| 日本强好片久久久久久aaa| 国产欧美一区二区精品久导航| 91丨porny丨最新| 免费视频一区二区| 亚洲欧洲精品一区二区三区不卡| 欧美日韩一二区| 播五月开心婷婷综合| 午夜免费久久看| 国产精品私人影院| 日韩精品影音先锋| 91久久精品一区二区三区| 国产综合成人久久大片91| 一区二区久久久| 国产三级一区二区| 日韩一级黄色片| 色综合天天综合狠狠| 久久99国产精品麻豆| 一区二区三区毛片| 国产精品丝袜在线| 精品欧美一区二区在线观看| 欧美性大战久久久久久久| 粗大黑人巨茎大战欧美成人| 轻轻草成人在线| 一区二区久久久久久| 国产精品国产三级国产| 精品欧美久久久| 69精品人人人人| 在线精品国精品国产尤物884a| 国产成人免费视频一区| 久久99精品国产91久久来源| 视频一区二区三区中文字幕| 亚洲欧美另类图片小说| 中文字幕一区二区三区视频| 久久久久久综合| 日韩欧美不卡在线观看视频| 欧美日韩国产高清一区二区 | 伊人婷婷欧美激情| 国产精品美女久久久久av爽李琼| 日韩欧美在线影院| 在线不卡的av| 欧美日韩中文字幕一区二区| 色综合天天综合网天天狠天天| 成人av网站在线观看免费| 国产高清久久久久| 国产一区二区三区精品视频| 免播放器亚洲一区| 免费在线观看一区二区三区| 男人的天堂久久精品| 日本伊人午夜精品| 日本伊人精品一区二区三区观看方式| 亚洲国产综合91精品麻豆| 亚洲一区二区高清| 日韩国产一区二| 美腿丝袜亚洲综合| 狠狠色2019综合网| 国产成人啪午夜精品网站男同| 国产成人超碰人人澡人人澡| 不卡av免费在线观看| 99精品视频在线观看免费| 色悠悠久久综合| 欧美视频一二三区| 欧美一区二区啪啪| 精品成人一区二区三区四区| 国产午夜久久久久| 中文字幕一区二区三区av| 亚洲美女视频在线| 香蕉久久一区二区不卡无毒影院 | 成人性视频网站| av一二三不卡影片| 在线观看91精品国产入口| 欧美日本乱大交xxxxx| 精品入口麻豆88视频| 中国av一区二区三区| 亚洲图片欧美一区| 精品一区二区三区香蕉蜜桃| 丁香六月综合激情| 欧美日韩免费在线视频| 日韩欧美久久一区| 国产精品久久久久久亚洲伦| 亚洲第一在线综合网站| 蜜臂av日日欢夜夜爽一区| 成人免费看的视频| 91 com成人网| 国产精品国产自产拍在线| 丝袜a∨在线一区二区三区不卡| 国产一区二区三区不卡在线观看| 国产成人免费在线视频| 欧美日产国产精品| 中文子幕无线码一区tr| 亚洲国产一区二区三区青草影视| 裸体健美xxxx欧美裸体表演| 成人动漫一区二区三区| 欧美军同video69gay| 国产精品视频免费看| 免费视频一区二区| 91亚洲永久精品| 日韩免费视频一区二区| 自拍av一区二区三区| 激情综合网最新| 欧美色图片你懂的| 日本一区二区三区四区在线视频 | 日日摸夜夜添夜夜添精品视频| 国产精品影视在线观看| 欧美日韩国产大片| 亚洲日本青草视频在线怡红院| 久国产精品韩国三级视频| 欧美性大战xxxxx久久久| 久久日韩粉嫩一区二区三区| 亚洲国产一区二区三区| bt欧美亚洲午夜电影天堂| 日韩欧美在线网站| 亚洲午夜精品久久久久久久久| 国产成人8x视频一区二区 | 在线视频一区二区三| 中文字幕精品在线不卡| 久久99久久久久久久久久久| 欧美理论电影在线| 亚洲国产精品一区二区久久恐怖片 | 久久久噜噜噜久噜久久综合| 亚洲mv在线观看| 色婷婷一区二区三区四区| 国产精品初高中害羞小美女文| 精品在线观看视频| 日韩一区二区精品在线观看| 亚洲成av人片观看| 在线视频中文字幕一区二区| 一区二区三区中文字幕精品精品| 大桥未久av一区二区三区中文| 国产日韩欧美电影| 成人高清视频在线| 国产精品久久久久9999吃药|