예제 #1
0
        public static int[] LzwLinesEn(IntField bitfield, int lineheight, int backadd)
        {
            int[]    symbols = BitImageToLineSymbols(bitfield, lineheight);
            LzwCodec lzw     = new LzwCodec(1 << lineheight);

            return(lzw.Encode(symbols));
        }
예제 #2
0
파일: CodecTests.cs 프로젝트: rstarkov/i4c
        public static void TestLzw()
        {
            LzwCodec lzw = new LzwCodec(5);

            int[] res = lzw.Encode(new int[] { 0, 1, 0, 1, 0, 1, 0, 1, 2, 3, 4, 2, 3, 4, 2, 3, 4 });
        }