Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
LZW Source Code
 previous   up   next 

Function Summary
string
lzwEncodeMsb (in string: uncompressed)
Encode a string with the Lempel-Ziv-Welch (LZW) compression method.
string
lzwDecodeMsb (in string: compressed)
Decode an Lempel-Ziv-Welch (LZW) compressed string.

Function Detail

lzwEncodeMsb

const func string: lzwEncodeMsb (in string: uncompressed)

Encode a string with the Lempel-Ziv-Welch (LZW) compression method. The packing order of bits in bytes is is MSB-First (Most Significant Bit First). Encoding starts with 9 bits per coding point and goes up to 12 bits per coding point. The code points 0 to 255 correspond to ISO-8859-1 (Latin-1) characters. Code 256 starts a new block with a new table and 9 bits per code point. Code 257 marks the end of the compressed data. This compression is used in TIFF and PDF files.


lzwDecodeMsb

const func string: lzwDecodeMsb (in string: compressed)

Decode an Lempel-Ziv-Welch (LZW) compressed string. The packing order of bits in bytes is is MSB-First (Most Significant Bit First). Decoding starts with 9 bits per coding point and goes up to 12 bits per coding point. The code points 0 to 255 correspond to ISO-8859-1 (Latin-1) characters. Code 256 starts a new block with a new table and 9 bits per code point. Code 257 marks the end of the compressed data. This compression is used in TIFF and PDF files.



 previous   up   next