cjb2

Simple JB2 encoder.
Synopsis
        cjb2 [options] <inputpbmfile>  <outputdjvufile>
    

Description

File "cjb2.cpp" demonstrates a simple encoder for Bilevel DjVu Images. It is able to perform lossless encoding and limited lossy encoding. Lots of lossy encoding refinements are missing from this simple implementation. Comments in the code suggest a few improvements.

Options are:

-dpi xxx
Specify image resolution (default 300).
-clean
Clean small flyspecs (lossy).
-loose
Substitute patterns with small variations (lossy).
-verbose
Displays additional messages.
Encoding is lossless unless one or several lossy options are selected. The dpi argument mostly affects the cleaning thresholds.

Bugs

This is not the full-fledged multipage DjVu compressor, but merely a free tool provided with the DjVu Reference Library as a demonstrative example.

Author:
Léon Bottou <leonb@research.att.com>
Paul Howard <pgh@research.att.com>
Pascal Vincent <vincentp@iro.umontreal.ca>
Version:

Alphabetic index Hierarchy of classes


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.