Public Member Functions | Static Public Member Functions

Celartem::DjVu::JBIG2EncodeHelper Class Reference

#include <djv_jbig2encoder.h>

Inheritance diagram for Celartem::DjVu::JBIG2EncodeHelper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void encodeDict (Stream *inStream, const JB2Dictionary *inDict=NULL)=0
virtual AutoPtr< ChunkencodeJB2dChunk (const JB2Dictionary *inDict=NULL)=0
virtual void encodePage (Stream *inStream, const JB2Page *inPage)=0
virtual AutoPtr< ChunkencodeJB2pChunk (const JB2Page *inPage)=0

Static Public Member Functions

static AutoPtr< JBIG2EncodeHelpercreate (bool inUseRefine)

Detailed Description

This class provides supplemental functions to encode JBIG2 images.
Please note that the encoder equips only some parts of JBIG2 specification enough to support JBIG2 on DjVu and PDF.

See also:
JB2Page, JBIG2DecodeHelper

Member Function Documentation

static AutoPtr<JBIG2EncodeHelper> Celartem::DjVu::JBIG2EncodeHelper::create ( bool  inUseRefine  )  [static]

Create a JBIG2EncodeHelper instance. This class is used with JB2Page to encode JBIG2 data.

Parameters:
inUseRefine Although refinement improves JBIG2 compression ratio, it causes crash in Adobe products.
virtual void Celartem::DjVu::JBIG2EncodeHelper::encodeDict ( Stream inStream,
const JB2Dictionary inDict = NULL 
) [pure virtual]

Encode JBIG2 dictionary.
This method throws an exception if no dictionary is specified either explicitly or implicitly.

Parameters:
inStream Stream write to.
inDict Dictionary to write.
If any encodePage calls with a page associated with a dictionary before this call, inDict can be NULL.
virtual AutoPtr<Chunk> Celartem::DjVu::JBIG2EncodeHelper::encodeJB2dChunk ( const JB2Dictionary inDict = NULL  )  [pure virtual]

Encode JBIG2 dictionary (JB2d).
This method throws an exception if no dictionary is specified either explicitly or implicitly.

Parameters:
inDict Dictionary to write.
If any encodePage calls with a page associated with a dictionary before this call, inDict can be NULL.
Returns:
Pointer to a newly created JB2d chunk.
virtual AutoPtr<Chunk> Celartem::DjVu::JBIG2EncodeHelper::encodeJB2pChunk ( const JB2Page inPage  )  [pure virtual]

Encode JBIG2 page (JB2p).

Parameters:
inPage Page to encode.
If the page has associated with a dictionary, the dictionary should be also encoded separatedly.
Returns:
Pointer to a newly created JB2p chunk.
virtual void Celartem::DjVu::JBIG2EncodeHelper::encodePage ( Stream inStream,
const JB2Page inPage 
) [pure virtual]

Encode JBIG2 page.

Parameters:
inStream Stream write to.
inPage Page to encode.
If the page has associated with a dictionary, the dictionary should be also encoded separatedly.

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

This document is made with doxygen 1.7.1 at Thu Feb 17 2011 15:40:20.
Caminova Logo