#include <djv_jb2decoder.h>
Public Member Functions | |
virtual Shape::Array & | getShapes ()=0 |
virtual const Shape::Array & | getShapes () const =0 |
virtual bool | isEmpty () const =0 |
virtual void | compact ()=0 |
virtual void | encodeDjbz (Stream *inStream) const =0 |
virtual AutoPtr< Chunk > | encodeDjbzChunk () const =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< JB2Dictionary > | create (Stream *inDjbz) |
static AutoPtr< JB2Dictionary > | create (const Chunk *inDjbz) |
static AutoPtr< JB2Dictionary > | create () |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
This class defines JB2 Dictionary class.
A dictionary is referenced by several pages and vital to decode the pages.
|
pure virtual |
Minimize the memory usage.
Implements Celartem::DjVu::JB2ShapeStore.
|
static |
Create a JB2Dictionary instance from the specified stream.
inDjbz | A stream which contains the Djbz chunk. |
|
static |
Create a JB2Dictionary instance from the specified chunk.
inDjbz | Pointer to the Djbz chunk. |
|
static |
Create an empty JB2Dictionary instance.
|
pure virtual |
Encode dictionary (Djbz
) to the specified stream.
inStream | A stream to write to. |
Encode dictionary (Djbz
) chunk.
Djbz
chunk, which contains the encoding result.
|
pure virtual |
Get the Shape::Array instance used by this instance.
Implements Celartem::DjVu::JB2ShapeStore.
|
pure virtual |
Get the Shape::Array instance used by this instance.
Implements Celartem::DjVu::JB2ShapeStore.
|
pure virtual |
Determine whether the dictionary is empty or not.
true
if the dictionary is empty (no shapes); otherwise false
.