OpenJPEG: mqc.c File Reference

OpenJPEG 2.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Functions | Variables
mqc.c File Reference
`#include "opj_includes.h"`

## Functions
opj_mqc_t * | opj_mqc_create (void)
| Create a new MQC handle. More...
void | opj_mqc_destroy (opj_mqc_t *mqc)
| Destroy a previously created MQC handle. More...
OPJ_UINT32 | opj_mqc_numbytes (opj_mqc_t *mqc)
| Return the number of bytes written/read since initialisation. More...
void | opj_mqc_init_enc (opj_mqc_t *mqc, OPJ_BYTE *bp)
| Initialize the encoder. More...
void | opj_mqc_encode (opj_mqc_t *mqc, OPJ_UINT32 d)
| Encode a symbol using the MQ-coder. More...
void | opj_mqc_flush (opj_mqc_t *mqc)
| Flush the encoder, so that all remaining data is written. More...
void | opj_mqc_bypass_init_enc (opj_mqc_t *mqc)
| BYPASS mode switch, initialization operation. More...
void | opj_mqc_bypass_enc (opj_mqc_t *mqc, OPJ_UINT32 d)
| BYPASS mode switch, coding operation. More...
OPJ_UINT32 | opj_mqc_bypass_flush_enc (opj_mqc_t *mqc)
| BYPASS mode switch, flush operation. More...
void | opj_mqc_reset_enc (opj_mqc_t *mqc)
| RESET mode switch. More...
OPJ_UINT32 | opj_mqc_restart_enc (opj_mqc_t *mqc)
| RESTART mode switch (TERMALL) More...
void | opj_mqc_restart_init_enc (opj_mqc_t *mqc)
| RESTART mode switch (TERMALL) reinitialisation. More...
void | opj_mqc_erterm_enc (opj_mqc_t *mqc)
| ERTERM mode switch (PTERM) More...
void | opj_mqc_segmark_enc (opj_mqc_t *mqc)
| SEGMARK mode switch (SEGSYM) More...
OPJ_BOOL | opj_mqc_init_dec (opj_mqc_t *mqc, OPJ_BYTE *bp, OPJ_UINT32 len)
| Initialize the decoder. More...
OPJ_INT32 | opj_mqc_decode (opj_mqc_t *const mqc)
| Decode a symbol. More...
void | opj_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 | opj_mqc_setstate (opj_mqc_t *mqc, OPJ_UINT32 ctxno, OPJ_UINT32 msb, OPJ_INT32 prob)
| Set the state of a particular context. More...
Local static functions
static void | opj_mqc_byteout (opj_mqc_t *mqc)
| Output a byte, doing bit-stuffing if necessary. More...
static void | opj_mqc_renorme (opj_mqc_t *mqc)
| Renormalize mqc->a and mqc->c while encoding, so that mqc->a stays between 0x8000 and 0x10000. More...
static void | opj_mqc_codemps (opj_mqc_t *mqc)
| Encode the most probable symbol. More...
static void | opj_mqc_codelps (opj_mqc_t *mqc)
| Encode the most least symbol. More...
static void | opj_mqc_setbits (opj_mqc_t *mqc)
| Fill mqc->c with 1's for flushing. More...
static INLINE OPJ_INT32 | opj_mqc_mpsexchange (opj_mqc_t *const mqc)
| FIXME DOC. More...
static INLINE OPJ_INT32 | opj_mqc_lpsexchange (opj_mqc_t *const mqc)
| FIXME DOC. More...
static INLINE void | opj_mqc_bytein (opj_mqc_t *const mqc)
| Input a byte. More...
static INLINE void | opj_mqc_renormd (opj_mqc_t *const mqc)
| Renormalize mqc->a and mqc->c while decoding. More...

## Variables
static opj_mqc_state_t | mqc_states [47 *2]

## Variable Documentation

opj_mqc_state_t mqc_states[47 *2]
| static

Referenced by opj_mqc_resetstates().