#include <djv_jb2common.h>
JB2 Compressor class.
This class provides the lowest level support for JB2 compress.
For normal operations, you had better use JB2Encoder class or DjVuEncoder class.
| static size_t Celartem::DjVu::Compressor::decodeFGbz |
( |
Stream * |
inStream, |
|
|
Shape::Array & |
ioPage |
|
) |
| |
|
static |
- Returns
- The number of palette entries loaded.
| static void Celartem::DjVu::Compressor::encodeDjbz |
( |
Stream * |
inStream, |
|
|
const Shape::Array & |
inDict |
|
) |
| |
|
static |
Encode Djbz chunk.
- Parameters
-
| inStream | Stream to write to. |
| inDict | A shape array which preserves the JB2 dictionary. |
Encode FGbz chunk.
- Parameters
-
| inStream | Stream to write to. |
| inPalette | Palette of the page. |
| inPalIndices | Palette indices of the shapes. The size of the array must be equal to the number of shapes. |
| static void Celartem::DjVu::Compressor::encodeSjbz |
( |
Stream * |
inStream, |
|
|
size_t |
inPageWidth, |
|
|
size_t |
inPageHeight, |
|
|
const Shape::Array & |
inPage, |
|
|
const Shape::Array * |
inDict = NULL |
|
) |
| |
|
static |
Encode Sjbz chunk.
- Parameters
-
| inStream | Stream to write to. |
| inPageWidth | Page width in pixels. |
| inPageHeight | Page height in pixels. |
| inPage | A shape array which preserves JB2 shapes on the page. |
| inDict | Optional pointer to the JB2 dictionary if exists. |
The documentation for this struct was generated from the following file: