예제 #1
0
        private void ReadFrameIndices(Buffer2D <byte> indices)
        {
            int dataSize = this.stream.ReadByte();

            using var lzwDecoder = new LzwDecoder(this.configuration.MemoryAllocator, this.stream);
            lzwDecoder.DecodePixels(dataSize, indices);
        }
예제 #2
0
        private void ReadFrameIndices(GifImageDescriptor imageDescriptor, byte[] indices)
        {
            int dataSize = this.currentStream.ReadByte();

            using (var lzwDecoder = new LzwDecoder(this.currentStream))
            {
                lzwDecoder.DecodePixels(imageDescriptor.Width, imageDescriptor.Height, dataSize, indices);
            }
        }
예제 #3
0
        private void ReadFrameIndices(GifImageDescriptor imageDescriptor, Span <byte> indices)
        {
            int dataSize = this.currentStream.ReadByte();

            using (var lzwDecoder = new LzwDecoder(this.configuration.MemoryManager, this.currentStream))
            {
                lzwDecoder.DecodePixels(imageDescriptor.Width, imageDescriptor.Height, dataSize, indices);
            }
        }