OS4 DepotLogo by DaveyD 
(anonymous IP:,2219) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (600)
   o Document (22)
   o Driver (97)
   o Emulation (148)
   o Game (1005)
   o Graphics (499)
   o Library (116)
   o Network (233)
   o Office (66)
   o Utility (927)
   o Video (69)

Total files: 4379

Full index file
Recent index file



Support the site

 Readme for:  Development » Library » Misc » libucl.lha


Description: UCL is a lossless data compression library
Download: libucl.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 207kb
Version: 1.03
Date: 29 Sep 2008
Author: Markus Franz Xaver and Johannes Oberhumer, AmigaOS 4.x compile by Spot / Up Rough
Submitter: Spot / Up Rough
Email: spot/triad se
Homepage: http://www.oberhumer.com/opensource/ucl/
Category: development/library/misc
License: GPL
Distribute: yes
Min OS Version: 4.0
FileID: 4108
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 321  (Current version)
321  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
Hash: SHA1

                 ooooo     ooo   .oooooo.   ooooo
                 `888'     `8'  d8P'  `Y8b  `888'
                  888       8  888           888
                  888       8  888           888
                  888       8  888           888
                  `88.    .8'  `88b    ooo   888       o
                    `YbodP'     `Y8bood8P'  o888ooooood8

                      The UCL Compression Library
                             Version 1.02

       Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
             Markus F.X.J Oberhumer <markus()oberhumer.com>


 UCL is a portable lossless data compression library written in ANSI C.

 UCL implements a number of compression algorithms that achieve an
 excellent compression ratio while allowing *very* fast decompression.
 Decompression requires no additional memory.

 UCL is distributed under the terms of the GNU General Public License (GPL).


 UCL implements a number of algorithms with the following features:

   - Decompression is simple and *very* fast.
   - Requires no memory for decompression.
   - The decompressors can be squeezed into less than 200 bytes of code.
   - Includes compression levels for generating pre-compressed
     data which achieve an excellent compression ratio.
   - Allows you to dial up extra compression at a speed cost in the
     compressor. The speed of the decompressor is not reduced.
   - Algorithm is thread safe.
   - Algorithm is lossless.

 UCL supports in-place decompression.

 Design criteria

 UCL's main design goal was a very high decompression speed while
 achieving an excellent compression ratio. Real-time decompression should
 be possible for virtually any application. The implementation of the
 NRV2B decompressor in optimized i386 assembler code runs about at
 the fifth of the speed of a memcpy() - and even faster for many files.

 Related work

 This section describes how UCL compares to some of my other
 compression technologies.

 * LZO
   LZO is distributed under the terms of the GNU GPL.

   LZO is a data compression library that focuses on
   *extremly* fast decompression, and also implements some
   pretty fast compression algorithms.

 * NRV
   NRV is not publicly available.

   NRV started life as an experimental compression library and has since
   grown into a meta-generator for compression algorithms of almost any kind.

   NRV supports a virtually unlimited number of different algorithms by
   glueing typical data compression components. By using a combination
   of sophisticated high level abstractions and advanced information
   theory concepts it usually achieves an incredible compression ratio.

 * UCL
   UCL is distributed under the terms of the GNU GPL.

   UCL is a re-implementation of some concrete algorithms that have
   proven especially useful during the NRV development.

   As compared to LZO, the UCL algorithms achieve a better compression
   ratio but decompression is somewhat slower. See below.

 * UPX
   UPX is distributed under the terms of the GNU GPL.

   UPX is a very powerful executable packer that can be configured
   to use either NRV or UCL for actual compression services. It
   currently supports the NRV2B and NRV2D algorithms.


 UCL's decompressors should work on any system around - they could even
 get ported to 8-bit processors such as the Z-80 or 6502.

 UCL's compressors currently require at least 32-bit integers. While
 porting them to more restricted environments (such as 16-bit DOS)
 should be possible without too much effort this is not considered
 important at this time.

 How fast is fast ?

 Here are some rough timings originally done on an ancient Intel Pentium 133:

   memcpy():                                    ~60 MB/sec
   LZO decompression in optimized assembler:    ~20 MB/sec
   LZO decompression in C:                      ~16 MB/sec
   UCL decompression in optimized assembler:    ~13 MB/sec

 Your mileage may vary and you're encouraged to run your own benchmarks.

 Also note that UCL's C language decompressors are not optimized very
 much yet, so you should use the assembler versions whenever possible.

 Documentation (preliminary)

 Currently UCL implements 3 of NRV's algorithms, namely NRV2B,
 NRV2D and NRV2E.

 UCL is a block compressor, i.e. each memory block passed to the
 compressor will get compressed independently.

 The API of UCL is basically identical to that of LZO. Due to current
 lack of documentation you are strongly advised to download LZO
 and study its documentation and example programs first:


 The API of UCL is actually very simple: there's a compress() function
 that compresses a block of memory, and there's a decompress() function
 that handles decompression. That's more or less all you need to know.

 See the `examples' directory for some demo programs.

 UCL will expand non-compressible data by a little amount. I suggest
 using this formula for a worst-case expansion calculation:

     output_block_size = input_block_size + (input_block_size / 8) + 256


 The UCL library is Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002,
 2003 by Markus Franz Xaver Johannes Oberhumer <markus()oberhumer.com>.

 The UCL library is distributed under the terms of the GNU General Public
 License (GPL). See the file COPYING.

 Special licenses for commercial and other applications which
 are not willing to accept the GNU General Public License
 are available by contacting the author.

Version: GnuPG v1.2.3 (GNU/Linux)


Copyright © 2004-2024 by Björn Hagström All Rights Reserved