C# Class CSJ2K.Color.Boxes.ChannelDefinitionBox

This class maps the components in the codestream to channels in the image. It models the Component Mapping box in the JP2 header.
Inheritance: CSJ2K.Color.Boxes.JP2Box
Show file Open project: cureos/csj2k

Public Methods

Method Description
ChannelDefinitionBox ( CSJ2K.j2k.io.RandomAccessIO in_Renamed, int boxStart ) : System

Construct a ChannelDefinitionBox from an input image.

ToString ( ) : System.String

Return a suitable String representation of the class instance.

getAsoc ( int channel ) : int
getCn ( int asoc ) : int
getTyp ( int channel ) : int

Private Methods

Method Description
ChannelDefinitionBox ( ) : System
getAsoc ( byte bfr ) : int

Return the associated channel from the record.

getCn ( byte bfr ) : int

Return the channel from the record.

getTyp ( byte bfr ) : int

Return the channel type from the record.

readBox ( ) : void

Analyze the box content.

Method Details

ChannelDefinitionBox() public method

Construct a ChannelDefinitionBox from an input image.
ColorSpaceException ///
public ChannelDefinitionBox ( CSJ2K.j2k.io.RandomAccessIO in_Renamed, int boxStart ) : System
in_Renamed CSJ2K.j2k.io.RandomAccessIO
boxStart int offset to the start of the box in the image ///
return System

ToString() public method

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

getAsoc() public method

public getAsoc ( int channel ) : int
channel int
return int

getCn() public method

public getCn ( int asoc ) : int
asoc int
return int

getTyp() public method

public getTyp ( int channel ) : int
channel int
return int