Static Public Member Functions | List of all members
Celartem::DjVu::Compressor Struct Reference

#include <djv_jb2common.h>

Static Public Member Functions

static void encodeDjbz (Stream *inStream, const Shape::Array &inDict)
static void encodeSjbz (Stream *inStream, size_t inPageWidth, size_t inPageHeight, const Shape::Array &inPage, const Shape::Array *inDict=NULL)
static void encodeFGbz (Stream *inStream, const SimpleArray< Color > &inPalette, const SimpleArray< size_t > &inPalIndices)
static size_t decodeFGbz (Stream *inStream, Shape::Array &ioPage)

Detailed Description

JB2 Compressor class.
This class provides the lowest level support for JB2 compress.
For normal operations, you had better use JB2Encoder class or DjVuEncoder class.

Member Function Documentation

static size_t Celartem::DjVu::Compressor::decodeFGbz ( Stream inStream,
Shape::Array ioPage 
The number of palette entries loaded.
static void Celartem::DjVu::Compressor::encodeDjbz ( Stream inStream,
const Shape::Array inDict 

Encode Djbz chunk.

inStreamStream to write to.
inDictA shape array which preserves the JB2 dictionary.
static void Celartem::DjVu::Compressor::encodeFGbz ( Stream inStream,
const SimpleArray< Color > &  inPalette,
const SimpleArray< size_t > &  inPalIndices 

Encode FGbz chunk.

inStreamStream to write to.
inPalettePalette of the page.
inPalIndicesPalette indices of the shapes. The size of the array must be equal to the number of shapes.
static void Celartem::DjVu::Compressor::encodeSjbz ( Stream inStream,
size_t  inPageWidth,
size_t  inPageHeight,
const Shape::Array inPage,
const Shape::Array inDict = NULL 

Encode Sjbz chunk.

inStreamStream to write to.
inPageWidthPage width in pixels.
inPageHeightPage height in pixels.
inPageA shape array which preserves JB2 shapes on the page.
inDictOptional pointer to the JB2 dictionary if exists.

The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:07.
Cuminas Logo