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

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

?? nativeservices.java

?? jpeg2000編解碼
?? JAVA
字號:
/*  * CVS identifier: *  * $Id: NativeServices.java,v 1.1.1.1 2002/07/22 09:26:53 grosbois Exp $ *  * Class:                   NativeServices *  * Description:             Static methods allowing to access to some *                          native services. It uses native methods. *  *  *  * 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.util;/** * This class presents a collection of static methods that allow access to * some native methods. It makes use of native methods to access those thread * properties. * * <P>Since the methods in this class require the presence of a shared library * with the name defined in SHLIB_NAME it is necessary to load it prior to * making use of any such methods. All methods that require the shared library * will automatically load the library if that has not been already done. The * library might also be manually loaded with the 'loadLibrary()' method of * this class. * * <P>This class provides only static methods. It should not be instantiated. * * <P>Currently the only native services available is settings relative to * POSIX threads, which are not accessible from the Java API. * * <P>Currently the methods in this class make sense with POSIX threads only, * since they access POSIX threads settings. POSIX threads are most used under  * UNIX and UNIX-like operating systems and are mostly referred to as "native"  * threads in Java Virtual Machine (JVM) implementations. * * <P>The shared library SHLIB_NAME uses functions of the POSIX thread library * (i.e. 'pthread'). Calling the methods that use the 'pthread' library will * most prbably cause the Java Virtual Machine (JVM) to crash if it is not * using the POSIX threads, due to unsatisfied references. For instance, JVMs * that use "green" threads will most certainly crash. POSIX threads are * referred to as "native" threads in JVMs under UNIX operating systems. * * <P>On Operating Systems where POSIX threads are not available (typically * Windows 95/98/NT/2000, MacIntosh, OS/2) there is no problem since the * SHLIB_NAME, if available, will not make use of POSIX threads library * functions, thus no problem should occur. * */public final class NativeServices {    /** The name of the shared library containing the implementation of the     * native methods: 'jj2000'. The actual file name of the library is system      * dependent. Under UNIX it will be 'libjj2000.so', while under Windows it      * will be 'jj2000.dll'.     * */    public static final String SHLIB_NAME = "jj2000";    /** The state of the library loading */    private static int libState;    /**     * Library load state ID indicating that no attept to load the library has     * been done yet.  */    private final static int LIB_STATE_NOT_LOADED = 0;    /**     * Library load state ID indicating that the library was successfully     * loaded. */    private final static int LIB_STATE_LOADED = 1;    /**     * Library load state ID indicating that an attempt to load the library     * was done and that it could not be found. */    private final static int LIB_STATE_NOT_FOUND = 2;    /**     * Private and only constructor, so that no class instance might be     * created. Since all methods are static creating a class instance is     * useless. If called it throws an 'IllegalArgumentException'.     * */    private NativeServices() {        throw new IllegalArgumentException("Class can not be instantiated");    }    /**     * Sets the concurrency level of the threading system of the Java Virtual     * Machine (JVM) to the specified level. The concurrency level specifies     * how many threads can run in parallel on different CPUs at any given     * time for JVM implementations that use POSIX threads with     * PTHREAD_SCOPE_PROCESS scheduling scope. A concurrency level of 0 means     * that the operating system will automatically adjust the concurrency     * level depending on the number of threads blocking on system calls, but     * this will probably not exploit more than one CPU in multiporocessor     * machines. If the concurrency level if set to more than the number of     * available processors in the machine the performance might degrade.     *     * <P>For JVM implementations that use POSIX threads with     * PTHREAD_SCOPE_SYSTEM scheduling scope or JVM implementations that use     * Windows(R) threads and maybe others, setting the concurrency level has     * no effect. In this cases the number of CPUs that can be exploited by     * the JVM is not limited in principle, all CPUs are available to the JVM.     *     * <P>For JVM implementations that use "green" threads setting the     * concurrency level, and thus calling this method, makes no sense, since     * "green" threads are all contained in one user process and can not use     * multiple CPUs. In fact calling this method can result in a JVM crash is      * the shared library SHLIB_NAME has been compiled to use POSIX threads.     *     * @param n The new concurrency level to set.     *     * @exception IllegalArgumentException Concurrency level is negative     *     * @exception UnsatisfiedLinkError If the shared native library     * implementing the functionality could not be loaded.     * */    public static void setThreadConcurrency(int n) {        // Check that the library is loaded        checkLibrary();        // Check argument        if (n < 0) throw new IllegalArgumentException();        // Set concurrency with native method        setThreadConcurrencyN(n);    }    /**     * Calls the POSIX threads 'pthread_setconcurrency', or equivalent,     * function with 'level' as the argument.     * */    private static native void setThreadConcurrencyN(int level);    /**     * Returns the current concurrency level. See 'setThreadConcurrency' for     * details on the meaning of concurrency     *     * @return The current concurrency level     *     * @see #setThreadConcurrency     * */    public static int getThreadConcurrency() {        // Check that the library is loaded        checkLibrary();        // Return concurrency from native method        return getThreadConcurrencyN();    }    /**     * Calls the POSIX threads 'pthread_getconcurrency', or equivalent,     * function and return the result.     *     * @return The current concurrency level.     * */    private static native int getThreadConcurrencyN();    /**     * Loads the shared library implementing the native methods of this     * class and returns true on success. Multiple calls to this method after     * a successful call have no effect and return true. Multiple calls to     * this method after unsuccesful calls will make new attempts to load the     * library.     *     * @return True if the libary could be loaded or is already loaded. False     * if the library can not be found and loaded.     * */    public static boolean loadLibrary() {        // If already loaded return true without doing anything        if (libState == LIB_STATE_LOADED) return true;        // Try to load the library        try {            System.loadLibrary(SHLIB_NAME);        } catch (UnsatisfiedLinkError e) {            // Library was not found            libState = LIB_STATE_NOT_FOUND;            return false;        }        // Library was found        libState = LIB_STATE_LOADED;        return true;    }    /**     * Checks if the library SHLIB_NAME is already loaded and attempts to load     * if not yet loaded. If the library can not be found (either in a     * previous attempt to load it or in an attempt in this method) an     * 'UnsatisfiedLinkError' exception is thrown.     *     * @exception UnsatisfiedLinkError If the library SHLIB_NAME can not be     * found.     * */    private static void checkLibrary() {        switch (libState) {        case LIB_STATE_LOADED: // Already loaded, nothing to do            return;        case LIB_STATE_NOT_LOADED: // Not yet loaded => load now            // If load successful break, otherwise continue to the            // LIB_STATE_NOT_LOADED state            if (loadLibrary()) break;        case LIB_STATE_NOT_FOUND: // Could not be found, throw exception            throw new UnsatisfiedLinkError("NativeServices: native shared "+                                           "library could not be loaded");        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国模少妇一区二区三区| 欧美精品第一页| 日韩高清欧美激情| 亚洲激情图片一区| 亚洲精选视频免费看| 中文字幕第一区二区| 国产偷国产偷精品高清尤物| 精品福利视频一区二区三区| 日韩欧美激情四射| 日韩一区二区三免费高清| 7777精品久久久大香线蕉 | 欧美日本不卡视频| 欧美日韩你懂的| 欧美女孩性生活视频| 欧美久久一二区| 日韩精品中文字幕在线不卡尤物 | 午夜免费久久看| 午夜精品福利久久久| 日韩主播视频在线| 狠狠色伊人亚洲综合成人| 极品少妇一区二区| 国产suv精品一区二区883| 成人国产精品视频| 91美女福利视频| 在线91免费看| 国产亚洲午夜高清国产拍精品| 久久影院电视剧免费观看| 国产精品乱人伦| 日本伊人色综合网| 国产精品一区二区在线观看网站 | 99久久精品免费精品国产| 99re热这里只有精品视频| 一本大道久久精品懂色aⅴ| 欧美群妇大交群中文字幕| 欧美α欧美αv大片| 国产精品灌醉下药二区| 午夜激情一区二区三区| 国产主播一区二区三区| 91蜜桃网址入口| 欧美成人性战久久| 成人欧美一区二区三区黑人麻豆 | 欧美一级精品大片| 国产精品久久久久婷婷二区次| 一区二区三区在线视频免费| 国产一区三区三区| 色八戒一区二区三区| 久久影视一区二区| 亚洲电影中文字幕在线观看| 国产麻豆精品久久一二三| 欧美色综合久久| 久久精品亚洲国产奇米99| 亚洲一区成人在线| 国产91在线|亚洲| 91.com在线观看| 亚洲乱码国产乱码精品精小说| 麻豆国产91在线播放| 欧美日韩色一区| 自拍偷拍欧美激情| 国产精品亚洲专一区二区三区 | 欧美日韩高清一区二区三区| 欧美国产日韩精品免费观看| 奇米影视7777精品一区二区| 欧美三级在线视频| 亚洲欧美另类久久久精品2019| 国产专区欧美精品| 日韩欧美一级在线播放| 亚洲va欧美va人人爽| 不卡的电影网站| 久久精品欧美日韩| 国产一区亚洲一区| 精品入口麻豆88视频| 男男gaygay亚洲| 欧美高清激情brazzers| 亚洲激情欧美激情| 91小视频免费观看| 国产精品国产馆在线真实露脸| 国产高清亚洲一区| 国产亚洲精品资源在线26u| 麻豆专区一区二区三区四区五区| 69精品人人人人| 日韩不卡一区二区三区| 欧美日韩另类一区| 亚洲第一综合色| 欧美日韩高清影院| 日韩一区精品视频| 91精品国产乱码| 另类小说欧美激情| 国产欧美一区二区精品性色超碰| 国精产品一区一区三区mba桃花| 欧美tickling网站挠脚心| 国产一区二区三区香蕉| 久久久精品tv| 99精品偷自拍| 午夜精品视频在线观看| 91麻豆精品国产91久久久久久| 亚洲第一成人在线| 精品国产a毛片| 不卡的av网站| 亚洲国产美国国产综合一区二区| 欧美一区二区美女| 国产一区二区三区蝌蚪| 一区免费观看视频| 欧美性猛交xxxx乱大交退制版| 日日骚欧美日韩| 国产欧美日韩不卡免费| 日本福利一区二区| 欧美aⅴ一区二区三区视频| 精品国产乱码久久久久久闺蜜| 国产宾馆实践打屁股91| 日韩理论片网站| 日韩视频免费观看高清在线视频| 国产一区二区视频在线播放| 综合电影一区二区三区 | 性做久久久久久免费观看| 欧美一区二区三级| 成人一区二区三区| 婷婷综合五月天| 国产清纯白嫩初高生在线观看91 | 精品国产一区二区三区av性色| 粉嫩av亚洲一区二区图片| 亚洲国产成人高清精品| 久久色.com| 欧美日韩在线一区二区| 国产白丝精品91爽爽久久| 亚洲已满18点击进入久久| 久久综合久久综合九色| 欧美性欧美巨大黑白大战| 国产一区二区视频在线| 丝袜脚交一区二区| 亚洲视频中文字幕| 精品久久久久久久一区二区蜜臀| 91成人在线精品| 成人午夜电影网站| 韩国精品主播一区二区在线观看| 亚洲激情图片小说视频| 国产精品美女视频| 欧美大片一区二区| 欧美日韩三级在线| 色激情天天射综合网| 成人免费视频一区| 精品在线亚洲视频| 日韩不卡免费视频| 亚洲永久精品大片| 亚洲精品国产品国语在线app| 国产欧美日韩另类视频免费观看| 这里只有精品免费| 欧美日韩在线精品一区二区三区激情| 波波电影院一区二区三区| 韩国欧美一区二区| 韩国成人福利片在线播放| 人妖欧美一区二区| 日本美女一区二区| 日韩精品电影一区亚洲| 亚洲国产日韩在线一区模特 | 欧美日韩dvd在线观看| 91在线视频播放地址| 成人免费电影视频| 成人动漫中文字幕| 99这里只有久久精品视频| 风间由美一区二区三区在线观看 | 国产精品人妖ts系列视频 | 成人听书哪个软件好| 国产在线精品一区在线观看麻豆| 蜜臀99久久精品久久久久久软件| 三级欧美韩日大片在线看| 天天综合色天天| 精品在线免费视频| 国产馆精品极品| 99国产精品一区| 欧美综合视频在线观看| 欧美日韩二区三区| 日韩欧美一二三| 久久精品一区八戒影视| 亚洲色图欧洲色图| 一区二区三区毛片| 日韩精品久久理论片| 激情综合色播激情啊| 国产精品1区2区3区在线观看| 成人一区在线看| 欧美无砖砖区免费| 日韩视频一区二区三区在线播放| 26uuu精品一区二区| 自拍视频在线观看一区二区| 亚洲一区二区不卡免费| 久久精品国产久精国产| 高清视频一区二区| 欧美日精品一区视频| 欧美成人一区二区三区| 中文字幕一区二区三区av| 午夜精品一区二区三区免费视频 | 亚洲日本一区二区| 香蕉影视欧美成人| 国内精品视频666| 日本高清不卡aⅴ免费网站| 欧美一区二区三区在线| 一区在线观看视频| 青青草原综合久久大伊人精品优势| 国产成人精品三级| 欧美区视频在线观看| 欧美国产成人精品|