CSJ2K.j2k.codestream.reader.PktDecoder.PktDecoder C# (CSharp) Method

PktDecoder() public method

Creates an empty PktDecoder object associated with given decoder specifications and HeaderDecoder. This object must be initialized thanks to the restart method before being used.
public PktDecoder ( DecoderSpecs decSpec, HeaderDecoder hd, RandomAccessIO ehs, BitstreamReaderAgent src, bool isTruncMode, int maxCB ) : System
decSpec CSJ2K.j2k.decoder.DecoderSpecs The decoder specifications. /// ///
hd HeaderDecoder The HeaderDecoder instance. /// ///
ehs RandomAccessIO The stream where to read data from. /// ///
src BitstreamReaderAgent The bit stream reader agent. /// ///
isTruncMode bool Whether or not truncation mode is required. /// ///
maxCB int The maximum number of code-blocks to read before ncbquit /// /// ///
return System
        public PktDecoder(DecoderSpecs decSpec, HeaderDecoder hd, RandomAccessIO ehs, BitstreamReaderAgent src, bool isTruncMode, int maxCB)
        {
            this.decSpec = decSpec;
            this.hd = hd;
            this.ehs = ehs;
            this.isTruncMode = isTruncMode;
            bin = new PktHeaderBitReader(ehs);
            this.src = src;
            ncb = 0;
            ncbQuit = false;
            this.maxCB = maxCB;
        }