|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.jpeg.colorspace.ColorSpace
public class ColorSpace
This class analyzes the image to provide colorspace information for the decoding chain. It does this by examining the box structure of the JP2 image. It also provides access to the parameter list information, which is stored as a public final field.
jj2000.j2k.icc.ICCProfile
Nested Class Summary | |
---|---|
static class |
ColorSpace.CSEnum
Colorspace enumeration class |
static class |
ColorSpace.Enumeration
Typesafe enumeration class |
static class |
ColorSpace.MethodEnum
Method enumeration class |
Field Summary | |
---|---|
static ColorSpace.MethodEnum |
ENUMERATED
method enumeration |
static String |
eol
|
static ColorSpace.CSEnum |
GreyScale
colorspace enumeration |
HeaderDecoder |
hd
Parameter Specs |
static ColorSpace.MethodEnum |
ICC_PROFILED
method enumeration |
static ColorSpace.CSEnum |
Illegal
colorspace enumeration |
ParameterList |
pl
Parameter Specs |
static ColorSpace.CSEnum |
sRGB
colorspace enumeration |
static ColorSpace.CSEnum |
sYCC
colorspace enumeration |
static ColorSpace.CSEnum |
Unknown
colorspace enumeration |
Constructor Summary | |
---|---|
ColorSpace(RandomAccessIO in,
HeaderDecoder hd,
ParameterList pl)
public constructor which takes in the image, parameterlist and the image header decoder as args. |
Method Summary | |
---|---|
boolean |
debugging()
Are profiling diagnostics turned on |
protected void |
getBoxes()
Retrieve the various boxes from the JP2 file. |
int |
getChannelDefinition(int c)
Return the channel definition of the input component. |
ColorSpace.CSEnum |
getColorSpace()
Return the colorspace (sYCC, sRGB, sGreyScale). |
byte[] |
getICCProfile()
Retrieve the ICC profile from the images as a byte array. |
ColorSpace.MethodEnum |
getMethod()
Return the colorspace method (Profiled, enumerated, or palettized). |
PaletteBox |
getPaletteBox()
Return number of channels in the palette. |
int |
getPaletteChannelBits(int c)
Return bitdepth of the palette entries. |
int |
getPaletteChannels()
Return number of channels in the palette. |
int |
getPalettizedSample(int channel,
int index)
Return a palettized sample |
static String |
indent(String ident,
String instr)
Indent a String that contains newlines. |
static String |
indent(String ident,
StringBuffer instr)
Indent a String that contains newlines. |
boolean |
isOutputSigned(int channel)
Signed output predicate. |
boolean |
isPalettized()
Is palettized predicate. |
String |
toString()
Return a suitable String representation of the class instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String eol
public ParameterList pl
public HeaderDecoder hd
public static final ColorSpace.MethodEnum ICC_PROFILED
public static final ColorSpace.MethodEnum ENUMERATED
public static final ColorSpace.CSEnum sRGB
public static final ColorSpace.CSEnum GreyScale
public static final ColorSpace.CSEnum sYCC
public static final ColorSpace.CSEnum Illegal
public static final ColorSpace.CSEnum Unknown
Constructor Detail |
---|
public ColorSpace(RandomAccessIO in, HeaderDecoder hd, ParameterList pl) throws IOException, ColorSpaceException
in
- input RandomAccess image file.hd
- provides information about the image header.pl
- provides parameters from the default and commandline lists.
IOException,
- ColorSpaceException
IOException
ColorSpaceException
Method Detail |
---|
public byte[] getICCProfile()
public static String indent(String ident, StringBuffer instr)
public static String indent(String ident, String instr)
protected final void getBoxes() throws ColorSpaceException, IOException
ColorSpaceException,
- IOException
ColorSpaceException
IOException
public int getChannelDefinition(int c)
public ColorSpace.MethodEnum getMethod()
public ColorSpace.CSEnum getColorSpace()
public PaletteBox getPaletteBox()
public int getPaletteChannels()
public int getPaletteChannelBits(int c)
public int getPalettizedSample(int channel, int index)
channel
- requestedindex
- of entry
public boolean isPalettized()
public boolean isOutputSigned(int channel)
public String toString()
toString
in class Object
public boolean debugging()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |