Public Types | Static Public Member Functions

Celartem::DjVu::G4Encoder Struct Reference

#include <djv_mmrencoder.h>

List of all members.

Public Types

enum  FillOrder { MSB_FIRST = 0, LSB_FIRST = 1 }

Static Public Member Functions

static void encodeMask (Stream *inStream, size_t inWidth, size_t inHeight, ssize_t inRowStride, const u8 *inMaskPtr, Celartem::DjVu::MaskType inMaskType, FillOrder inFillOrder=MSB_FIRST)
static void encodeMaskWhite (Stream *inStream, size_t inWidth, size_t inHeight, FillOrder inFillOrder=MSB_FIRST)

Detailed Description

Implementation of G4 (MMR) encoder.

See also:
SmmrEncoderHelper

Member Enumeration Documentation

G4 fill order.

Enumerator:
MSB_FIRST 

MSB-to-LSB order (default).

LSB_FIRST 

LSB-to-MSB order.


Member Function Documentation

static void Celartem::DjVu::G4Encoder::encodeMask ( Stream inStream,
size_t  inWidth,
size_t  inHeight,
ssize_t  inRowStride,
const u8 inMaskPtr,
Celartem::DjVu::MaskType  inMaskType,
FillOrder  inFillOrder = MSB_FIRST 
) [static]

Encode the specified mask image.

Parameters:
inStream Stream to write the encoded image to.
inWidth Width of the mask image.
inHeight Height of the mask image.
inRowStride Stride of the mask image.
inMaskPtr Pointer to the first line of the mask image.
inMaskType Mask type.
inFillOrder The fill order. The default is MSB_FIRST.
static void Celartem::DjVu::G4Encoder::encodeMaskWhite ( Stream inStream,
size_t  inWidth,
size_t  inHeight,
FillOrder  inFillOrder = MSB_FIRST 
) [static]

Encode entirely white image.

Parameters:
inStream Stream to write the encoded image to.
inWidth Width of the mask image.
inHeight Height of the mask image.
inFillOrder The fill order. The default is MSB_FIRST.

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

This document is made with doxygen 1.7.1 at Thu Feb 17 2011 15:40:21.
Caminova Logo