#include <djv_jbig2encoder.h>

Public Member Functions | |
| virtual void | encodeDict (Stream *inStream, const JB2Dictionary *inDict=NULL)=0 |
| virtual AutoPtr< Chunk > | encodeJB2dChunk (const JB2Dictionary *inDict=NULL)=0 |
| virtual void | encodePage (Stream *inStream, const JB2Page *inPage)=0 |
| virtual AutoPtr< Chunk > | encodeJB2pChunk (const JB2Page *inPage)=0 |
Static Public Member Functions | |
| static AutoPtr< JBIG2EncodeHelper > | create (bool inUseRefine) |
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.
| static AutoPtr<JBIG2EncodeHelper> Celartem::DjVu::JBIG2EncodeHelper::create | ( | bool | inUseRefine | ) | [static] |
Create a JBIG2EncodeHelper instance. This class is used with JB2Page to encode JBIG2 data.
| 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.
| 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.
| inDict | Dictionary to write. If any encodePage calls with a page associated with a dictionary before this call, inDict can be NULL. |
JB2d chunk. | virtual AutoPtr<Chunk> Celartem::DjVu::JBIG2EncodeHelper::encodeJB2pChunk | ( | const JB2Page * | inPage | ) | [pure virtual] |
Encode JBIG2 page (JB2p).
| inPage | Page to encode. If the page has associated with a dictionary, the dictionary should be also encoded separatedly. |
JB2p chunk.