C# Class CSJ2K.Color.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.
Show file Open project: cureos/csj2k Class Usage Examples

Public Properties

Property Type Description
eol System.String
hd CSJ2K.j2k.codestream.reader.HeaderDecoder
pl CSJ2K.j2k.util.ParameterList

Public Methods

Method Description
ColorSpace ( CSJ2K.j2k.io.RandomAccessIO in_Renamed, CSJ2K.j2k.codestream.reader.HeaderDecoder hd, CSJ2K.j2k.util.ParameterList pl ) : System

public constructor which takes in the image, parameterlist and the image header decoder as args.

ToString ( ) : System.String

Return a suitable String representation of the class instance.

debugging ( ) : bool

Are profiling diagnostics turned on

getChannelDefinition ( int c ) : int

Return the channel definition of the input component.

getColorSpace ( ) : CSEnum

Return the colorspace (sYCC, sRGB, sGreyScale).

getPaletteChannelBits ( int c ) : int

Return bitdepth of the palette entries.

getPalettizedSample ( int channel, int index ) : int

Return a palettized sample

indent ( System ident, System instr ) : System.String

Indent a String that contains newlines.

isOutputSigned ( int channel ) : bool

Signed output predicate.

Protected Methods

Method Description
getBoxes ( ) : void

Retrieve the various boxes from the JP2 file.

Method Details

ColorSpace() public method

public constructor which takes in the image, parameterlist and the image header decoder as args.
ColorSpaceException ///
public ColorSpace ( CSJ2K.j2k.io.RandomAccessIO in_Renamed, CSJ2K.j2k.codestream.reader.HeaderDecoder hd, CSJ2K.j2k.util.ParameterList pl ) : System
in_Renamed CSJ2K.j2k.io.RandomAccessIO
hd CSJ2K.j2k.codestream.reader.HeaderDecoder provides information about the image header. ///
pl CSJ2K.j2k.util.ParameterList provides parameters from the default and commandline lists. ///
return System

ToString() public method

Return a suitable String representation of the class instance.
public ToString ( ) : System.String
return System.String

debugging() public method

Are profiling diagnostics turned on
public debugging ( ) : bool
return bool

getBoxes() protected method

Retrieve the various boxes from the JP2 file.
IOException ///
protected getBoxes ( ) : void
return void

getChannelDefinition() public method

Return the channel definition of the input component.
public getChannelDefinition ( int c ) : int
c int
return int

getColorSpace() public method

Return the colorspace (sYCC, sRGB, sGreyScale).
public getColorSpace ( ) : CSEnum
return CSEnum

getPaletteChannelBits() public method

Return bitdepth of the palette entries.
public getPaletteChannelBits ( int c ) : int
c int
return int

getPalettizedSample() public method

Return a palettized sample
public getPalettizedSample ( int channel, int index ) : int
channel int requested ///
index int of entry ///
return int

indent() public static method

Indent a String that contains newlines.
public static indent ( System ident, System instr ) : System.String
ident System
instr System
return System.String

isOutputSigned() public method

Signed output predicate.
public isOutputSigned ( int channel ) : bool
channel int
return bool

Property Details

eol public static property

public static String,System eol
return System.String

hd public property

Parameter Specs
public CSJ2K.j2k.codestream.reader.HeaderDecoder hd
return CSJ2K.j2k.codestream.reader.HeaderDecoder

pl public property

Parameter Specs
public CSJ2K.j2k.util.ParameterList pl
return CSJ2K.j2k.util.ParameterList