[]
        
(Showing Draft Content)

CSJ2K.j2k.codestream.reader.HeaderDecoder.createChannelDefinitionMapper

createChannelDefinitionMapper Method

createChannelDefinitionMapper(BlkImgDataSrc, ColorSpace)

Creates and returns the ChannelDefinitonMapper which maps the input channels to the channel definition for the appropriate colorspace.

Declaration
public virtual BlkImgDataSrc createChannelDefinitionMapper(BlkImgDataSrc src, ColorSpace csMap)
Parameters
Type Name Description
BlkImgDataSrc src

The bit stream reader agent where to get code-block data from.

ColorSpace csMap

provides color space information from the image file

Returns
Type Description
BlkImgDataSrc

The channel definition mapping object

Exceptions
Type Condition
ColorSpaceException

if image contains a bad colorspace box