| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--colorspace.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.CSEnumColorspace enumeration class | 
| static class | ColorSpace.EnumerationTypesafe enumeration class | 
| static class | ColorSpace.MethodEnumMethod enumeration class | 
| Field Summary | |
| (package private) static int | BLUE | 
| private  ChannelDefinitionBox | cdbox | 
| private  ComponentMappingBox | cmbox | 
| private  ColorSpecificationBox | csbox | 
| static ColorSpace.MethodEnum | ENUMERATEDmethod enumeration | 
| static java.lang.String | eol | 
| (package private) static int | GRAY | 
| (package private) static int | GREEN | 
| static ColorSpace.CSEnum | GreyScalecolorspace enumeration | 
|  HeaderDecoder | hdParameter Specs | 
| static ColorSpace.MethodEnum | ICC_PROFILEDmethod enumeration | 
| private  ImageHeaderBox | ihbox | 
| static ColorSpace.CSEnum | Illegalcolorspace enumeration | 
| private  RandomAccessIO | inInput image | 
| private  PaletteBox | pbox | 
|  ParameterList | plParameter Specs | 
| (package private) static int | RED | 
| static ColorSpace.CSEnum | sRGBcolorspace enumeration | 
| static ColorSpace.CSEnum | sYCCcolorspace enumeration | 
| static ColorSpace.CSEnum | Unknowncolorspace 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 java.lang.String | indent(java.lang.String ident,
       java.lang.String instr)Indent a String that contains newlines. | 
| static java.lang.String | indent(java.lang.String ident,
       java.lang.StringBuffer instr)Indent a String that contains newlines. | 
|  boolean | isOutputSigned(int channel)Signed output predicate. | 
|  boolean | isPalettized()Is palettized predicate. | 
|  java.lang.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 java.lang.String eol
static final int GRAY
static final int RED
static final int GREEN
static final int BLUE
public ParameterList pl
public HeaderDecoder hd
private PaletteBox pbox
private ComponentMappingBox cmbox
private ColorSpecificationBox csbox
private ChannelDefinitionBox cdbox
private ImageHeaderBox ihbox
private RandomAccessIO in
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 java.io.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
java.io.IOException
ColorSpaceException| Method Detail | 
public byte[] getICCProfile()
public static java.lang.String indent(java.lang.String ident,
                                      java.lang.StringBuffer instr)
public static java.lang.String indent(java.lang.String ident,
                                      java.lang.String instr)
protected final void getBoxes()
                       throws ColorSpaceException,
                              java.io.IOException
ColorSpaceException, - IOException
ColorSpaceException
java.io.IOExceptionpublic 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 java.lang.String toString()
toString in class java.lang.Objectpublic boolean debugging()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||