Example #1
0
        } /* Dispose */

        static private void  BuildDecodeRecs()
        {
            decodeRecs = new Sipper2DecodeRec [65535];
            ushort x = 0;

            for (x = 0; x < decodeRecs.Length; x++)
            {
                decodeRecs[x] = new Sipper2DecodeRec(x);
            }
        } /* BuildDecodeRecs */
Example #2
0
        } /* LengthNextScanLine */

        override public void  SkipNextScanLine()
        {
            bool eol = false;

            ushort rec = GetNextRecord();

            while ((!eof) && (!eol))
            {
                Sipper2DecodeRec dr = decodeRecs[rec];
                if (dr.Eol())
                {
                    eol = true;
                }
                else
                {
                    rec = GetNextRecord();
                }
            }
        } /* SkipNextScanLine */
Example #3
0
        } /* SkipNextScanLine */

        override public void  ReadNextScanLine(byte[]  scanLine)
        {
            bool eol = false;
            int  idx = 0;

            ushort rec = GetNextRecord();

            while ((!eof) && (!eol))
            {
                Sipper2DecodeRec dr = decodeRecs[rec];
                dr.AddToScanLine(scanLine, ref idx);
                if (dr.Eol())
                {
                    eol = true;
                }
                else
                {
                    rec = GetNextRecord();
                }
            }
        } /* ReadNextScanLine */
Example #4
0
        } /* BuildDecodeRecs */

        override public int  LengthNextScanLine()
        {
            bool eol = false;

            int scanLineLen = 0;

            ushort rec = GetNextRecord();

            while ((!eof) && (!eol))
            {
                Sipper2DecodeRec dr = decodeRecs[rec];
                scanLineLen += dr.PixelSpaceNeeded();
                if (dr.Eol())
                {
                    eol = true;
                }
                else
                {
                    rec = GetNextRecord();
                }
            }

            return(scanLineLen);
        } /* LengthNextScanLine */