GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  COMPRESS::LZW::COMPRESSOR (3)

.ds Aq ’

NAME

Compress::LZW::Compressor - Scaling LZW compressor class

CONTENTS

VERSION

version 0.04

SYNOPSIS



 use Compress::LZW::Compressor;
 
 my $c   = Compress::LZW::Compressor->new();
 my $lzw = $c->compress( $some_data );



ATTRIBUTES

    block_mode

Default: 1

Block mode is a feature added to LZW by compress(1). Once the maximum code size has been reached, if the compression ratio falls (NYI) the code table and code size can be reset, and a code indicating this reset is embedded in the output stream.

May be 0 or 1.

    max_code_size

Default: 16

Maximum size in bits that code output may scale up to. This value is stored in byte 3 of the compressed output so the decompressor can also stop at the same size automatically. Maximum code size implies a maximum code table size of 2 ** max_code_size, which can be emptied and restarted mid-stream in block_mode.

May be between 9 and 31, inclusive. The default of 16 is the largest supported by compress(1), but Compress::LZW can handle up to 31 bits.

METHODS

compress ( CW$input )

Compresses $input with the current settings and returns the result.

    reset ()

Resets the compressor state for another round of compression. Automatically called at the beginning of compress().

Resets the following internal state: Code table, next code number, code size, output buffer, buffer position

AUTHOR

Meredith Howard <mhoward@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Meredith Howard.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 COMPRESS::LZW::COMPRESSOR (3) 2015-02-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.