java.awt.color.CMMException#sun.java2d.cmm.Profile源码实例Demo

下面列出了java.awt.color.CMMException#sun.java2d.cmm.Profile 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: jdk1.8-source-analysis   文件: ICC_Profile.java
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;
}
 
源代码2 项目: jdk8u-jdk   文件: ICC_Profile.java
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;
}
 
源代码3 项目: dragonwell8_jdk   文件: ICC_Profile.java
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;
}
 
源代码4 项目: openjdk-jdk9   文件: ICC_Profile.java
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;
}
 
源代码5 项目: dragonwell8_jdk   文件: LCMS.java
@Override
public synchronized void setTagData(Profile p, int tagSignature, byte[] data) {
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        profile.clearTagCache();

        // Now we are going to update the profile with new tag data
        // In some cases, we may change the pointer to the native
        // profile.
        //
        // If we fail to write tag data for any reason, the old pointer
        // should be used.
        setTagDataNative(profile.getLcmsPtr(),
                tagSignature, data);
    }
}
 
源代码6 项目: TencentKona-8   文件: ICC_Profile.java
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;
}
 
源代码7 项目: Bytecoder   文件: LCMS.java
@Override
public synchronized void setTagData(Profile p, int tagSignature, byte[] data) {
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        profile.clearTagCache();

        // Now we are going to update the profile with new tag data
        // In some cases, we may change the pointer to the native
        // profile.
        //
        // If we fail to write tag data for any reason, the old pointer
        // should be used.
        setTagDataNative(profile.getLcmsPtr(),
                tagSignature, data);
    }
}
 
源代码8 项目: TencentKona-8   文件: LCMS.java
@Override
public synchronized void setTagData(Profile p, int tagSignature, byte[] data) {
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        profile.clearTagCache();

        // Now we are going to update the profile with new tag data
        // In some cases, we may change the pointer to the native
        // profile.
        //
        // If we fail to write tag data for any reason, the old pointer
        // should be used.
        setTagDataNative(profile.getLcmsPtr(),
                tagSignature, data);
    }
}
 
源代码9 项目: jdk8u60   文件: ICC_Profile.java
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;
}
 
源代码10 项目: JDKSourceCode1.8   文件: ICC_Profile.java
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;
}
 
源代码11 项目: openjdk-jdk8u   文件: ICC_Profile.java
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;
}
 
源代码12 项目: jdk8u-jdk   文件: LCMS.java
@Override
public synchronized void setTagData(Profile p, int tagSignature, byte[] data) {
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        profile.clearTagCache();

        // Now we are going to update the profile with new tag data
        // In some cases, we may change the pointer to the native
        // profile.
        //
        // If we fail to write tag data for any reason, the old pointer
        // should be used.
        setTagDataNative(profile.getLcmsPtr(),
                tagSignature, data);
    }
}
 
源代码13 项目: openjdk-jdk8u   文件: LCMS.java
@Override
public synchronized void setTagData(Profile p, int tagSignature, byte[] data) {
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        profile.clearTagCache();

        // Now we are going to update the profile with new tag data
        // In some cases, we may change the pointer to the native
        // profile.
        //
        // If we fail to write tag data for any reason, the old pointer
        // should be used.
        setTagDataNative(profile.getLcmsPtr(),
                tagSignature, data);
    }
}
 
源代码14 项目: jdk1.8-source-analysis   文件: ICC_Profile.java
static int getColorSpaceType(Profile p) {
byte[] theHeader;
int theColorSpaceSig, theColorSpace;

    theHeader = getData(p, icSigHead);
    theColorSpaceSig = intFromBigEndian(theHeader, icHdrColorSpace);
    theColorSpace = iccCStoJCS (theColorSpaceSig);
    return theColorSpace;
}
 
源代码15 项目: Bytecoder   文件: ICC_Profile.java
static int getPCSType(Profile p) {
byte[] theHeader;
int thePCSSig, thePCS;

    theHeader = getData(p, icSigHead);
    thePCSSig = intFromBigEndian(theHeader, icHdrPcs);
    thePCS = iccCStoJCS(thePCSSig);
    return thePCS;
}
 
源代码16 项目: dragonwell8_jdk   文件: ICC_Profile.java
static int getColorSpaceType(Profile p) {
byte[] theHeader;
int theColorSpaceSig, theColorSpace;

    theHeader = getData(p, icSigHead);
    theColorSpaceSig = intFromBigEndian(theHeader, icHdrColorSpace);
    theColorSpace = iccCStoJCS (theColorSpaceSig);
    return theColorSpace;
}
 
源代码17 项目: dragonwell8_jdk   文件: ICC_Profile.java
static int getPCSType(Profile p) {
byte[] theHeader;
int thePCSSig, thePCS;

    theHeader = getData(p, icSigHead);
    thePCSSig = intFromBigEndian(theHeader, icHdrPcs);
    thePCS = iccCStoJCS(thePCSSig);
    return thePCS;
}
 
源代码18 项目: jdk8u-jdk   文件: LCMS.java
@Override
public int getTagSize(Profile p, int tagSignature) {
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        TagData t = profile.getTag(tagSignature);
        return t == null ? 0 : t.getSize();
    }
}
 
源代码19 项目: dragonwell8_jdk   文件: LCMS.java
@Override
public Profile loadProfile(byte[] data) {
    final Object disposerRef = new Object();

    final long ptr = loadProfileNative(data, disposerRef);

    if (ptr != 0L) {
        return new LCMSProfile(ptr, disposerRef);
    }
    return null;
}
 
源代码20 项目: dragonwell8_jdk   文件: LCMS.java
@Override
public int getTagSize(Profile p, int tagSignature) {
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        TagData t = profile.getTag(tagSignature);
        return t == null ? 0 : t.getSize();
    }
}
 
源代码21 项目: TencentKona-8   文件: ICC_Profile.java
static int getColorSpaceType(Profile p) {
byte[] theHeader;
int theColorSpaceSig, theColorSpace;

    theHeader = getData(p, icSigHead);
    theColorSpaceSig = intFromBigEndian(theHeader, icHdrColorSpace);
    theColorSpace = iccCStoJCS (theColorSpaceSig);
    return theColorSpace;
}
 
源代码22 项目: TencentKona-8   文件: ICC_Profile.java
static int getPCSType(Profile p) {
byte[] theHeader;
int thePCSSig, thePCS;

    theHeader = getData(p, icSigHead);
    thePCSSig = intFromBigEndian(theHeader, icHdrPcs);
    thePCS = iccCStoJCS(thePCSSig);
    return thePCS;
}
 
源代码23 项目: Bytecoder   文件: ICC_Profile.java
static int getColorSpaceType(Profile p) {
byte[] theHeader;
int theColorSpaceSig, theColorSpace;

    theHeader = getData(p, icSigHead);
    theColorSpaceSig = intFromBigEndian(theHeader, icHdrColorSpace);
    theColorSpace = iccCStoJCS (theColorSpaceSig);
    return theColorSpace;
}
 
源代码24 项目: openjdk-jdk9   文件: LCMS.java
@Override
public void getTagData(Profile p, int tagSignature, byte[] data)
{
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        TagData t = profile.getTag(tagSignature);
        if (t != null) {
            t.copyDataTo(data);
        }
    }
}
 
源代码25 项目: jdk8u-jdk   文件: ICC_Profile.java
static int getColorSpaceType(Profile p) {
byte[] theHeader;
int theColorSpaceSig, theColorSpace;

    theHeader = getData(p, icSigHead);
    theColorSpaceSig = intFromBigEndian(theHeader, icHdrColorSpace);
    theColorSpace = iccCStoJCS (theColorSpaceSig);
    return theColorSpace;
}
 
源代码26 项目: TencentKona-8   文件: LCMS.java
@Override
public int getTagSize(Profile p, int tagSignature) {
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        TagData t = profile.getTag(tagSignature);
        return t == null ? 0 : t.getSize();
    }
}
 
源代码27 项目: TencentKona-8   文件: LCMS.java
@Override
public void getTagData(Profile p, int tagSignature, byte[] data)
{
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        TagData t = profile.getTag(tagSignature);
        if (t != null) {
            t.copyDataTo(data);
        }
    }
}
 
源代码28 项目: jdk8u60   文件: ICC_Profile.java
static int getColorSpaceType(Profile p) {
byte[] theHeader;
int theColorSpaceSig, theColorSpace;

    theHeader = getData(p, icSigHead);
    theColorSpaceSig = intFromBigEndian(theHeader, icHdrColorSpace);
    theColorSpace = iccCStoJCS (theColorSpaceSig);
    return theColorSpace;
}
 
源代码29 项目: openjdk-jdk9   文件: ICC_Profile.java
static int getPCSType(Profile p) {
byte[] theHeader;
int thePCSSig, thePCS;

    theHeader = getData(p, icSigHead);
    thePCSSig = intFromBigEndian(theHeader, icHdrPcs);
    thePCS = iccCStoJCS(thePCSSig);
    return thePCS;
}
 
源代码30 项目: Bytecoder   文件: LCMS.java
@Override
public void getTagData(Profile p, int tagSignature, byte[] data)
{
    final LCMSProfile profile = getLcmsProfile(p);

    synchronized (profile) {
        TagData t = profile.getTag(tagSignature);
        if (t != null) {
            t.copyDataTo(data);
        }
    }
}