[]
        
(Showing Draft Content)

CSJ2K.j2k.codestream.reader.HeaderDecoder.createPalettizedColorSpaceMapper

createPalettizedColorSpaceMapper Method

createPalettizedColorSpaceMapper(BlkImgDataSrc, ColorSpace)

Creates and returns the PalettizedColorSpaceMapper which uses the input samples as indicies into a sample palette to construct the output.

Declaration
public virtual BlkImgDataSrc createPalettizedColorSpaceMapper(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

a PalettizedColorSpaceMapper instance

Exceptions
Type Condition
ColorSpaceException

if image contains a bad colorspace box