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

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

?? encoder.java

?? jpeg2000算法實現(xiàn)
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
                      ((e.getMessage() != null) ?                       (":\n"+e.getMessage()) : ""),2);                if(pl.getParameter("debug").equals("on"))                    e.printStackTrace();                else {                    error("Use '-debug' option for more details",2);                }                return;            }            // Instantiate the HeaderEncoder            headenc = new HeaderEncoder(imgsrc,imsigned,dwt,imgtiler,encSpec,                                        rois,ralloc);	    ralloc.setHeaderEncoder(headenc);            // **** Write header to be able to estimate header overhead ****            headenc.encodeMainHeader();            // **** Initialize rate allocator, with proper header            // overhead. This will also encode all the data ****            ralloc.initialize();            // **** Write header (final) ****            headenc.reset();            headenc.encodeMainHeader();            // Insert header into the codestream            bwriter.commitBitstreamHeader(headenc);            // **** Report info ****            if (verbose) {                // Print target rate info                FacilityManager.getMsgLogger().                    println("Target bitrate = "+rate+" bpp (i.e. "+                            (int)(rate*imgsrc.getImgWidth()                                  *imgsrc.getImgHeight()/8)+ " bytes)",4,6);            }            // **** Now do the rate-allocation and write result ****            ralloc.runAndWrite();            // **** Done ****            bwriter.close();            // **** Calculate file length ****            fileLength = bwriter.getLength();            // **** Tile-parts and packed packet headers ****            if(pktspertp>0 || pphTile || pphMain){                int headInc;                try{                    CodestreamManipulator cm = new                         CodestreamManipulator(outname, ntiles, pktspertp,                                              pphMain, pphTile, tempSop,                                              tempEph);                    fileLength += cm.doCodestreamManipulation();                    String res="";                    if(pktspertp>0)                        FacilityManager.                            getMsgLogger().println("Created tile-parts "+                                                   "containing at most "+                                                   pktspertp+                                                   " packets per tile.",4,6);                    if(pphTile)                        FacilityManager.getMsgLogger().                            println("Moved packet headers "+                                    "to tile headers",4,6);                    if(pphMain)                        FacilityManager.getMsgLogger().                            println("Moved packet headers "+                                    "to main header",4,6);                }                catch(IOException e){                    error("Error while creating tileparts or packed packet"+                          " headers"+                          ((e.getMessage() != null) ?                           (":\n"+e.getMessage()) : ""),2);                    if(pl.getParameter("debug").equals("on"))                        e.printStackTrace();                    else {                        error("Use '-debug' option for more details",2);                    }                    return;                }            }                            // **** File Format ****            if(useFileFormat){                try{                    int nc= imgsrc.getNumComps() ;                    int[] bpc=new int[nc];                    for(int comp = 0; comp<nc; comp++)                        bpc[comp]=imgsrc.getNomRangeBits(comp);                                        ffw = new FileFormatWriter(outname,                                                imgsrc.getImgHeight(),                                               imgsrc.getImgWidth(), nc, bpc,                                               fileLength);                    fileLength += ffw.writeFileFormat();                }                catch(IOException e){                    throw new Error("Error while writing JP2 file format");                }            }            // **** Report results ****            if (verbose) {                // Print achieved rate                FacilityManager.getMsgLogger().                    println("Achieved bitrate = "+                             (8f*fileLength/                             (imgsrc.getImgWidth()*imgsrc.getImgHeight())) +                            " bpp (i.e. "+fileLength+" bytes)",4,6);                // Display ROI information if needed                if(pl.getParameter("Rroi")!=null && !useFileFormat &&                    pl.getIntParameter("tile_parts")==0 ) {                    int roiLen = bwriter.getOffLastROIPkt();                    FacilityManager.getMsgLogger().                        printmsg(MsgLogger.INFO,"The Region Of Interest is"+                                 " encoded in the first "+                                 roiLen+" bytes of the codestream (i.e "+                                 (8f*roiLen/(imgsrc.getImgWidth()*                                             imgsrc.getImgHeight()))+" bpp)");                                    }            }        }	catch(IllegalArgumentException e){	    error(e.getMessage(),2);            if(pl.getParameter("debug").equals("on"))                e.printStackTrace();	    return;	}        catch (Error e) {            error("An uncaught error has occurred: "+e.getMessage(),2);            if(pl.getParameter("debug").equals("on"))                e.printStackTrace();            else {                error("Use '-debug' option for more details",2);            }        }        catch (RuntimeException e) {            error("An uncaught runtime exception has occurred: "+                  e.getMessage(),2);            if(pl.getParameter("debug").equals("on"))                e.printStackTrace();            else {                error("Use '-debug' option for more details",2);            }        }        catch (Throwable e) {            error("An unchecked exception has occurred: "+                  e.getMessage(),2);            if(pl.getParameter("debug").equals("on"))                e.printStackTrace();            else {                error("Use '-debug' option for more details",2);            }            return;        }    }    /**     * 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 4     * elements. The first element is the option name, the second one     * is the synopsis, the third one is a long description of what     * the parameter is and the fourth is its default value. 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 all the parameters used in the encoding chain. It calls     * parameter from each module and store them in one array (one row     * per parameter and 4 columns).     *     * @return All encoding parameters     *     * @see #getParameterInfo     * */    public static String[][] getAllParameters(){        Vector vec = new Vector();                String[][] str = getParameterInfo();        if(str!=null)            for(int i=str.length-1; i>=0; i--)                vec.addElement(str[i]);                str = ForwCompTransf.getParameterInfo();        if(str!=null)            for(int i=str.length-1; i>=0; i--)                vec.addElement(str[i]);                str = AnWTFilter.getParameterInfo();        if(str!=null)            for(int i=str.length-1; i>=0; i--)                vec.addElement(str[i]);                str = ForwardWT.getParameterInfo();        if(str!=null)            for(int i=str.length-1; i>=0; i--)                vec.addElement(str[i]);                str = Quantizer.getParameterInfo();        if(str!=null)            for(int i=str.length-1; i>=0; i--)                vec.addElement(str[i]);                str = ROIScaler.getParameterInfo();        if(str!=null)            for(int i=str.length-1; i>=0; i--)                vec.addElement(str[i]);                str = EntropyCoder.getParameterInfo();	if(str!=null)	    for(int i=str.length-1; i>=0; i--)		vec.addElement(str[i]);        	str = PostCompRateAllocator.getParameterInfo();	if(str!=null)	    for(int i=str.length-1; i>=0; i--)		vec.addElement(str[i]);                str = PktEncoder.getParameterInfo();	if(str!=null)            for(int i=str.length-1; i>=0; i--)                vec.addElement(str[i]);        	str = new String[vec.size()][4];	if(str!=null)	    for(int i=str.length-1; i>=0; i--)		str[i] = (String[])vec.elementAt(i);        	return str;    }        /**     * Prints the error message 'msg' to standard err, prepending "ERROR" to     * it, and sets the exitCode to 'code'. An exit code different than 0     * indicates that there where problems.     *     * @param msg The error message     *     * @param code The exit code to set     * */    private void error(String msg, int code) {        exitCode = code;        FacilityManager.getMsgLogger().printmsg(MsgLogger.ERROR,msg);    }    /**     * Prints the warning message 'msg' to standard err, prepending "WARNING"     * to it.     *     * @param msg The error message     * */    private void warning(String msg) {        FacilityManager.getMsgLogger().printmsg(MsgLogger.WARNING,msg);    }    /**     * Prints version and copyright information to stdout, using the     * MsgPrinter.     * */    private void printVersionAndCopyright() {        FacilityManager.getMsgLogger()            .println("JJ2000's JPEG 2000 Encoder\n",2,4);        FacilityManager.getMsgLogger()            .println("Version: "+JJ2KInfo.version+"\n",2,4);        FacilityManager.getMsgLogger()            .println("Copyright:\n\n"+JJ2KInfo.copyright+"\n",2,4);        FacilityManager.getMsgLogger()            .println("Send bug reports to: "+JJ2KInfo.bugaddr+"\n",2,4);    }    /**     * Prints the usage information to stdout. The usage information     * is written for all modules in the encoder.     * */    private void printUsage() {        String opts[][];        int i;        MsgLogger ml = FacilityManager.getMsgLogger();        ml.println("Usage:",0,0);        ml.println("JJ2KEncoder args...\n",10,12);        ml.println("The exit code of the encoder is non-zero "+                   "if an error occurs.\n",2,4);        ml.println("Note: Many encoder modules accept tile-component "+                   "specific parameters. These parameters must be provided "+                   "according to the pattern:\n \"[<tile-component idx>] "+                   "<param>\" (repeated as many time as needed). ",2,4);        ml.println("\n"+                   "<tile-component idx> respect the following policy"+                   " according to the degree of priority: \n"+                   "  (1) t<idx> c<idx> : Tile-component specification.\n"+                   "  (2) t<idx> : Tile specification.\n"+                   "  (3) c<idx> : Component specification\n"+                   "  (4) <void> : Default specification.\n\n"+                   "Where the priorities of the specifications are:\n"+                   "(1) > (2) > (3) > (4), (\'>\' means \"overrides\")\n",2,4);        ml.println("  <idx>: ',' separates indexes, '-' separates bounds of "+                   "indexes list. (ex: 0,2-4 means indexes 0,2,3 and "+                   " 4).\n",2,4);        ml.println("The following arguments are recognized:",2,4);                // Info of each encoder parameter        printParamInfo(ml,getAllParameters());        // Print bug-report address        FacilityManager.getMsgLogger().println("\n\n",0,0);        FacilityManager.getMsgLogger().            println("Send bug reports to: "+JJ2KInfo.bugaddr+"\n",2,4);    }            /**     * Prints the parameters in 'pinfo' to the provided output, 'out', showing     * the existing defaults. The 'pinfo' argument is a 2D String array. The     * first dimension contains String arrays, 1 for each parameter. Each of     * these arrays has 3 elements, the first element is the parameter name,     * the second element is the synopsis for the parameter and the third one     * is a long description of the parameter. If the synopsis or description     * is 'null' then no synopsis or description is printed, respectively. If     * there is a default value for a parameter it is also printed.     *     * @param out Where to print.     *     * @param pinfo The parameter information to write.     * */    private void printParamInfo(MsgLogger out, String pinfo[][]) {        String defval;        if (pinfo == null) {            return;        }        for (int i=0; i<pinfo.length; i++) {            defval = defpl.getParameter(pinfo[i][0]);            if (defval != null) { // There is a default value                out.println("-" + pinfo[i][0] +                         ((pinfo[i][1] != null) ? " "+pinfo[i][1]+" " : " ") +                         "(default = "+defval+")",4,8);            }            else { // There is no default value                out.println("-" + pinfo[i][0] +                         ((pinfo[i][1] != null) ? " "+pinfo[i][1] : ""),4,8);            }            // Is there an explanatory message?            if (pinfo[i][2] != null) {                out.println(pinfo[i][2],6,6);            }        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久先锋影音av鲁色资源网| 26uuu色噜噜精品一区| 久久99蜜桃精品| 亚洲欧美自拍偷拍色图| 欧美另类高清zo欧美| 成人精品gif动图一区| 日韩成人精品在线| 亚洲精品国产a| 国产欧美一区二区三区鸳鸯浴| 在线国产亚洲欧美| 成人动漫中文字幕| 久久精品国产一区二区| 亚洲自拍偷拍麻豆| 国产精品久久久久久久久久免费看 | 亚洲国产激情av| 91麻豆精品国产91久久久久久久久| 99re这里都是精品| 国产酒店精品激情| 久久精品国产色蜜蜜麻豆| 一卡二卡欧美日韩| 亚洲婷婷在线视频| 国产女同性恋一区二区| 精品国产凹凸成av人导航| 91精品午夜视频| 欧美日本视频在线| 欧美日韩另类一区| 欧美影院午夜播放| 欧洲中文字幕精品| 欧美视频你懂的| 欧美在线观看一区| 欧美自拍偷拍午夜视频| 色94色欧美sute亚洲线路二| 91丝袜美腿高跟国产极品老师| 成人毛片在线观看| 成人毛片视频在线观看| 成人sese在线| 91亚洲精华国产精华精华液| 91色porny蝌蚪| 色悠久久久久综合欧美99| 99久久99久久精品国产片果冻| 粉嫩嫩av羞羞动漫久久久 | 欧美午夜宅男影院| 99视频在线精品| 不卡一区二区中文字幕| 国产精品综合一区二区三区| 麻豆久久久久久| 亚洲一区二区不卡免费| 亚洲国产一区视频| 亚洲一区二区三区视频在线| 亚洲一区二区三区四区的| 亚洲精品少妇30p| 亚洲视频网在线直播| 中文字幕av一区二区三区| 久久免费的精品国产v∧| 欧美日韩高清在线播放| 欧美天堂一区二区三区| 欧美亚洲免费在线一区| 91黄色免费网站| 欧美日韩综合不卡| 欧美日韩精品系列| 欧美日韩不卡一区二区| 91.麻豆视频| 日韩欧美国产精品| 日韩欧美精品在线视频| 欧美一区二区三区在线看| 日韩亚洲欧美在线| 日韩午夜电影av| 久久丝袜美腿综合| 中文字幕av在线一区二区三区| 久久久99久久| 最新成人av在线| 亚洲第一在线综合网站| 青青草国产精品亚洲专区无| 久久99热狠狠色一区二区| 国产一区二区看久久| 粗大黑人巨茎大战欧美成人| 成人高清在线视频| 91黄色免费网站| 欧美精品自拍偷拍动漫精品| 精品免费日韩av| 久久久国产一区二区三区四区小说| 中文字幕国产一区| 亚洲人成7777| 日韩激情中文字幕| 黄色小说综合网站| 国产98色在线|日韩| 色网综合在线观看| 日韩一区二区视频在线观看| 日韩免费观看2025年上映的电影| 欧美性猛交xxxx乱大交退制版 | 国产精品三级av| 亚洲va韩国va欧美va| 国内成人自拍视频| 97se亚洲国产综合在线| 91精品国产综合久久久久久久久久 | 久久99久久久久久久久久久| 国产剧情av麻豆香蕉精品| 99久久国产免费看| 欧美一区二区三区免费观看视频| 久久精品视频网| 亚洲乱码国产乱码精品精小说| 日韩精品免费视频人成| 懂色一区二区三区免费观看 | 成人福利视频在线看| 欧美日韩国产美女| 日本一区二区免费在线观看视频| 一区二区三区中文免费| 国内精品伊人久久久久影院对白| 成人免费精品视频| 亚洲精品一区二区三区福利| 亚洲黄色片在线观看| 国内精品在线播放| 欧美日韩亚洲综合在线| 欧美激情一区二区三区| 日本欧美肥老太交大片| 91视频你懂的| 久久青草国产手机看片福利盒子 | 亚洲一区在线观看网站| 国产成人在线视频免费播放| 欧美日韩国产免费一区二区| wwww国产精品欧美| 日韩二区三区四区| 色婷婷综合在线| 日韩免费看的电影| 亚洲电影在线免费观看| 成人av免费网站| 精品久久国产字幕高潮| 亚洲va欧美va人人爽| 97精品电影院| 国产欧美一区二区精品忘忧草 | 精品精品国产高清a毛片牛牛| 亚洲日本在线视频观看| 国产伦理精品不卡| 精品少妇一区二区三区日产乱码| 亚洲永久免费视频| 成人app在线观看| 欧美成人综合网站| 麻豆国产精品777777在线| 欧美精品亚洲一区二区在线播放| 亚洲免费观看在线观看| 9l国产精品久久久久麻豆| 国产亚洲一区二区在线观看| 久久99久久99精品免视看婷婷| 欧美精品乱码久久久久久按摩| 亚洲综合999| 一本久久精品一区二区| 亚洲女人小视频在线观看| 首页亚洲欧美制服丝腿| 欧美精品三级在线观看| 亚洲国产日韩综合久久精品| 91亚洲精品一区二区乱码| 国产精品久久久久一区| 成人午夜看片网址| 26uuu国产日韩综合| 日本女优在线视频一区二区| 日韩欧美电影在线| 极品美女销魂一区二区三区免费 | 色综合婷婷久久| 国产日韩亚洲欧美综合| 91亚洲国产成人精品一区二区三 | av电影一区二区| 久久久久9999亚洲精品| 视频一区中文字幕国产| 欧美一区二区精品| 国产一区二区三区黄视频 | 亚洲在线一区二区三区| 欧美日韩二区三区| 日本欧美一区二区在线观看| 日韩一区二区三区视频| 国产自产高清不卡| 久久午夜免费电影| 成人97人人超碰人人99| 一区二区三区欧美在线观看| 欧美视频在线不卡| 久久精品国内一区二区三区| 精品国精品国产| 成人黄页毛片网站| 亚洲激情在线激情| 91麻豆精品91久久久久同性| 亚洲成人手机在线| 日本韩国精品在线| 午夜精品视频一区| 精品国产乱码久久久久久闺蜜| 国产成人综合在线观看| 亚洲乱码一区二区三区在线观看| 在线成人免费视频| 国产精品99久久久久久似苏梦涵 | 极品销魂美女一区二区三区| 亚洲特级片在线| 欧美一区二区三级| 国产suv精品一区二区6| 亚洲精品免费一二三区| 日韩视频免费观看高清在线视频| 国产精品亚洲成人| 亚洲一区二区三区在线| 亚洲精品在线观| 色香色香欲天天天影视综合网| 一区二区三区不卡视频在线观看| 国产亚洲精品精华液| 欧美视频日韩视频在线观看|