Compression/Decompression Plug-ins

separately compiled and run executables, which are launched (spawned) whenever there is a need to encode/decode image data


Compressor plug-in

~> /home/www/pictures/sowlp_encode
Two parameters (besides the option flags) have got
to be specified

Compress an image with NCLP compression algorithm

Usage
 sowlp_encode -sn [-coerce] input_image_file compr_code_file
where
   -sn     - apply quantization of LP with threshold n
   -coerce - if the input image is of a nonstandard size
             it would be coerced to the closest dim.
             otherwise, a zero-padding is used
Input file name might be specified as "command |"
and so might the output file name, as "| command"
(Quotes are necessary)
The input image file may be in XWD, TIFF, or PGM formats

Example:
    sowlp_encode -s50 "zcat lenna.xwd.Z |" lenna.lpc


Decompressor Plug-in

~> /home/www/pictures/sowlp_decode
Two parameters (besides the option flags) have got
to be specified

Restore the image compressed with the NCLP algorithm

Usage
 sowlp_decode input_compressed_file_name output_file_name

The input file name may be specified as "command |"
The output file name may be specified as "| command "
(Quotes are necessary)
The restored image is written in the PGM format
For example,
    sowlp_decode gilbert.slpg "| /usr/local/bin/X11/xv -"



Available for: HP/UX 9.0.5 and 10.0, Sun Solaris 2.4, PowerMac

Next