#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 |
virtual void | saveToJBIG2File (Stream *inStream, const JB2Page *inPage)=0 |
Public Member Functions inherited from Celartem::Referable | |
Referable () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Static Public Member Functions | |
static AutoPtr< JBIG2EncodeHelper > | create (bool inUseRefine) |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
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 |
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. |
|
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. |
|
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.
|
pure virtual |
Encode JBIG2 page (JB2p
).
inPage | Page to encode. If the page has associated with a dictionary, the dictionary should be also encoded separately. |
JB2p
chunk.
|
pure virtual |
Encode JBIG2 page.
inStream | Stream write to. |
inPage | Page to encode. If the page has associated with a dictionary, the dictionary should be also encoded separately. |
|
pure virtual |
Encode JBIG2 file.
inStream | Stream write to. |
inPage | Page to encode. |