[]
This class is responsible of all data type conversions. It should be used, at encoder side, between Tiler and ForwardWT modules and, at decoder side, between InverseWT/CompDemixer and ImgWriter modules. The conversion is realized when a block of data is requested: if source and destination data type are the same one, it does nothing, else appropriate cast is done. All the methods of the 'ImgData' interface are implemented by the 'ImgDataAdapter' class that is the superclass of this one, so they don't need to be reimplemented by subclasses.
public class ImgDataConverter : ImgDataAdapter, BlkImgDataSrc, ImgData
Name | Description |
---|---|
ImgDataConverter(BlkImgDataSrc) | Constructs a new ImgDataConverter object that operates on the specified source of image data. |
ImgDataConverter(BlkImgDataSrc, int) | Constructs a new ImgDataConverter object that operates on the specified source of image data. |
Name | Description |
---|---|
getCompData(DataBlk, int) | |
getFixedPoint(int) | Returns the position of the fixed point in the specified component. This is the position of the least significant integral (i.e. non-fractional) bit, which is equivalent to the number of fractional bits. For instance, for fixed-point values with 2 fractional bits, 2 is returned. For floating-point data this value does not apply and 0 should be returned. Position 0 is the position of the least significant bit in the data. |
getInternCompData(DataBlk, int) |