Static Public Member Functions

Celartem::DjVu::SmmrEncoderHelper Struct Reference

#include <djv_mmrencoder.h>

List of all members.

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:
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:

This document is made with doxygen 1.7.1 at Sat Mar 31 2012 04:35:58.
Caminova Logo