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

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

?? imgdatajoiner.java

?? jpeg2000編解碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * CVS identifier: * * $Id: ImgDataJoiner.java,v 1.1.1.1 2002/07/22 09:26: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> * * <p>The input ImgData and component index list must be defined when * constructing this class and can not be modified later.</p> * * @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].getCompULX(cIdx[i])!=0 ||                 imD[i].getCompULY(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 getTileWidth(){	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 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.     *     * @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 tile-component     *     * @param t Tile index     *     * @param c The index of the component, from 0 to N-1.     *     * @return The width in pixels of component <tt>c</tt> in tile<tt>t</tt>.     * */    public int getTileCompWidth(int t,int c){	return imageData[c].getTileCompWidth(t,compIdx[c]);    }    /**     * Returns the height in pixels of the specified tile-component.     *     * @param t The tile index.     *     * @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 getTileCompHeight(int t,int c){	return imageData[c].getTileCompHeight(t,compIdx[c]);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本不卡一区二区三区高清视频| 久久精品夜色噜噜亚洲a∨| 亚洲欧美在线另类| 99re热这里只有精品视频| 亚洲视频一区在线观看| 在线观看网站黄不卡| 午夜激情久久久| 精品国产一区久久| 国产精品1024久久| 亚洲图片另类小说| 69精品人人人人| 国产一区二区在线看| 国产精品久久久久久久午夜片| 色婷婷精品久久二区二区蜜臀av| 午夜精品免费在线观看| 欧美成人一级视频| 97国产一区二区| 日韩av在线免费观看不卡| 337p日本欧洲亚洲大胆精品| 风间由美一区二区av101 | 成人蜜臀av电影| 伊人色综合久久天天人手人婷| 91精品国产综合久久精品图片 | 欧美一区二区性放荡片| 国产精品自拍av| 亚洲精品国产一区二区精华液 | 91激情在线视频| 日韩av电影免费观看高清完整版| 久久久国产精品不卡| 91成人免费网站| 国产福利一区二区三区在线视频| 亚洲激情图片一区| 精品国产髙清在线看国产毛片| 色综合久久久久综合99| 狂野欧美性猛交blacked| 亚洲欧洲av另类| 亚洲在线中文字幕| 精品1区2区在线观看| 在线精品视频免费播放| 国产毛片精品视频| 丝袜诱惑制服诱惑色一区在线观看| 欧美激情一区不卡| 欧美一二三区在线观看| 色婷婷亚洲精品| 懂色av一区二区三区蜜臀| 日本va欧美va瓶| 一区二区三区av电影| 欧美国产精品专区| 日韩精品中文字幕一区| 欧美日韩一区二区欧美激情 | 精品国产乱子伦一区| 在线日韩国产精品| 成人免费观看男女羞羞视频| 国内一区二区在线| 午夜不卡在线视频| 一区二区日韩av| 中文字幕中文字幕一区二区| 久久亚洲一区二区三区四区| 91精品国产综合久久久蜜臀粉嫩| 成人精品gif动图一区| 国产精品18久久久久久久网站| 日本vs亚洲vs韩国一区三区| 亚洲一区二区视频在线| 亚洲美女少妇撒尿| 亚洲欧洲av色图| 中文字幕一区在线| 中文字幕一区二区三| 国产精品视频你懂的| 国产片一区二区| 精品成人一区二区三区四区| 91精品国产欧美一区二区| 欧美系列一区二区| 欧美日韩精品一区二区在线播放| 91在线高清观看| 99re在线视频这里只有精品| 99在线视频精品| 91麻豆国产福利精品| 91在线视频在线| 色诱亚洲精品久久久久久| 国产麻豆精品在线观看| 国产一区二区三区免费在线观看| 久久99久久精品| 国产一区在线看| 国产91高潮流白浆在线麻豆| 国产一区视频导航| 粉嫩高潮美女一区二区三区| 成人黄色网址在线观看| 91在线观看污| 欧美视频一区二区在线观看| 欧美美女视频在线观看| 欧美肥胖老妇做爰| 精品国产一区二区三区忘忧草| 777奇米成人网| 精品久久人人做人人爽| 日本一区二区电影| 亚洲三级在线看| 午夜视频在线观看一区二区 | 激情国产一区二区| 精品少妇一区二区| 久久久噜噜噜久久人人看| 日本一区二区电影| 亚洲国产视频一区| 日本欧美在线看| 国产呦精品一区二区三区网站| 懂色中文一区二区在线播放| 91蝌蚪porny| 日韩精品一区二区三区视频播放| 久久你懂得1024| 亚洲激情五月婷婷| 蜜桃精品视频在线| thepron国产精品| 欧美丰满美乳xxx高潮www| 久久精品视频在线免费观看 | 亚洲第一福利视频在线| 韩国视频一区二区| 日本韩国一区二区三区视频| 日韩欧美亚洲一区二区| 国产精品污污网站在线观看| 亚洲成人精品影院| 国产精品99久久久久久久女警 | 日韩成人伦理电影在线观看| 国产米奇在线777精品观看| 91天堂素人约啪| 亚洲精品一区二区精华| 亚洲最新在线观看| 国产精品一二三在| 亚洲一区二区在线免费观看视频| 麻豆国产91在线播放| 色综合久久99| 久久久久久免费网| 三级一区在线视频先锋 | 亚洲另类中文字| 久久99热国产| 欧美性大战久久久久久久 | 99视频精品全部免费在线| 制服视频三区第一页精品| 中文字幕日韩一区二区| 精品一区二区三区在线播放视频| 欧美自拍丝袜亚洲| 国产精品人成在线观看免费| 蜜臀av性久久久久蜜臀av麻豆| 色婷婷久久久亚洲一区二区三区| 久久影院电视剧免费观看| 日韩中文字幕一区二区三区| 97se亚洲国产综合自在线观| 久久久久久久久免费| 麻豆一区二区三| 欧美日韩免费高清一区色橹橹| 亚洲欧洲三级电影| 国产另类ts人妖一区二区| 日韩一区二区免费电影| 一区二区日韩电影| 91亚洲午夜精品久久久久久| 日本一区二区成人在线| 国产精品一区二区视频| 日韩欧美一二三| 91精品1区2区| 亚洲精品国产一区二区精华液 | 国产原创一区二区| 欧美一卡2卡三卡4卡5免费| 午夜日韩在线观看| 欧美日本国产视频| 午夜欧美一区二区三区在线播放| 日本道在线观看一区二区| 亚洲裸体xxx| 91蜜桃免费观看视频| 国产精品久久久久久久久久久免费看| 国产乱码一区二区三区| 久久久精品日韩欧美| 成人做爰69片免费看网站| 国产精品天天看| 99久久精品费精品国产一区二区| 中文字幕制服丝袜一区二区三区| www.66久久| 亚洲国产欧美日韩另类综合| 欧美视频一区二区三区| 日精品一区二区| 精品国产乱码久久久久久浪潮| 精品写真视频在线观看| 国产欧美日韩综合| 99久久婷婷国产综合精品| 亚洲欧美日韩系列| 欧美日韩国产精选| 麻豆一区二区三| 久久久噜噜噜久久中文字幕色伊伊| 丰满亚洲少妇av| 亚洲精品网站在线观看| 欧美网站大全在线观看| 免费在线看成人av| 久久久精品国产免费观看同学| 成人aaaa免费全部观看| 亚洲精品视频在线看| 欧美一区二区播放| 国产99久久久精品| 亚洲一区二区视频| 日韩欧美你懂的| 99re视频这里只有精品| 日韩不卡免费视频| 国产精品网站在线| 欧美精品乱人伦久久久久久|