63 #define JPEG2000_MAX_CBLKW 64
64 #define JPEG2000_MAX_CBLKH 64
68 #define JPEG2000_T1_SIG_N 0x0001
69 #define JPEG2000_T1_SIG_E 0x0002
70 #define JPEG2000_T1_SIG_W 0x0004
71 #define JPEG2000_T1_SIG_S 0x0008
72 #define JPEG2000_T1_SIG_NE 0x0010
73 #define JPEG2000_T1_SIG_NW 0x0020
74 #define JPEG2000_T1_SIG_SE 0x0040
75 #define JPEG2000_T1_SIG_SW 0x0080
76 #define JPEG2000_T1_SIG_NB (JPEG2000_T1_SIG_N | JPEG2000_T1_SIG_E | JPEG2000_T1_SIG_S | JPEG2000_T1_SIG_W \
77 |JPEG2000_T1_SIG_NE | JPEG2000_T1_SIG_NW | JPEG2000_T1_SIG_SE | JPEG2000_T1_SIG_SW)
79 #define JPEG2000_T1_SGN_N 0x0100
80 #define JPEG2000_T1_SGN_S 0x0200
81 #define JPEG2000_T1_SGN_W 0x0400
82 #define JPEG2000_T1_SGN_E 0x0800
84 #define JPEG2000_T1_VIS 0x1000
85 #define JPEG2000_T1_SIG 0x2000
86 #define JPEG2000_T1_REF 0x4000
88 #define JPEG2000_T1_SGN 0x8000
91 #define JPEG2000_CBLK_BYPASS 0x01 // Selective arithmetic coding bypass
92 #define JPEG2000_CBLK_RESET 0x02 // Reset context probabilities
93 #define JPEG2000_CBLK_TERMALL 0x04 // Terminate after each coding pass
94 #define JPEG2000_CBLK_VSC 0x08 // Vertical stripe causal context formation
95 #define JPEG2000_CBLK_PREDTERM 0x10 // Predictable termination
96 #define JPEG2000_CBLK_SEGSYM 0x20 // Segmentation symbols present
99 #define JPEG2000_CSTY_PREC 0x01 // Precincts defined in coding style
100 #define JPEG2000_CSTY_SOP 0x02 // SOP marker present
101 #define JPEG2000_CSTY_EPH 0x04 // EPH marker present
130 uint16_t mant[32 * 3];
153 uint16_t xi0, xi1, yi0,
yi1;
159 uint16_t coord[2][2];
169 uint16_t coord[2][2];
179 uint16_t coord[2][2];
186 void ff_j2k_printv(
int *
tab,
int l);
193 return (a + (1 << b) - 1)>>
b;
198 return (a + b - 1) /
b;
219 return refctxno_lut[(flag>>14)&1][(flag & 255) != 0];