public abstract class ICCProfile extends Object
jj2000.j2k.icc.types.ICCProfileHeader,
jj2000.j2k.icc.tags.ICCTagTable| Modifier and Type | Field and Description |
|---|---|
static int |
BITS_PER_BYTE |
static int |
BITS_PER_INT |
static int |
BITS_PER_LONG |
static int |
BITS_PER_SHORT |
static int |
BLUE
RGB index.
|
static int |
boolean_size
Size of native type
|
static int |
byte_size
Size of native type
|
static int |
BYTES_PER_INT |
static int |
BYTES_PER_LONG |
static int |
BYTES_PER_SHORT |
static int |
char_size
Size of native type
|
static int |
double_size
Size of native type
|
static int |
float_size
Size of native type
|
static int |
GRAY
Gray index.
|
static int |
GREEN
RGB index.
|
static int |
int_size
Size of native type
|
static int |
kdwBlueColorantTag
tag signature
|
static int |
kdwBlueTRCTag
tag signature
|
static int |
kdwCopyrightTag
tag signature
|
static int |
kdwDisplayProfile
tag type
|
static int |
kdwGrayData
tag type
|
static int |
kdwGrayTRCTag
tag signature
|
static int |
kdwGreenColorantTag
tag signature
|
static int |
kdwGreenTRCTag
tag signature
|
static int |
kdwInputProfile
profile type
|
static int |
kdwMediaWhiteTag
tag signature
|
static int |
kdwProfileDescTag
tag signature
|
static int |
kdwProfileSignature
signature
|
static int |
kdwProfileSigReverse
signature
|
static int |
kdwRedColorantTag
tag signature
|
static int |
kdwRedTRCTag
tag signature
|
static int |
kdwRGBData
tag type
|
static int |
kdwXYZData
tag type
|
static int |
kMonochromeInput
input type
|
static int |
kThreeCompInput
input type
|
static int |
long_size
Size of native type
|
static int |
RED
RGB index.
|
static int |
short_size
Size of native type
|
| Modifier | Constructor and Description |
|---|---|
protected |
ICCProfile(ColorSpace csm)
ParameterList constructor
|
| Modifier and Type | Method and Description |
|---|---|
ICCProfileHeader |
getHeader()
Access the profile header
|
static ICCDateTime |
getICCDateTime(byte[] data,
int offset)
Create an ICCDateTime from byte [] input
|
static ICCProfileVersion |
getICCProfileVersion(byte[] data,
int offset)
Create an ICCProfileVersion from byte [] input
|
static int |
getInt(byte[] bfr,
int off)
Create an int from a byte [4].
|
static int |
getInt(byte[] bfr,
int off,
boolean swap)
Create an int from a byte [4], with optional byte swapping.
|
static int |
getIntFromString(String fourChar)
Creates an int from a 4 character String
|
static long |
getLong(byte[] bfr,
int off)
Create an long from a byte [8].
|
static short |
getShort(byte[] bfr,
int off)
Create a short from a two byte [].
|
static short |
getShort(byte[] bfr,
int off,
boolean swap)
Create a short from a two byte [], with optional byte swapping.
|
static String |
getString(byte[] bfr,
int offset,
int length,
boolean swap)
Create a String from a byte [].
|
ICCTagTable |
getTagTable()
Access the profile tag table
|
static XYZNumber |
getXYZNumber(byte[] data,
int offset)
Create an XYZNumber from byte [] input
|
RestrictedICCProfile |
parse()
Parse this ICCProfile into a RestrictedICCProfile
which is appropriate to the data in this profile.
|
static byte[] |
setInt(int d)
Separate bytes in an int into a byte array lsb to msb order.
|
static byte[] |
setInt(int d,
byte[] b)
Separate bytes in an int into a byte array lsb to msb order.
|
static byte[] |
setLong(long d)
Separate bytes in a long into a byte array lsb to msb order.
|
static byte[] |
setLong(long d,
byte[] b)
Separate bytes in a long into a byte array lsb to msb order.
|
static String |
toHexString(byte i)
Create a two character hex representation of a byte
|
static String |
toHexString(int i)
Create a 8 character hex representation of a int
|
static String |
toHexString(short i)
Create a 4 character hex representation of a short
|
String |
toString()
Provide a suitable string representation for the class
|
static String |
toString(byte[] data) |
void |
write(RandomAccessFile os)
Output this ICCProfile to a RandomAccessFile
|
public static final int GRAY
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int boolean_size
public static final int byte_size
public static final int char_size
public static final int short_size
public static final int int_size
public static final int float_size
public static final int long_size
public static final int double_size
public static final int BITS_PER_BYTE
public static final int BITS_PER_SHORT
public static final int BITS_PER_INT
public static final int BITS_PER_LONG
public static final int BYTES_PER_SHORT
public static final int BYTES_PER_INT
public static final int BYTES_PER_LONG
public static final int kdwProfileSignature
public static final int kdwProfileSigReverse
public static final int kdwInputProfile
public static final int kdwDisplayProfile
public static final int kdwRGBData
public static final int kdwGrayData
public static final int kdwXYZData
public static final int kMonochromeInput
public static final int kThreeCompInput
public static final int kdwGrayTRCTag
public static final int kdwRedColorantTag
public static final int kdwGreenColorantTag
public static final int kdwBlueColorantTag
public static final int kdwRedTRCTag
public static final int kdwGreenTRCTag
public static final int kdwBlueTRCTag
public static final int kdwCopyrightTag
public static final int kdwMediaWhiteTag
public static final int kdwProfileDescTag
protected ICCProfile(ColorSpace csm) throws ColorSpaceException, ICCProfileInvalidException
csb - provides colorspace informationColorSpaceExceptionICCProfileInvalidExceptionpublic static int getIntFromString(String fourChar)
fourChar - string representation of an integerpublic static XYZNumber getXYZNumber(byte[] data, int offset)
data - array containing the XYZNumber representationoffset - start of the rep in the arraypublic static ICCProfileVersion getICCProfileVersion(byte[] data, int offset)
data - array containing the ICCProfileVersion representationoffset - start of the rep in the arraypublic static ICCDateTime getICCDateTime(byte[] data, int offset)
data - array containing the ICCProfileVersion representationoffset - start of the rep in the arraypublic static String getString(byte[] bfr, int offset, int length, boolean swap)
bfr - data arrayoffset - start of data in arraylength - length of data in arrayswap - swap adjacent bytes?public static short getShort(byte[] bfr,
int off,
boolean swap)
bfr - data arrayoff - start of data in arrayswap - swap bytes?public static short getShort(byte[] bfr,
int off)
bfr - data arrayoff - start of data in arraypublic static byte[] setInt(int d)
d - integer to separatepublic static byte[] setInt(int d,
byte[] b)
d - integer to separateb - return output here.public static byte[] setLong(long d)
d - long to separatepublic static byte[] setLong(long d,
byte[] b)
d - long to separateb - return output here.public static int getInt(byte[] bfr,
int off,
boolean swap)
bfr - data arrayoff - start of data in arrayswap - swap bytes?public static int getInt(byte[] bfr,
int off)
bfr - data arrayoff - start of data in arraypublic static long getLong(byte[] bfr,
int off)
bfr - data arrayoff - start of data in arraypublic String toString()
public static String toHexString(byte i)
i - byte to representpublic static String toHexString(short i)
i - short to representpublic static String toHexString(int i)
i - int to representpublic static String toString(byte[] data)
public ICCProfileHeader getHeader()
public ICCTagTable getTagTable()
public RestrictedICCProfile parse() throws ICCProfileInvalidException
ICCProfileInvalidException - no curve datapublic void write(RandomAccessFile os) throws IOException
os - output fileIOExceptionCopyright © 2015. All rights reserved.