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

#include <djv_mmrencoder.h>

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
inStreamStream to write the encoded image to.
inWidthWidth of the mask image.
inHeightHeight of the mask image.
inRowStrideStride of the mask image.
inMaskPtrPointer to the first line of the mask image.
inMaskTypeMask type.
inFillOrderThe 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
inStreamStream to write the encoded image to.
inWidthWidth of the mask image.
inHeightHeight of the mask image.
inFillOrderThe fill order. The default is MSB_FIRST.

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