GIF LZW数据分析
2005-07-15 17:12
190 查看
Author:zfive5(zhaozidong)
Email :zfive5@yahoo.com.cn
点阵(16X16)
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
压缩数据
00 FF 09 1C 48 B0 A0 C1 83 08 12 2A 5C C8 B0 A1
C3 87 10 23 4A 9C 48 B1 A2 C5 81 01 01
00 0000 0000
FF 1111 1111 1 0000 0000
09 0000 1001 0 1111 1111
1C 0001 1100 0 1000 0010
48 0100 1000 1 0000 0011
B0 1011 0000 1 0000 0100
A0 1010 0000 1 0000 0101
C1 1100 0001 1 0000 0110
83 1000 0011 1 0000 0111
08 0000 1000 1 0000 1000
13 0001 0011
2A 0010 1010 1 0000 1001
5C 0101 1100 1 0000 1010
C8 1100 1000 1 0000 1011
B0 1011 0000 1 0000 1100
A1 1010 0001 1 0000 1101
C3 1100 0011 1 0000 1110
87 1000 0111 1 0000 1111
10 0001 0000
23 0010 0011 1 0001 0000
4a 0100 1010 1 0001 0001
9c 1001 1100 1 0001 0010
48 0100 1000 1 0001 0011
b1 1011 0001 1 0001 0100
a2 1010 0010 1 0001 0101
c5 1100 0101 1 0001 0110
81 1000 0001 1 0000 0011
01 0000 0001
01 0000 0001 1 0000 0001
(1+22)/2*22+3=256
参考
压缩算法
[1] initialize string table;
[2] [.c.] <- empty;
[3] k <- next character in charstream;
[4] is [.c.]k in string table?
(yes:
[.c.] <- [.c.]k;
go to [3];
)
(no:
add [.c.]k to the string table;
output the code for [.c.] to the codestream;
[.c.] <- k;
go to [3];
)
解压算法
[1] initialize string table;
[2] get first code: <code>;
[3] output the string for <code> to the charstream;
[4] <old> = <code>;
[5] <code> <- next code in codestream;
[6] does <code> exist in the string table?
(yes:
output the string for <code> to the charstream;
[...] <- translation for <old>;
k <- first character of translation for <code>;
add [...]k to the string table;
<old> <- <code>;
)
(no:
[...] <- translation for <old>;
k <- first character of [...];
output [...]k to charstream and add it to string table;
<old> <- <code>
)
[7] go to [5];
Email :zfive5@yahoo.com.cn
点阵(16X16)
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
压缩数据
00 FF 09 1C 48 B0 A0 C1 83 08 12 2A 5C C8 B0 A1
C3 87 10 23 4A 9C 48 B1 A2 C5 81 01 01
00 0000 0000
FF 1111 1111 1 0000 0000
09 0000 1001 0 1111 1111
1C 0001 1100 0 1000 0010
48 0100 1000 1 0000 0011
B0 1011 0000 1 0000 0100
A0 1010 0000 1 0000 0101
C1 1100 0001 1 0000 0110
83 1000 0011 1 0000 0111
08 0000 1000 1 0000 1000
13 0001 0011
2A 0010 1010 1 0000 1001
5C 0101 1100 1 0000 1010
C8 1100 1000 1 0000 1011
B0 1011 0000 1 0000 1100
A1 1010 0001 1 0000 1101
C3 1100 0011 1 0000 1110
87 1000 0111 1 0000 1111
10 0001 0000
23 0010 0011 1 0001 0000
4a 0100 1010 1 0001 0001
9c 1001 1100 1 0001 0010
48 0100 1000 1 0001 0011
b1 1011 0001 1 0001 0100
a2 1010 0010 1 0001 0101
c5 1100 0101 1 0001 0110
81 1000 0001 1 0000 0011
01 0000 0001
01 0000 0001 1 0000 0001
(1+22)/2*22+3=256
参考
压缩算法
[1] initialize string table;
[2] [.c.] <- empty;
[3] k <- next character in charstream;
[4] is [.c.]k in string table?
(yes:
[.c.] <- [.c.]k;
go to [3];
)
(no:
add [.c.]k to the string table;
output the code for [.c.] to the codestream;
[.c.] <- k;
go to [3];
)
解压算法
[1] initialize string table;
[2] get first code: <code>;
[3] output the string for <code> to the charstream;
[4] <old> = <code>;
[5] <code> <- next code in codestream;
[6] does <code> exist in the string table?
(yes:
output the string for <code> to the charstream;
[...] <- translation for <old>;
k <- first character of translation for <code>;
add [...]k to the string table;
<old> <- <code>;
)
(no:
[...] <- translation for <old>;
k <- first character of [...];
output [...]k to charstream and add it to string table;
<old> <- <code>
)
[7] go to [5];
相关文章推荐
- 大数据时代已来临,分析成难点
- 矩表 – 现代数据分析中必不可少的报表工具
- LR数据收集分析 Analysis 名词解释
- [转]SQL Server 2012 的 T-SQL 新功能 – 新的数据分析函数(LEAD、LAG)
- GIS=数据+空间分析
- JSON数据格式分析
- Hadoop经典案例Spark实现(一)——通过采集的气象数据分析每年的最高温度
- Python数据分析之——数据可视化(折线图)
- 分析Memcached客户端如何把缓存数据分布到多个服务器上(转)
- 数据分析(1):Numpy库与应用
- 来学学数据分析吧(二)第一章 预测和关联数量特征
- 大数据之“用户行为分析”
- 预测数值型数据:回归源码分析(1)
- spark--python数据分析脚本
- flume拉取日志压测数据分析
- 度量分析之报告信息的四个层次:数据,信息,分析,措施
- Excel2007及以上版本如何计算相关系数和回归等数据分析
- MySQL的数据类型和建库策略分析详解
- 数据分析学习之路——(八)分类算法介绍
- pandas数据分析0723