APIdia Launch Partner
Top Fields Constructors Methods
sun.java2d.cmm.lcms

pack-priv final Class LCMS

extends Object
implements PCMM
Class Inheritance
All Implemented Interfaces
sun.java2d.cmm.PCMM
Imports
java.awt.color.CMMException, .ICC_Profile, java.util.concurrent.locks.StampedLock, sun.java2d.cmm.ColorTransform, .PCMM, .Profile

Field Summary

Modifier and TypeField and Description
private static final StampedLock
lock

Prevent changing profiles data during transform creation.

private static LCMS

Constructor Summary

AccessConstructor and Description
private
LCMS()

Method Summary

Modifier and TypeMethod and Description
pack-priv static native void
colorConvert(long trans, int width, int height, int srcOffset, int srcNextRowOffset, int dstOffset, int dstNextRowOffset, Object srcData, Object dstData)

private static native long
createNativeTransform(long[] profileIDs, int renderingIntent, int inFormatter, int outFormatter, Object disposerRef)

pack-priv static long
createTransform(LCMSProfile[] profiles, int renderingIntent, int inFormatter, int outFormatter, Object disposerRef)

public ColorTransform
createTransform(int renderingIntent, ICC_Profile... profiles)

Implements sun.java2d.cmm.PCMM.createTransform.

Constructs ColorTransform object corresponding to the ICC_profiles.

pack-priv static LCMSProfile
pack-priv static synchronized PCMM
public byte[]
pack-priv static native byte[]
public byte[]
getTagData(Profile p, int tagSignature)

Implements sun.java2d.cmm.PCMM.getTagData.

pack-priv static native byte[]
getTagNative(long profileID, int signature)

public Profile
private static native long
loadProfileNative(byte[] data, Object ref)

public void
setTagData(Profile p, int tagSignature, byte[] data)

Implements sun.java2d.cmm.PCMM.setTagData.

pack-priv static native void
setTagDataNative(long ptr, int tagSignature, byte[] data)

Writes supplied data as a tag into the profile.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lockback to summary
private static final StampedLock lock

Prevent changing profiles data during transform creation.

theLcmsback to summary
private static LCMS theLcms

Constructor Detail

LCMSback to summary
private LCMS()

Method Detail

colorConvertback to summary
pack-priv static native void colorConvert(long trans, int width, int height, int srcOffset, int srcNextRowOffset, int dstOffset, int dstNextRowOffset, Object srcData, Object dstData)
createNativeTransformback to summary
private static native long createNativeTransform(long[] profileIDs, int renderingIntent, int inFormatter, int outFormatter, Object disposerRef)
createTransformback to summary
pack-priv static long createTransform(LCMSProfile[] profiles, int renderingIntent, int inFormatter, int outFormatter, Object disposerRef)
createTransformback to summary
public ColorTransform createTransform(int renderingIntent, ICC_Profile... profiles)

Implements sun.java2d.cmm.PCMM.createTransform.

Constructs ColorTransform object corresponding to the ICC_profiles.

getLcmsProfileback to summary
pack-priv static LCMSProfile getLcmsProfile(Profile p)
getModuleback to summary
pack-priv static synchronized PCMM getModule()
Annotations
@SuppressWarnings:restricted
getProfileDataback to summary
public byte[] getProfileData(Profile p)

Implements sun.java2d.cmm.PCMM.getProfileData.

Annotations
@Override
getProfileDataNativeback to summary
pack-priv static native byte[] getProfileDataNative(long ptr)
getTagDataback to summary
public byte[] getTagData(Profile p, int tagSignature)

Implements sun.java2d.cmm.PCMM.getTagData.

Annotations
@Override
getTagNativeback to summary
pack-priv static native byte[] getTagNative(long profileID, int signature)
loadProfileback to summary
public Profile loadProfile(byte[] data)

Implements sun.java2d.cmm.PCMM.loadProfile.

Annotations
@Override
loadProfileNativeback to summary
private static native long loadProfileNative(byte[] data, Object ref)
setTagDataback to summary
public void setTagData(Profile p, int tagSignature, byte[] data)

Implements sun.java2d.cmm.PCMM.setTagData.

Annotations
@Override
setTagDataNativeback to summary
pack-priv static native void setTagDataNative(long ptr, int tagSignature, byte[] data)

Writes supplied data as a tag into the profile. Destroys old profile, if new one was successfully created. Returns valid pointer to new profile. Throws CMMException if operation fails, preserve old profile from destruction.