Static Public Member Functions | List of all members
Celartem::DjVu::SmmrEncoderHelper Struct Reference

#include <djv_mmrencoder.h>

Static Public Member Functions

static void encodeSmmr (Stream *inStream, const u8 *inMaskPtr, ssize_t inMaskRowStride, MaskType inMaskType, size_t inWidth, size_t inHeight)
 
static AutoPtr< ChunkencodeSmmrChunk (const u8 *inMaskPtr, ssize_t inMaskRowStride, MaskType inMaskType, size_t inWidth, size_t inHeight)
 

Detailed Description

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

Member Function Documentation

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
inStreamStream to write the encoded image to.
inMaskPtrPointer to the first line of the mask image.
inMaskRowStrideStride of the mask image.
inMaskTypeMask type.
inWidthWidth of the mask image.
inHeightHeight 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
inMaskPtrPointer to the first line of the mask image.
inMaskRowStrideStride of the mask image.
inMaskTypeMask type.
inWidthWidth of the mask image.
inHeightHeight of the mask image.
Returns
Pointer to the newly created Smmr chunk.

The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:07.
Cuminas Logo