OpenJPEG  1.5.1
Functions
t1.c File Reference
#include "opj_includes.h"
#include "t1_luts.h"

Functions

static opj_bool allocate_buffers (opj_t1_t *t1, int w, int h)
 
opj_t1_tt1_create (opj_common_ptr cinfo)
 Create a new T1 handle and initialize the look-up tables of the Tier-1 coder/decoder. More...
 
void t1_destroy (opj_t1_t *t1)
 Destroy a previously created T1 handle. More...
 
void t1_encode_cblks (opj_t1_t *t1, opj_tcd_tile_t *tile, opj_tcp_t *tcp)
 Encode the code-blocks of a tile. More...
 
void t1_decode_cblks (opj_t1_t *t1, opj_tcd_tilecomp_t *tilec, opj_tccp_t *tccp)
 Decode the code-blocks of a tile. More...
 
Local static functions
static INLINE char t1_getctxno_zc (int f, int orient)
 
static char t1_getctxno_sc (int f)
 
static INLINE int t1_getctxno_mag (int f)
 
static char t1_getspb (int f)
 
static short t1_getnmsedec_sig (int x, int bitpos)
 
static short t1_getnmsedec_ref (int x, int bitpos)
 
static void t1_updateflags (flag_t *flagsp, int s, int stride)
 
static void t1_enc_sigpass_step (opj_t1_t *t1, flag_t *flagsp, int *datap, int orient, int bpno, int one, int *nmsedec, char type, int vsc)
 Encode significant pass. More...
 
static INLINE void t1_dec_sigpass_step_raw (opj_t1_t *t1, flag_t *flagsp, int *datap, int orient, int oneplushalf, int vsc)
 Decode significant pass. More...
 
static INLINE void t1_dec_sigpass_step_mqc (opj_t1_t *t1, flag_t *flagsp, int *datap, int orient, int oneplushalf)
 
static INLINE void t1_dec_sigpass_step_mqc_vsc (opj_t1_t *t1, flag_t *flagsp, int *datap, int orient, int oneplushalf, int vsc)
 
static void t1_enc_sigpass (opj_t1_t *t1, int bpno, int orient, int *nmsedec, char type, int cblksty)
 Encode significant pass. More...
 
static void t1_dec_sigpass_raw (opj_t1_t *t1, int bpno, int orient, int cblksty)
 Decode significant pass. More...
 
static void t1_dec_sigpass_mqc (opj_t1_t *t1, int bpno, int orient)
 
static void t1_dec_sigpass_mqc_vsc (opj_t1_t *t1, int bpno, int orient)
 
static void t1_enc_refpass_step (opj_t1_t *t1, flag_t *flagsp, int *datap, int bpno, int one, int *nmsedec, char type, int vsc)
 Encode refinement pass. More...
 
static INLINE void t1_dec_refpass_step_raw (opj_t1_t *t1, flag_t *flagsp, int *datap, int poshalf, int neghalf, int vsc)
 Decode refinement pass. More...
 
static INLINE void t1_dec_refpass_step_mqc (opj_t1_t *t1, flag_t *flagsp, int *datap, int poshalf, int neghalf)
 
static INLINE void t1_dec_refpass_step_mqc_vsc (opj_t1_t *t1, flag_t *flagsp, int *datap, int poshalf, int neghalf, int vsc)
 
static void t1_enc_refpass (opj_t1_t *t1, int bpno, int *nmsedec, char type, int cblksty)
 Encode refinement pass. More...
 
static void t1_dec_refpass_raw (opj_t1_t *t1, int bpno, int cblksty)
 Decode refinement pass. More...
 
static void t1_dec_refpass_mqc (opj_t1_t *t1, int bpno)
 
static void t1_dec_refpass_mqc_vsc (opj_t1_t *t1, int bpno)
 
static void t1_enc_clnpass_step (opj_t1_t *t1, flag_t *flagsp, int *datap, int orient, int bpno, int one, int *nmsedec, int partial, int vsc)
 Encode clean-up pass. More...
 
static void t1_dec_clnpass_step_partial (opj_t1_t *t1, flag_t *flagsp, int *datap, int orient, int oneplushalf)
 Decode clean-up pass. More...
 
static void t1_dec_clnpass_step (opj_t1_t *t1, flag_t *flagsp, int *datap, int orient, int oneplushalf)
 
static void t1_dec_clnpass_step_vsc (opj_t1_t *t1, flag_t *flagsp, int *datap, int orient, int oneplushalf, int partial, int vsc)
 
static void t1_enc_clnpass (opj_t1_t *t1, int bpno, int orient, int *nmsedec, int cblksty)
 Encode clean-up pass. More...
 
static void t1_dec_clnpass (opj_t1_t *t1, int bpno, int orient, int cblksty)
 Decode clean-up pass. More...
 
static double t1_getwmsedec (int nmsedec, int compno, int level, int orient, int bpno, int qmfbid, double stepsize, int numcomps, int mct)
 mod fixed_quality More...
 
static void t1_encode_cblk (opj_t1_t *t1, opj_tcd_cblk_enc_t *cblk, int orient, int compno, int level, int qmfbid, double stepsize, int cblksty, int numcomps, int mct, opj_tcd_tile_t *tile)
 Encode 1 code-block. More...
 
static void t1_decode_cblk (opj_t1_t *t1, opj_tcd_cblk_dec_t *cblk, int orient, int roishift, int cblksty)
 Decode 1 code-block. More...
 

Function Documentation

static opj_bool allocate_buffers ( opj_t1_t t1,
int  w,
int  h 
)
static