CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.createInstance C# (CSharp) Method

createInstance() public static method

Creates a bit stream reader of the correct type that works on the provided RandomAccessIO, with the special parameters from the parameter list.
If an I/O error occurs while reading initial /// data from the bit stream. /// If an unrecognised bit stream /// reader option is present. /// ///
public static createInstance ( RandomAccessIO in_Renamed, HeaderDecoder hd, CSJ2K.j2k.util.ParameterList pl, DecoderSpecs decSpec, bool cdstrInfo, HeaderInfo hi ) : BitstreamReaderAgent
in_Renamed RandomAccessIO
hd HeaderDecoder Header of the codestream. /// ///
pl CSJ2K.j2k.util.ParameterList The parameter list containing parameters applicable to the /// bit stream read (other parameters may also be present). /// ///
decSpec CSJ2K.j2k.decoder.DecoderSpecs The decoder specifications /// ///
cdstrInfo bool Whether or not to print information found in /// codestream. /// ///
hi CSJ2K.j2k.codestream.HeaderInfo Reference to the HeaderInfo instance. /// ///
return BitstreamReaderAgent
        public static BitstreamReaderAgent createInstance(RandomAccessIO in_Renamed, HeaderDecoder hd, ParameterList pl, DecoderSpecs decSpec, bool cdstrInfo, HeaderInfo hi)
        {
            // Check parameters
            pl.checkList(BitstreamReaderAgent.OPT_PREFIX, CSJ2K.j2k.util.ParameterList.toNameArray(BitstreamReaderAgent.ParameterInfo));

            return new FileBitstreamReaderAgent(hd, in_Renamed, decSpec, pl, cdstrInfo, hi);
        }