GifRecorder/Encoding/LZWEncoder.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region Java Disclaimer
// Adapted from Jef Poskanzer's Java port by way of J. M. G. Elliott.
// K Weiner 12/00
#endregion
#region C Disclaimer
// GIFCOMPR.C - GIF Image compression routines
//
// Lempel-Ziv compression based on 'compress'. GIF modifications by
// David Rowley (mgardi@watdcsu.waterloo.edu)
// GIF Image compression - modified 'compress'
//
// Based on: compress.c - File compression ala IEEE Computer, June 1984.
//
// By Authors: Spencer W. Thomas (decvax!harpo!utah-cs!utah-gr!thomas)
// Jim McKie (decvax!mcvax!jim)
// Steve Davies (decvax!vax135!petsd!peora!srd)
// Ken Turkowski (decvax!decwrl!turtlevax!ken)
// James A. Woods (decvax!ihnp4!ames!jaw)
// Joe Orost (decvax!vax135!petsd!joe)
#endregion
using System;
using System.IO;
namespace ScreenToGif.Encoding
{
/// <summary>
/// Image compression routines.
/// </summary>
public class LzwEncoder
{
#region Variables
/// <summary>
/// End of File.
/// </summary>
private const int Eof = -1;
private readonly int _imgW;
private readonly int _imgH;
private readonly byte[] _pixAry;
private readonly int _initCodeSize;
private int _remaining;
private int _curPixel;
private const int Bits = 12;
/// <summary>
/// 80% occupancy.
/// </summary>
private const int HSize = 5003;
/// <summary>
/// Number of bits/code.
/// </summary>
int _numBits;
后面还有 353 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
