亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲品质自拍视频| 精品国产凹凸成av人导航| 激情av综合网| 日韩成人伦理电影在线观看| 亚洲成av人在线观看| 亚洲午夜激情网页| 亚洲r级在线视频| 伊人夜夜躁av伊人久久| 亚洲精品精品亚洲| 亚洲福利国产精品| 亚洲成人免费电影| 日韩成人一区二区| 精品一区二区成人精品| 国产成人aaaa| 成人h精品动漫一区二区三区| 一色屋精品亚洲香蕉网站| 国产精品天天看| 一色桃子久久精品亚洲| 亚洲国产成人精品视频| 日本不卡不码高清免费观看| 久久福利视频一区二区| 国产成人综合视频| 色噜噜狠狠一区二区三区果冻| 欧美亚洲精品一区| 日韩一二三四区| 国产精品拍天天在线| 一区二区三区中文字幕| 香蕉成人伊视频在线观看| 久久激情综合网| 成人av在线播放网址| 91久久香蕉国产日韩欧美9色| 在线播放中文字幕一区| 久久精品视频免费| 亚洲国产成人91porn| 久久精品国产在热久久| 99精品视频在线播放观看| 91精品国产综合久久精品麻豆| 精品91自产拍在线观看一区| 亚洲日本电影在线| 久久99这里只有精品| 99精品久久久久久| 337p粉嫩大胆噜噜噜噜噜91av| 中文字幕一区在线观看视频| 奇米色一区二区三区四区| 成人免费观看视频| 制服.丝袜.亚洲.另类.中文| 国产精品麻豆视频| 日韩不卡在线观看日韩不卡视频| 成人精品视频一区二区三区尤物| 欧美日韩精品免费| 综合久久综合久久| 久久精品99国产精品日本| 日本道在线观看一区二区| 久久久久久日产精品| 天堂在线一区二区| 色哟哟在线观看一区二区三区| 精品国产一区二区三区忘忧草| 亚洲成人一区二区在线观看| 成人18视频在线播放| 欧美精品一区二区三| 五月天激情综合| 91日韩精品一区| 国产婷婷色一区二区三区在线| 日韩经典一区二区| 69堂精品视频| 亚洲一区二区在线免费观看视频| 盗摄精品av一区二区三区| 2022国产精品视频| 精品一二三四区| 日韩精品一区二区三区四区| 视频一区视频二区在线观看| 在线观看日韩电影| 亚洲精品日日夜夜| 色哦色哦哦色天天综合| 国产精品国产三级国产普通话蜜臀 | 国产精品久久久一本精品| 久久国产精品99久久久久久老狼| 91麻豆精品国产91久久久| 亚洲综合一二区| 91国偷自产一区二区三区观看 | 国产成人精品免费在线| 精品久久国产97色综合| 免费观看久久久4p| 精品精品国产高清a毛片牛牛 | www国产成人| 国产精品综合在线视频| 国产日韩欧美高清| 97成人超碰视| 亚洲成精国产精品女| 欧美亚洲禁片免费| 日韩和欧美一区二区| 日韩一区二区免费在线观看| 免费亚洲电影在线| 久久婷婷国产综合国色天香 | 成人深夜视频在线观看| 亚洲欧洲精品一区二区三区| 91蜜桃传媒精品久久久一区二区| 亚洲免费伊人电影| 欧美色图激情小说| 免费不卡在线观看| 久久精品免费在线观看| 99精品国产一区二区三区不卡| 亚洲精品水蜜桃| 欧美日韩精品欧美日韩精品一 | 国产欧美视频一区二区| av资源网一区| 视频一区欧美日韩| 国产清纯在线一区二区www| 91原创在线视频| 日本中文在线一区| 亚洲国产精品高清| 欧美日韩免费电影| 国产精品亚洲午夜一区二区三区| 国产精品久久久久影院亚瑟| 欧美日本一区二区三区四区| 激情国产一区二区| 亚洲欧洲综合另类| 精品伦理精品一区| 99国内精品久久| 久久97超碰国产精品超碰| 亚洲欧洲成人自拍| 欧美成人一区二区三区| 成人avav在线| 免费成人你懂的| 最新中文字幕一区二区三区| 这里只有精品电影| 成人h精品动漫一区二区三区| 精品久久人人做人人爽| 国产成人一区二区精品非洲| 亚洲愉拍自拍另类高清精品| 在线看国产一区| 亚洲一区二区美女| 欧美肥大bbwbbw高潮| 久久精品国产澳门| 日韩精品一区二区三区中文不卡| 精品福利一二区| 国产乱人伦偷精品视频不卡| 亚洲一区二区在线播放相泽| 亚洲一区在线观看免费| 一区二区不卡在线播放 | 中文字幕一区视频| **网站欧美大片在线观看| 国产亲近乱来精品视频| 亚洲图片你懂的| 亚洲图片自拍偷拍| 经典三级视频一区| 欧美日韩免费高清一区色橹橹| 色一情一伦一子一伦一区| 欧美美女网站色| 中文字幕一区二区三区色视频| 亚洲狠狠丁香婷婷综合久久久| 国产高清精品久久久久| 日本伊人午夜精品| 久久国产视频网| 色婷婷综合在线| 日韩欧美国产午夜精品| 国产精品久久久久国产精品日日| 一区二区三区**美女毛片| 国产成人在线电影| 欧美日韩精品福利| 亚洲va欧美va天堂v国产综合| 91碰在线视频| 性做久久久久久免费观看| 国产成人在线看| 制服.丝袜.亚洲.中文.综合| 国产日韩亚洲欧美综合| 国产精品2024| 99久久99久久久精品齐齐| 欧美一区二区三区在| 国产蜜臀av在线一区二区三区| 精品美女在线观看| 国产精品天天摸av网| 国产综合色视频| 日本欧洲一区二区| 欧美中文字幕亚洲一区二区va在线| 日韩美女一区二区三区| 欧美大尺度电影在线| 亚洲欧美国产77777| 亚洲6080在线| 91麻豆福利精品推荐| 这里只有精品99re| 亚洲激情六月丁香| 国产成人午夜视频| 精品国产免费视频| 亚洲午夜精品网| 国产综合成人久久大片91| 日本乱码高清不卡字幕| 国产亚洲欧美在线| 极品少妇一区二区三区精品视频| 色婷婷一区二区| 国产精品久久久久三级| 麻豆精品精品国产自在97香蕉 | 欧美精品一区二区三区蜜桃| 亚洲国产cao| 欧美三级视频在线| 亚洲综合无码一区二区| 欧美天堂一区二区三区| 日韩一区日韩二区| 国产精品99久久久| 国产日韩欧美制服另类|