OpenJPEG  1.5.1
Data Structures | Macros | Typedefs
mqc.h File Reference


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

Go to the source code of this file.

Data Structures

struct  opj_mqc_state
 
This struct defines the state of a context. More...
 
struct  opj_mqc
 
MQ coder More...
 

Macros

#define MQC_NUMCTXS   19
 

Typedefs

typedef struct opj_mqc_state opj_mqc_state_t
 
This struct defines the state of a context. More...
 
typedef struct opj_mqc opj_mqc_t
 
MQ coder More...
 

Exported functions

#define mqc_setcurctx(mqc, ctxno)   (mqc)->curctx = &(mqc)->ctxs[(int)(ctxno)]
 
Set the current context used for coding/decoding More...
 
opj_mqc_tmqc_create (void)
 
Create a new MQC handle More...
 
void mqc_destroy (opj_mqc_t *mqc)
 
Destroy a previously created MQC handle More...
 
int mqc_numbytes (opj_mqc_t *mqc)
 
Return the number of bytes written/read since initialisation More...
 
void mqc_resetstates (opj_mqc_t *mqc)
 
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) More...
 
void mqc_setstate (opj_mqc_t *mqc, int ctxno, int msb, int prob)
 
Set the state of a particular context More...
 
void mqc_init_enc (opj_mqc_t *mqc, unsigned char *bp)
 
Initialize the encoder More...
 
void mqc_encode (opj_mqc_t *mqc, int d)
 
Encode a symbol using the MQ-coder More...
 
void mqc_flush (opj_mqc_t *mqc)
 
Flush the encoder, so that all remaining data is written More...
 
void mqc_bypass_init_enc (opj_mqc_t *mqc)
 
BYPASS mode switch, initialization operation. More...
 
void mqc_bypass_enc (opj_mqc_t *mqc, int d)
 
BYPASS mode switch, coding operation. More...
 
int mqc_bypass_flush_enc (opj_mqc_t *mqc)
 
BYPASS mode switch, flush operation More...
 
void mqc_reset_enc (opj_mqc_t *mqc)
 
RESET mode switch More...
 
int mqc_restart_enc (opj_mqc_t *mqc)
 
RESTART mode switch (TERMALL) More...
 
void mqc_restart_init_enc (opj_mqc_t *mqc)
 
RESTART mode switch (TERMALL) reinitialisation More...
 
void mqc_erterm_enc (opj_mqc_t *mqc)
 
ERTERM mode switch (PTERM) More...
 
void mqc_segmark_enc (opj_mqc_t *mqc)
 
SEGMARK mode switch (SEGSYM) More...
 
void mqc_init_dec (opj_mqc_t *mqc, unsigned char *bp, int len)
 
Initialize the decoder More...
 
int mqc_decode (opj_mqc_t *const mqc)
 
Decode a symbol More...
 

Detailed Description


Implementation of an MQ-Coder (MQC)

The functions in MQC.C have for goal to realize the MQ-coder operations. The functions in MQC.C are used by some function in T1.C.