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

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

?? imgdatajoiner.java

?? jpeg2000算法實現
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * CVS identifier: * * $Id: ImgDataJoiner.java,v 1.11 2001/01/24 14:58:50 grosbois Exp $ * * Class:                   ImgDataJoiner * * Description:             Get ImgData from different sources * * * * 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;import jj2000.j2k.*;/** * This class implements the ImgData interface and allows to obtain data from * different sources. Here, one source is represented by an ImgData and a * component index. The typical use of this class is when the encoder needs * different components (Red, Green, Blue, alpha, ...) from different input * files (i.e. from different ImgReader objects). * * <P>All input ImgData must not be tiled (i.e. must have only 1 tile) and the * image origin must be the canvas origin. The different inputs can have * different dimensions though (this will lead to different subsampling * factors for each component). * * <P>The input ImgData and component index list must be defined when * constructing this class and can not be modified later. * * @see ImgData * * @see jj2000.j2k.image.input.ImgReader * */public class ImgDataJoiner implements BlkImgDataSrc {    /** The width of the image */    private int w;    /** The height of the image */    private int h;    /** The number of components in the image */    private int nc;    /** The list of input ImgData */    private BlkImgDataSrc[] imageData;    /** The component index associated with each ImgData */    private int[] compIdx;    /** The subsampling factor along the horizontal direction, for every     * component */    private int[] subsX;    /** The subsampling factor along the vertical direction, for every     * component */    private int[] subsY;    /**     * Class constructor. Each input BlkImgDataSrc and its component index     * must appear in the order wanted for the output components.<br>     *     * <u>Example:</u> Reading R,G,B components from 3 PGM files.<br>     * <tt>     * BlkImgDataSrc[] idList = <br>     *   {<br>     *   new ImgReaderPGM(new BEBufferedRandomAccessFile("R.pgm", "r")),<br>     *   new ImgReaderPGM(new BEBufferedRandomAccessFile("G.pgm", "r")),<br>     *   new ImgReaderPGM(new BEBufferedRandomAccessFile("B.pgm", "r"))<br>     *   };<br>     * int[] compIdx = {0,0,0};<br>     * ImgDataJoiner idj = new ImgDataJoiner(idList, compIdx);     * </tt>     *     * <p>Of course, the 2 arrays must have the same length (This length is     * the number of output components). The image width and height are     * definded to be the maximum values of all the input ImgData.     *     * @param imD The list of input BlkImgDataSrc in an array.     *     * @param cIdx The component index associated with each ImgData.     * */    public ImgDataJoiner(BlkImgDataSrc[] imD, int[] cIdx){        int i;        int maxW, maxH;	// Initializes	imageData = imD;	compIdx = cIdx;	if(imageData.length != compIdx.length)	    throw new IllegalArgumentException("imD and cIdx must have the"+					       " same length");	nc = imD.length;        subsX = new int[nc];        subsY = new int[nc];        // Check that no source is tiled and that the image origin is at the        // canvas origin.        for(i=0; i<nc; i++) {            if (imD[i].getNumTiles() != 1 ||                imD[i].getULX(cIdx[i]) != 0 || imD[i].getULY(cIdx[i]) != 0) {                throw                    new IllegalArgumentException("All input components must, "+                                                 "not use tiles and must have "+                                                 "the origin at the canvas "+                                                 "origin");            }        }        // Guess component subsampling factors based on the fact that the        // ceil() operation relates the reference grid size to the component's        // size, through the subsampling factor.        // Mhhh, difficult problem. For now just assume that one of the        // subsampling factors is always 1 and that the component width is        // always larger than its subsampling factor, which covers most of the        // cases. We check the correctness of the solution once found to chek        // out hypothesis.        // Look for max width and height.        maxW = 0;        maxH = 0;	for(i=0; i<nc; i++) {	    if(imD[i].getCompImgWidth(cIdx[i]) > maxW)		maxW = imD[i].getCompImgWidth(cIdx[i]);	    if(imD[i].getCompImgHeight(cIdx[i]) > maxH)		maxH = imD[i].getCompImgHeight(cIdx[i]);	}        // Set the image width and height as the maximum ones	w = maxW;	h = maxH;        // Now get the sumsampling factors and check the subsampling factors,        // just to see if above hypothesis were correct.        for (i=0; i<nc; i++) {            // This calculation only holds if the subsampling factor is less            // than the component width            subsX[i] = (maxW + imD[i].getCompImgWidth(cIdx[i])-1) /                imD[i].getCompImgWidth(cIdx[i]);            subsY[i] = (maxH + imD[i].getCompImgHeight(cIdx[i])-1) /                imD[i].getCompImgHeight(cIdx[i]);            if ((maxW+subsX[i]-1)/subsX[i] !=                imD[i].getCompImgWidth(cIdx[i]) ||                (maxH+subsY[i]-1)/subsY[i] !=                imD[i].getCompImgHeight(cIdx[i])) {                throw new Error("Can not compute component subsampling "+                                "factors: strange subsampling.");            }        }    }    /**     * Returns the overall width of the current tile in pixels. This is the     * tile's width without accounting for any component subsampling.     *     * @return The total current tile's width in pixels.     * */    public int getWidth(){	return w;    }    /**     * Returns the overall height of the current tile in pixels. This is the     * tile's height without accounting for any component subsampling.     *     * @return The total current tile's 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.     *     * @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.     *     * @return The total image's height in pixels.     * */    public int getImgHeight(){	return h;    }    /**     * Returns the number of components in the image.     *     * @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 N-1)     *     * @return The horizontal subsampling factor of component 'c'     *     * @see ImgData     * */    public int getCompSubsX(int c) {        return subsX[c];    }    /**     * 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 N-1)     *     * @return The vertical subsampling factor of component 'c'     *     * @see ImgData     * */    public int getCompSubsY(int c) {        return subsY[c];    }    /**     * Returns the width in pixels of the specified component in the     * current tile.     *     * @param c The index of the component, from 0 to N-1.     *     * @return The width in pixels of component <tt>c</tt> in the current     * tile.     * */    public int getCompWidth(int c){	return imageData[c].getCompWidth(compIdx[c]);    }    /**     * Returns the height in pixels of the specified component in the current     * tile.     *     * @param c The index of the component, from 0 to N-1.     *     * @return The height in pixels of component <tt>c</tt> in the current     * tile.     * */    public int getCompHeight(int c){	return imageData[c].getCompHeight(compIdx[c]);    }    /**     * Returns the width in pixels of the specified component in the overall     * image.     *     * @param c The index of the component, from 0 to N-1.     *     * @return The width in pixels of component <tt>c</tt> in the overall     * image.     * */    public int getCompImgWidth(int c){	return imageData[c].getCompImgWidth(compIdx[c]);    }    /**     * Returns the height in pixels of the specified component in the     * overall image.     *     * @param n The index of the component, from 0 to N-1.     *     * @return The height in pixels of component <tt>n</tt> in the overall     * image.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产你懂的| 91福利在线导航| 日韩女同互慰一区二区| 麻豆freexxxx性91精品| 精品国内片67194| 九色综合狠狠综合久久| 久久欧美中文字幕| eeuss国产一区二区三区| 亚洲欧美自拍偷拍| 在线精品视频一区二区三四| 亚洲国产另类精品专区| 制服.丝袜.亚洲.中文.综合| 狠狠v欧美v日韩v亚洲ⅴ| 日本一区二区免费在线观看视频| 成人午夜电影小说| 尤物视频一区二区| 欧美成人精品高清在线播放| 国产又黄又大久久| 亚洲桃色在线一区| 91麻豆精品国产自产在线| 国模无码大尺度一区二区三区| 国产欧美日韩在线看| 欧美性色欧美a在线播放| 美国三级日本三级久久99| 日本一区二区综合亚洲| 欧美日韩免费电影| 国产福利视频一区二区三区| 亚洲视频你懂的| 精品国产露脸精彩对白| 972aa.com艺术欧美| 免费精品99久久国产综合精品| www国产亚洲精品久久麻豆| 99国产精品久久久久| 午夜精品一区二区三区免费视频| 国产日韩欧美不卡| 欧美日韩精品高清| 大胆欧美人体老妇| 手机精品视频在线观看| 国产精品久久久爽爽爽麻豆色哟哟 | 在线亚洲人成电影网站色www| 日韩av在线播放中文字幕| 中文字幕在线一区| 日韩欧美亚洲国产精品字幕久久久| 99久久精品久久久久久清纯| 免费欧美高清视频| 亚洲综合免费观看高清在线观看| 久久欧美中文字幕| 日韩欧美美女一区二区三区| 色成年激情久久综合| 国产一区二区在线观看免费| 亚洲高清免费视频| 亚洲黄色录像片| 国产精品久久久久久久久免费相片 | 国产不卡视频一区| 美国毛片一区二区三区| 亚洲大片免费看| 日韩毛片在线免费观看| 久久综合色婷婷| 欧美一级理论片| 欧美日本视频在线| 欧日韩精品视频| 91啪在线观看| 成人av第一页| 国产毛片精品视频| 美女任你摸久久| 天天影视网天天综合色在线播放| 亚洲乱码国产乱码精品精小说 | 成人性生交大片免费看视频在线| 热久久国产精品| 天堂影院一区二区| 亚洲二区视频在线| 午夜视频在线观看一区二区| 亚洲男女毛片无遮挡| 亚洲素人一区二区| **网站欧美大片在线观看| 国产精品热久久久久夜色精品三区 | 亚洲黄色录像片| 一区二区三区免费网站| 亚洲伦在线观看| 国产精品久99| 成人免费在线视频观看| 亚洲欧洲精品一区二区三区| ●精品国产综合乱码久久久久| 国产精品久久午夜| 又紧又大又爽精品一区二区| 一区二区三区免费网站| 性久久久久久久久| 日韩精品成人一区二区三区| 视频一区二区国产| 久久91精品国产91久久小草| 狠狠色综合播放一区二区| 国产在线日韩欧美| 国产91精品精华液一区二区三区 | 一区在线播放视频| 亚洲视频狠狠干| 五月天激情小说综合| 免费一区二区视频| 国产精品自拍一区| 91在线视频网址| 欧美日韩1区2区| 精品久久久久一区| 国产亲近乱来精品视频| 亚洲视频免费看| 亚洲bdsm女犯bdsm网站| 激情综合色综合久久综合| 国产精品亚洲视频| 在线亚洲免费视频| 欧美一级片免费看| 国产日韩精品视频一区| 一区二区久久久久久| 免费亚洲电影在线| 波多野结衣中文字幕一区二区三区| 欧美专区日韩专区| 日韩欧美一级特黄在线播放| 亚洲国产成人私人影院tom| 亚洲午夜免费视频| 久久丁香综合五月国产三级网站 | 伊人婷婷欧美激情| 麻豆久久久久久| 91视频.com| 日韩精品一区二区三区中文不卡| 国产欧美精品一区| 午夜精品福利一区二区三区蜜桃| 国产老肥熟一区二区三区| 在线观看国产日韩| 久久婷婷成人综合色| 亚洲电影一区二区| 成人污视频在线观看| 日韩三级视频在线观看| 18涩涩午夜精品.www| 裸体歌舞表演一区二区| 色吧成人激情小说| 国产视频视频一区| 日韩av中文在线观看| 日本高清视频一区二区| 国产亚洲综合av| 日韩中文字幕av电影| 91久久线看在观草草青青| 久久婷婷成人综合色| 天涯成人国产亚洲精品一区av| 久久婷婷久久一区二区三区| 一区二区在线看| 波多野结衣一区二区三区 | 欧美视频自拍偷拍| 中文一区二区在线观看| 久国产精品韩国三级视频| 欧美日本国产一区| 亚洲激情av在线| bt欧美亚洲午夜电影天堂| 久久综合九色综合97_久久久| 亚洲成人精品一区二区| 色婷婷综合久色| 国产欧美日韩久久| 国产一区二区电影| 久久亚洲一级片| 中日韩免费视频中文字幕| 91精品国产综合久久福利| 日韩一区二区在线观看| 亚洲资源中文字幕| 欧美艳星brazzers| 亚洲精品日产精品乱码不卡| www久久久久| 久久精品久久99精品久久| 91麻豆精品久久久久蜜臀| 午夜精品免费在线| 欧美蜜桃一区二区三区 | 亚洲va韩国va欧美va精品| 在线观看国产精品网站| 亚洲精品视频在线| 91欧美激情一区二区三区成人| 亚洲欧洲三级电影| 91视视频在线直接观看在线看网页在线看| 国产片一区二区| 成人av免费在线| 亚洲欧美偷拍三级| 日本久久一区二区三区| 亚洲精品一卡二卡| 欧美综合一区二区三区| 亚洲高清免费在线| 日韩一区二区三区视频在线观看| 美女久久久精品| 欧美激情自拍偷拍| 成人18精品视频| 亚洲国产日韩精品| 日韩视频在线永久播放| 国产呦精品一区二区三区网站| 久久色.com| jlzzjlzz亚洲日本少妇| 亚洲第一狼人社区| 欧美电影免费观看完整版| 高清视频一区二区| 亚洲精品水蜜桃| 日韩欧美在线1卡| 国产成a人亚洲| 亚洲精品中文在线观看| 日韩欧美国产小视频| 成人性视频免费网站| 午夜欧美视频在线观看| 久久久精品日韩欧美| 91福利视频久久久久|