45 #define T1_NMSEDEC_BITS 7
47 #define T1_SIG_NE 0x0001
48 #define T1_SIG_SE 0x0002
49 #define T1_SIG_SW 0x0004
50 #define T1_SIG_NW 0x0008
51 #define T1_SIG_N 0x0010
52 #define T1_SIG_E 0x0020
53 #define T1_SIG_S 0x0040
54 #define T1_SIG_W 0x0080
55 #define T1_SIG_OTH (T1_SIG_N|T1_SIG_NE|T1_SIG_E|T1_SIG_SE|T1_SIG_S|T1_SIG_SW|T1_SIG_W|T1_SIG_NW)
56 #define T1_SIG_PRIM (T1_SIG_N|T1_SIG_E|T1_SIG_S|T1_SIG_W)
58 #define T1_SGN_N 0x0100
59 #define T1_SGN_E 0x0200
60 #define T1_SGN_S 0x0400
61 #define T1_SGN_W 0x0800
62 #define T1_SGN (T1_SGN_N|T1_SGN_E|T1_SGN_S|T1_SGN_W)
65 #define T1_REFINE 0x2000
66 #define T1_VISIT 0x4000
68 #define T1_NUMCTXS_ZC 9
69 #define T1_NUMCTXS_SC 5
70 #define T1_NUMCTXS_MAG 3
71 #define T1_NUMCTXS_AGG 1
72 #define T1_NUMCTXS_UNI 1
75 #define T1_CTXNO_SC (T1_CTXNO_ZC+T1_NUMCTXS_ZC)
76 #define T1_CTXNO_MAG (T1_CTXNO_SC+T1_NUMCTXS_SC)
77 #define T1_CTXNO_AGG (T1_CTXNO_MAG+T1_NUMCTXS_MAG)
78 #define T1_CTXNO_UNI (T1_CTXNO_AGG+T1_NUMCTXS_AGG)
79 #define T1_NUMCTXS (T1_CTXNO_UNI+T1_NUMCTXS_UNI)
81 #define T1_NMSEDEC_FRACBITS (T1_NMSEDEC_BITS-1)
111 #define MACRO_t1_flags(x,y) t1->flags[((x)*(t1->flags_stride))+(y)]
struct opj_t1 opj_t1_t
Tier-1 coding (coding of code-block coefficients)
Tier-1 coding (coding of code-block coefficients)
Definition: t1.h:93
Tile-component coding parameters.
Definition: j2k.h:134
void t1_encode_cblks(opj_t1_t *t1, opj_tcd_tile_t *tile, opj_tcp_t *tcp)
Encode the code-blocks of a tile.
Definition: t1.c:1413
void t1_destroy(opj_t1_t *t1)
Destroy a previously created T1 handle.
Definition: t1.c:1400
RAW encoding operations.
Definition: raw.h:46
opj_mqc_t * mqc
MQC component.
Definition: t1.h:98
int h
Definition: t1.h:105
short flag_t
Definition: t1.h:88
opj_raw_t * raw
RAW component.
Definition: t1.h:100
int * data
Definition: t1.h:102
int flags_stride
Definition: t1.h:108
int datasize
Definition: t1.h:106
flag_t * flags
Definition: t1.h:103
opj_t1_t * t1_create(opj_common_ptr cinfo)
Create a new T1 handle and initialize the look-up tables of the Tier-1 coder/decoder.
Definition: t1.c:1382
opj_common_ptr cinfo
codec context
Definition: t1.h:95
int w
Definition: t1.h:104
void t1_decode_cblks(opj_t1_t *t1, opj_tcd_tilecomp_t *tilec, opj_tccp_t *tccp)
Decode the code-blocks of a tile.
Definition: t1.c:1508
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition: j2k.h:166
FIXME: documentation.
Definition: tcd.h:151
int flagssize
Definition: t1.h:107
FIXME: documentation.
Definition: tcd.h:140
MQ coder.
Definition: mqc.h:64
Definition: openjpeg.h:430