This class is the main class of JJ2000's decoder. It instantiates all objects and performs the decoding operations. It then writes the image to the output file or displays it.
First the decoder should be initialized with a ParameterList object given through the constructor. The when the run() method is invoked and the decoder executes. The exit code of the class can be obtained with the getExitCode() method, after the constructor and after the run method. A non-zero value indicates that an error has ocurred.
The decoding chain corresponds to the following sequence of modules:
- BitstreamReaderAgent
- EntropyDecoder
- ROIDeScaler
- Dequantizer
- InverseWT
- ImgDataConverter
- EnumratedColorSpaceMapper, SyccColorSpaceMapper or ICCProfiler
- ComponentDemixer (if needed)
- ImgDataAdapter (if ComponentDemixer is needed)
- ImgWriter
- BlkImgDataSrcImageProducer
The 2 last modules cannot be used at the same time and corresponds respectively to the writing of decoded image into a file or the graphical display of this same image.
The behaviour of each module may be modified according to the current tile-component. All the specifications are kept in modules extending ModuleSpec and accessible through an instance of DecoderSpecs class.
@see BitstreamReaderAgent
@see EntropyDecoder
@see ROIDeScaler
@see Dequantizer
@see InverseWT
@see ImgDataConverter
@see InvCompTransf
@see ImgWriter
@see BlkImgDataSrcImageProducer
@see ModuleSpec
@see DecoderSpecs