#include <djv_mmrencoder.h>
This class is used to encode Smmr chunk.
Smmr is a DjVu variation of G4 (MMR) and it has 8-byte header before actual G4 data.
- See Also
- G4Encoder
static void Celartem::DjVu::SmmrEncoderHelper::encodeSmmr |
( |
Stream * |
inStream, |
|
|
const u8 * |
inMaskPtr, |
|
|
ssize_t |
inMaskRowStride, |
|
|
MaskType |
inMaskType, |
|
|
size_t |
inWidth, |
|
|
size_t |
inHeight |
|
) |
| |
|
static |
Encode the specified mask image.
- Parameters
-
inStream | Stream to write the encoded image to. |
inMaskPtr | Pointer to the first line of the mask image. |
inMaskRowStride | Stride of the mask image. |
inMaskType | Mask type. |
inWidth | Width of the mask image. |
inHeight | Height of the mask image. |
static AutoPtr<Chunk> Celartem::DjVu::SmmrEncoderHelper::encodeSmmrChunk |
( |
const u8 * |
inMaskPtr, |
|
|
ssize_t |
inMaskRowStride, |
|
|
MaskType |
inMaskType, |
|
|
size_t |
inWidth, |
|
|
size_t |
inHeight |
|
) |
| |
|
static |
Encode the specified mask image.
- Parameters
-
inMaskPtr | Pointer to the first line of the mask image. |
inMaskRowStride | Stride of the mask image. |
inMaskType | Mask type. |
inWidth | Width of the mask image. |
inHeight | Height of the mask image. |
- Returns
- Pointer to the newly created
Smmr
chunk.
The documentation for this struct was generated from the following file: