"L. Spiro Engine"
Classes | Public Types | Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes

lsi::CMqc Class Reference

Implementation of an MQ-Coder (MQC). More...

#include <LSIMqc.h>

List of all members.

Classes

struct  opj_mqc
struct  opj_mqc_state_t

Public Types

typedef struct
lsi::CMqc::opj_mqc_state_t
LPopj_mqc_state_t
typedef struct
lsi::CMqc::opj_mqc_state_t 
LPCopj_mqc_state_t
typedef struct lsi::CMqc::opj_mqc opj_mqc_t

Static Public Member Functions

static opj_mqc_t *LSE_CALL mqc_create ()
static LSVOID LSE_CALL mqc_destroy (opj_mqc_t *_pmMqc)
static LSINT32 LSE_CALL mqc_numbytes (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_resetstates (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_setstate (opj_mqc_t *_pmMqc, LSINT32 _i32ContextNo, LSINT32 _i32Msb, LSINT32 _i32Prob)
static LSVOID LSE_CALL mqc_init_enc (opj_mqc_t *_pmMqc, LSUINT8 *_pui8Buffer)
static LSVOID LSE_CALL mqc_encode (opj_mqc_t *_pmMqc, LSINT32 _i32D)
static LSVOID LSE_CALL mqc_flush (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_bypass_init_enc (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_bypass_enc (opj_mqc_t *_pmMqc, LSINT32 _i32D)
static LSINT32 LSE_CALL mqc_bypass_flush_enc (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_reset_enc (opj_mqc_t *_pmMqc)
static LSINT32 LSE_CALL mqc_restart_enc (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_restart_init_enc (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_erterm_enc (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_segmark_enc (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_init_dec (opj_mqc_t *_pmMqc, LSUINT8 *_pui8Buffer, LSINT32 _i32Len)
static LSINT32 LSE_CALL mqc_decode (opj_mqc_t *const _pmMqc)

Static Protected Member Functions

static LSVOID LSE_CALL mqc_byteout (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_renorme (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_codemps (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_codelps (opj_mqc_t *_pmMqc)
static LSVOID LSE_CALL mqc_setbits (opj_mqc_t *_pmMqc)
static LSINT32 LSE_CALL mqc_mpsexchange (opj_mqc_t *const _pmMqc)
static LSINT32 LSE_CALL mqc_lpsexchange (opj_mqc_t *const _pmMqc)
static LSVOID LSE_CALL mqc_bytein (opj_mqc_t *const _pmMqc)
static LSVOID LSE_CALL mqc_renormd (opj_mqc_t *const _pmMqc)

Static Protected Attributes

static opj_mqc_state_t mqc_states [47 *2]

Detailed Description

Implementation of an MQ-Coder (MQC).

Class CMqc Description: Implementation of an MQ-Coder (MQC).


Member Typedef Documentation

This struct defines the state of a context.

MQ coder


Member Function Documentation

static LSVOID LSE_CALL lsi::CMqc::mqc_bypass_enc ( opj_mqc_t _pmMqc,
LSINT32  _i32D 
) [static]

BYPASS mode switch, coding operation. JPEG 2000 p 505.

Not fully implemented and tested!

.

Parameters:
_pmMqcMQC handle.
_i32DThe symbol to be encoded (0 or 1).
static LSINT32 LSE_CALL lsi::CMqc::mqc_bypass_flush_enc ( opj_mqc_t _pmMqc) [static]

BYPASS mode switch, flush operation.

Not fully implemented and tested!

.

Parameters:
_pmMqcMQC handle.
Returns:
Returns 1 (always).
static LSVOID LSE_CALL lsi::CMqc::mqc_bypass_init_enc ( opj_mqc_t _pmMqc) [static]

BYPASS mode switch, initialization operation. JPEG 2000 p 505.

Not fully implemented and tested!

.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_bytein ( opj_mqc_t *const  _pmMqc) [static, protected]

Input a byte.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_byteout ( opj_mqc_t _pmMqc) [static, protected]

Output a byte, doing bit-stuffing if necessary. After a 0xFF byte, the next byte must be smaller than 0x90.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_codelps ( opj_mqc_t _pmMqc) [static, protected]

Encode the most least symbol.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_codemps ( opj_mqc_t _pmMqc) [static, protected]

Encode the most probable symbol.

Parameters:
_pmMqcMQC handle.
static opj_mqc_t* LSE_CALL lsi::CMqc::mqc_create ( ) [static]

Create a new MQC handle.

Returns:
Returns a new MQC handle if successful, returns NULL otherwise.
static LSINT32 LSE_CALL lsi::CMqc::mqc_decode ( opj_mqc_t *const  _pmMqc) [static]

Decode a symbol.

Parameters:
_pmMqcMQC handle.
Returns:
Returns the decoded symbol (0 or 1).
static LSVOID LSE_CALL lsi::CMqc::mqc_destroy ( opj_mqc_t _pmMqc) [static]

Destroy a previously created MQC handle.

Parameters:
_pmMqcMQC handle to destroy.
static LSVOID LSE_CALL lsi::CMqc::mqc_encode ( opj_mqc_t _pmMqc,
LSINT32  _i32D 
) [static]

Encode a symbol using the MQ-coder.

Parameters:
_pmMqcMQC handle.
_i32DThe symbol to be encoded (0 or 1).
static LSVOID LSE_CALL lsi::CMqc::mqc_erterm_enc ( opj_mqc_t _pmMqc) [static]

ERTERM mode switch (PTERM).

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_flush ( opj_mqc_t _pmMqc) [static]

Flush the encoder, so that all remaining data is written.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_init_dec ( opj_mqc_t _pmMqc,
LSUINT8 *  _pui8Buffer,
LSINT32  _i32Len 
) [static]

Initialize the decoder.

Parameters:
_pmMqcMQC handle.
_pui8BufferPointer to the start of the buffer from which the bytes will be read.
_i32LenLength of the input buffer.
static LSVOID LSE_CALL lsi::CMqc::mqc_init_enc ( opj_mqc_t _pmMqc,
LSUINT8 *  _pui8Buffer 
) [static]

Initialize the encoder.

Parameters:
_pmMqcMQC handle.
_pui8BufferPointer to the start of the buffer where the bytes will be written.
static LSINT32 LSE_CALL lsi::CMqc::mqc_lpsexchange ( opj_mqc_t *const  _pmMqc) [static, protected]

Undocumented function from the OpenJpeg Library.

Parameters:
_pmMqcMQC handle.
Returns:
Undocumented return from the OpenJpeg Library.
static LSINT32 LSE_CALL lsi::CMqc::mqc_mpsexchange ( opj_mqc_t *const  _pmMqc) [static, protected]

Undocumented function from the OpenJpeg Library.

Parameters:
_pmMqcMQC handle.
Returns:
Undocumented return from the OpenJpeg Library.
static LSINT32 LSE_CALL lsi::CMqc::mqc_numbytes ( opj_mqc_t _pmMqc) [static]

Return the number of bytes written/read since initialisation.

Parameters:
_pmMqcMQC handle.
Returns:
Returns the number of bytes already encoded.
static LSVOID LSE_CALL lsi::CMqc::mqc_renormd ( opj_mqc_t *const  _pmMqc) [static, protected]

Renormalize _pmMqc->a and _pmMqc->c while decoding.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_renorme ( opj_mqc_t _pmMqc) [static, protected]

Renormalize _pmMqc->a and _pmMqc->c while encoding, so that _pmMqc->a stays between 0x8000 and 0x10000.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_reset_enc ( opj_mqc_t _pmMqc) [static]

RESET mode switch.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_resetstates ( opj_mqc_t _pmMqc) [static]

Reset the states of all the context of the coder/decoder (each context is set to a state where 0 and 1 are more or less equiprobable).

Parameters:
_pmMqcMQC handle.
static LSINT32 LSE_CALL lsi::CMqc::mqc_restart_enc ( opj_mqc_t _pmMqc) [static]

RESTART mode switch (TERMALL).

Parameters:
_pmMqcMQC handle.
Returns:
Returns 1 (always).
static LSVOID LSE_CALL lsi::CMqc::mqc_restart_init_enc ( opj_mqc_t _pmMqc) [static]

RESTART mode switch (TERMALL) reinitialisation.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_segmark_enc ( opj_mqc_t _pmMqc) [static]

SEGMARK mode switch (SEGSYM).

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_setbits ( opj_mqc_t _pmMqc) [static, protected]

Fill _pmMqc->c with 1's for flushing.

Parameters:
_pmMqcMQC handle.
static LSVOID LSE_CALL lsi::CMqc::mqc_setstate ( opj_mqc_t _pmMqc,
LSINT32  _i32ContextNo,
LSINT32  _i32Msb,
LSINT32  _i32Prob 
) [static]

Set the state of a particular context.

Parameters:
_pmMqcMQC handle.
_i32ContextNoNumber that identifies the context.
_i32MsbThe MSB of the new state of the context.
_i32ProbNumber that identifies the probability of the symbols for the new state of the context.

Member Data Documentation

opj_mqc_state_t lsi::CMqc::mqc_states[47 *2] [static, protected]

This array defines all the possible states for a context.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator