数据压缩 -- 源码[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 luckyjan 的 blog

(*             procedure lhaexpand(instr, outstr: tstream);                   *)
(*          these procedures do not change the current position of either     *)
(*          tstream before performing their function.  thus, lhacompress      *)
(*          starts compressing at instr's current position and continues to   *)
(*          the end of instr, placing the compressed output in outstr         *)
(*          starting at outstr's current position. if you need the entirety   *)
(*          of instr compressed or uncompressed, you'll need to set           *)
(*          instr.position := 0 before calling one of these procedures.       *)
(*                                                                            *)
(*          see the test program at the end of this unit for an example of    *)
(*          how to use these procedures.                                      *)
(*                                                                            *)
(*          changing this to a unit required the (internal) addition of       *)
(*             procedure freememory;                                          *)
(*             procedure initmemory;                                          *)
(*          to ensure that memory gets initialized properly between calls     *)
(*          to the unit's interface procedures.                               *)
(******************************************************************************)

unit lh5unit;

{turn off range checking - mandatory ! and stack checking (to speed up things)}
{$b-,r-,s-}

{$define percolate}
(*
note :
   lharc uses a "percolating" update of its lempel-ziv structures.
   if you use the percolating method, the compressor will run slightly faster,
   using a little more memory, and will be slightly less efficient than the
   standard method.
   you can choose either method, and note that the decompressor is not
   affected by this choice and is able to decompress data created by each one
   of the compressors.
*)

interface

uses

本文关键:数据压缩 -- 源码
  相关方案
Google
 

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

go top