GIF LZW数据分析[2]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

[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];
 

本文关键:GIF LZW数据分析
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top