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