sun.java2d.cmm.PCMM Java Examples

The following examples show how to use sun.java2d.cmm.PCMM. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ICC_Profile.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #2
Source File: LCMS.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}
 
Example #3
Source File: ICC_Profile.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #4
Source File: ICC_Profile.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #5
Source File: ICC_Profile.java    From Java8CN with Apache License 2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #6
Source File: ICC_Profile.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #7
Source File: ICC_Profile.java    From Java8CN with Apache License 2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #8
Source File: LCMS.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}
 
Example #9
Source File: ICC_Profile.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #10
Source File: ICC_Profile.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #11
Source File: ICC_Profile.java    From jdk-1.7-annotated with Apache License 2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(ID);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(ID, profileData);

    return profileData;
}
 
Example #12
Source File: ICC_Profile.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #13
Source File: LCMS.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}
 
Example #14
Source File: ICC_Profile.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #15
Source File: ICC_Profile.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #16
Source File: ICC_Profile.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #17
Source File: LCMS.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction<Object>() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}
 
Example #18
Source File: LCMS.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}
 
Example #19
Source File: ICC_Profile.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #20
Source File: ICC_Profile.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #21
Source File: ICC_Profile.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #22
Source File: LCMS.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction<Object>() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}
 
Example #23
Source File: ICC_Profile.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #24
Source File: LCMS.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}
 
Example #25
Source File: ICC_Profile.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #26
Source File: ICC_Profile.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
static byte[] getData(Profile p, int tagSignature) {
int tagSize;
byte[] tagData;

    try {
        PCMM mdl = CMSManager.getModule();

        /* get the number of bytes needed for this tag */
        tagSize = mdl.getTagSize(p, tagSignature);

        tagData = new byte[tagSize]; /* get an array for the tag */

        /* get the tag's data */
        mdl.getTagData(p, tagSignature, tagData);
    } catch(CMMException c) {
        tagData = null;
    }

    return tagData;
}
 
Example #27
Source File: ICC_Profile.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #28
Source File: ICC_Profile.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
Example #29
Source File: LCMS.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}
 
Example #30
Source File: LCMS.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
static synchronized PCMM getModule() {
    if (theLcms != null) {
        return theLcms;
    }

    java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction() {
                public Object run() {
                    /* We need to load awt here because of usage trace and
                     * disposer frameworks
                     */
                    System.loadLibrary("awt");
                    System.loadLibrary("lcms");
                    return null;
                }
            });

    initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);

    theLcms = new LCMS();

    return theLcms;
}