Lines Matching refs:OPJ_UINT32
62 #define opj_t1_setcurctx(curctx, ctxno) curctx = &(mqc)->ctxs[(OPJ_UINT32)(ctxno)]
67 static INLINE OPJ_BYTE opj_t1_getctxno_zc(opj_mqc_t *mqc, OPJ_UINT32 f);
68 static INLINE OPJ_UINT32 opj_t1_getctxno_mag(OPJ_UINT32 f);
69 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos);
70 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos);
71 static INLINE void opj_t1_update_flags(opj_flag_t *flagsp, OPJ_UINT32 ci,
72 OPJ_UINT32 s, OPJ_UINT32 stride,
73 OPJ_UINT32 vsc);
85 OPJ_UINT32 vsc,
86 OPJ_UINT32 row);
92 OPJ_UINT32 row,
93 OPJ_UINT32 flags_stride,
94 OPJ_UINT32 vsc);
103 OPJ_UINT32 cblksty);
138 OPJ_UINT32 row);
144 OPJ_UINT32 row);
156 OPJ_UINT32 row,
157 OPJ_UINT32 vsc);
166 OPJ_UINT32 cblksty);
170 OPJ_UINT32 compno,
171 OPJ_UINT32 level,
172 OPJ_UINT32 orient,
174 OPJ_UINT32 qmfbid,
176 OPJ_UINT32 numcomps,
178 OPJ_UINT32 mct_numcomps);
182 OPJ_UINT32 orient,
183 OPJ_UINT32 compno,
184 OPJ_UINT32 level,
185 OPJ_UINT32 qmfbid,
187 OPJ_UINT32 cblksty,
188 OPJ_UINT32 numcomps,
191 OPJ_UINT32 mct_numcomps);
206 OPJ_UINT32 orient,
207 OPJ_UINT32 roishift,
208 OPJ_UINT32 cblksty,
214 OPJ_UINT32 w,
215 OPJ_UINT32 h);
223 static INLINE OPJ_BYTE opj_t1_getctxno_zc(opj_mqc_t *mqc, OPJ_UINT32 f) in opj_t1_getctxno_zc()
228 static INLINE OPJ_UINT32 opj_t1_getctxtno_sc_or_spb_index(OPJ_UINT32 fX, in opj_t1_getctxtno_sc_or_spb_index()
229 OPJ_UINT32 pfX, in opj_t1_getctxtno_sc_or_spb_index()
230 OPJ_UINT32 nfX, in opj_t1_getctxtno_sc_or_spb_index()
231 OPJ_UINT32 ci) in opj_t1_getctxtno_sc_or_spb_index()
244 OPJ_UINT32 lu = (fX >> (ci * 3U)) & (T1_SIGMA_1 | T1_SIGMA_3 | T1_SIGMA_5 | in opj_t1_getctxtno_sc_or_spb_index()
258 static INLINE OPJ_BYTE opj_t1_getctxno_sc(OPJ_UINT32 lu) in opj_t1_getctxno_sc()
263 static INLINE OPJ_UINT32 opj_t1_getctxno_mag(OPJ_UINT32 f) in opj_t1_getctxno_mag()
265 OPJ_UINT32 tmp = (f & T1_SIGMA_NEIGHBOURS) ? T1_CTXNO_MAG + 1 : T1_CTXNO_MAG; in opj_t1_getctxno_mag()
266 OPJ_UINT32 tmp2 = (f & T1_MU_0) ? T1_CTXNO_MAG + 2 : tmp; in opj_t1_getctxno_mag()
270 static INLINE OPJ_BYTE opj_t1_getspb(OPJ_UINT32 lu) in opj_t1_getspb()
275 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos) in opj_t1_getnmsedec_sig()
284 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos) in opj_t1_getnmsedec_ref()
322 static INLINE void opj_t1_update_flags(opj_flag_t *flagsp, OPJ_UINT32 ci, in opj_t1_update_flags()
323 OPJ_UINT32 s, OPJ_UINT32 stride, in opj_t1_update_flags()
324 OPJ_UINT32 vsc) in opj_t1_update_flags()
339 OPJ_UINT32 ci, in opj_t1_enc_sigpass_step()
340 OPJ_UINT32 vsc) in opj_t1_enc_sigpass_step()
342 OPJ_UINT32 v; in opj_t1_enc_sigpass_step()
346 OPJ_UINT32 const flags = *flagsp; in opj_t1_enc_sigpass_step()
350 OPJ_UINT32 ctxt1 = opj_t1_getctxno_zc(mqc, flags >> (ci * 3U)); in opj_t1_enc_sigpass_step()
362 OPJ_UINT32 lu = opj_t1_getctxtno_sc_or_spb_index( in opj_t1_enc_sigpass_step()
366 OPJ_UINT32 ctxt2 = opj_t1_getctxno_sc(lu); in opj_t1_enc_sigpass_step()
368 *nmsedec += opj_t1_getnmsedec_sig((OPJ_UINT32)opj_int_abs(*datap), in opj_t1_enc_sigpass_step()
369 (OPJ_UINT32)bpno); in opj_t1_enc_sigpass_step()
377 OPJ_UINT32 spb = opj_t1_getspb(lu); in opj_t1_enc_sigpass_step()
394 OPJ_UINT32 vsc, in opj_t1_dec_sigpass_step_raw()
395 OPJ_UINT32 ci) in opj_t1_dec_sigpass_step_raw()
397 OPJ_UINT32 v; in opj_t1_dec_sigpass_step_raw()
400 OPJ_UINT32 const flags = *flagsp; in opj_t1_dec_sigpass_step_raw()
419 OPJ_UINT32 ctxt1 = opj_t1_getctxno_zc(mqc, flags >> (ci * 3U)); \
423 OPJ_UINT32 lu = opj_t1_getctxtno_sc_or_spb_index( \
427 OPJ_UINT32 ctxt2 = opj_t1_getctxno_sc(lu); \
428 OPJ_UINT32 spb = opj_t1_getspb(lu); \
444 OPJ_UINT32 ci, in opj_t1_dec_sigpass_step_mqc()
445 OPJ_UINT32 flags_stride, in opj_t1_dec_sigpass_step_mqc()
446 OPJ_UINT32 vsc) in opj_t1_dec_sigpass_step_mqc()
448 OPJ_UINT32 v; in opj_t1_dec_sigpass_step_mqc()
460 OPJ_UINT32 cblksty in opj_t1_enc_sigpass()
463 OPJ_UINT32 i, k; in opj_t1_enc_sigpass()
466 OPJ_UINT32 const extra = 2; in opj_t1_enc_sigpass()
527 OPJ_UINT32 j; in opj_t1_enc_sigpass()
563 OPJ_UINT32 i, j, k; in opj_t1_dec_sigpass_raw()
566 const OPJ_UINT32 l_w = t1->w; in opj_t1_dec_sigpass_raw()
624 OPJ_UINT32 i, j, k; \
627 const OPJ_UINT32 l_w = w; \
630 register OPJ_UINT32 v; \
725 OPJ_UINT32 ci) in opj_t1_enc_refpass_step()
727 OPJ_UINT32 v; in opj_t1_enc_refpass_step()
731 OPJ_UINT32 const shift_flags = in opj_t1_enc_refpass_step()
735 OPJ_UINT32 ctxt = opj_t1_getctxno_mag(shift_flags); in opj_t1_enc_refpass_step()
736 *nmsedec += opj_t1_getnmsedec_ref((OPJ_UINT32)opj_int_abs(*datap), in opj_t1_enc_refpass_step()
737 (OPJ_UINT32)bpno); in opj_t1_enc_refpass_step()
758 OPJ_UINT32 ci) in opj_t1_dec_refpass_step_raw()
760 OPJ_UINT32 v; in opj_t1_dec_refpass_step_raw()
777 OPJ_UINT32 ctxt = opj_t1_getctxno_mag(flags >> (ci * 3U)); \
790 OPJ_UINT32 ci) in opj_t1_dec_refpass_step_mqc()
792 OPJ_UINT32 v; in opj_t1_dec_refpass_step_mqc()
806 OPJ_UINT32 i, k; in opj_t1_enc_refpass()
809 const OPJ_UINT32 extra = 2U; in opj_t1_enc_refpass()
877 OPJ_UINT32 j; in opj_t1_enc_refpass()
912 OPJ_UINT32 i, j, k; in opj_t1_dec_refpass_raw()
915 const OPJ_UINT32 l_w = t1->w; in opj_t1_dec_refpass_raw()
966 OPJ_UINT32 i, j, k; \
969 const OPJ_UINT32 l_w = w; \
972 register OPJ_UINT32 v; \
1040 OPJ_UINT32 agg, in opj_t1_enc_clnpass_step()
1041 OPJ_UINT32 runlen, in opj_t1_enc_clnpass_step()
1042 OPJ_UINT32 lim, in opj_t1_enc_clnpass_step()
1043 OPJ_UINT32 cblksty) in opj_t1_enc_clnpass_step()
1045 OPJ_UINT32 v; in opj_t1_enc_clnpass_step()
1046 OPJ_UINT32 ci; in opj_t1_enc_clnpass_step()
1049 const OPJ_UINT32 check = (T1_SIGMA_4 | T1_SIGMA_7 | T1_SIGMA_10 | T1_SIGMA_13 | in opj_t1_enc_clnpass_step()
1066 OPJ_UINT32 vsc; in opj_t1_enc_clnpass_step()
1068 OPJ_UINT32 ctxt1; in opj_t1_enc_clnpass_step()
1085 OPJ_UINT32 ctxt2, spb; in opj_t1_enc_clnpass_step()
1086 OPJ_UINT32 lu; in opj_t1_enc_clnpass_step()
1092 *nmsedec += opj_t1_getnmsedec_sig((OPJ_UINT32)opj_int_abs(*datap), in opj_t1_enc_clnpass_step()
1093 (OPJ_UINT32)bpno); in opj_t1_enc_clnpass_step()
1123 OPJ_UINT32 ctxt1 = opj_t1_getctxno_zc(mqc, flags >> (ci * 3U)); \
1130 OPJ_UINT32 lu = opj_t1_getctxtno_sc_or_spb_index( \
1148 OPJ_UINT32 ci, in opj_t1_dec_clnpass_step()
1149 OPJ_UINT32 vsc) in opj_t1_dec_clnpass_step()
1151 OPJ_UINT32 v; in opj_t1_dec_clnpass_step()
1164 OPJ_UINT32 cblksty) in opj_t1_enc_clnpass()
1166 OPJ_UINT32 i, k; in opj_t1_enc_clnpass()
1168 OPJ_UINT32 agg, runlen; in opj_t1_enc_clnpass()
1247 OPJ_UINT32 runlen; \
1248 OPJ_UINT32 i, j, k; \
1249 const OPJ_UINT32 l_w = w; \
1254 register OPJ_UINT32 v; \
1262 OPJ_UINT32 partial = OPJ_TRUE; \
1337 OPJ_UINT32 v, v2; in opj_t1_dec_clnpass_check_segsym()
1409 OPJ_UINT32 compno, in opj_t1_getwmsedec()
1410 OPJ_UINT32 level, in opj_t1_getwmsedec()
1411 OPJ_UINT32 orient, in opj_t1_getwmsedec()
1413 OPJ_UINT32 qmfbid, in opj_t1_getwmsedec()
1415 OPJ_UINT32 numcomps, in opj_t1_getwmsedec()
1417 OPJ_UINT32 mct_numcomps) in opj_t1_getwmsedec()
1440 OPJ_UINT32 w, in opj_t1_allocate_buffers()
1441 OPJ_UINT32 h) in opj_t1_allocate_buffers()
1443 OPJ_UINT32 flagssize; in opj_t1_allocate_buffers()
1444 OPJ_UINT32 flags_stride; in opj_t1_allocate_buffers()
1454 OPJ_UINT32 datasize = w * h; in opj_t1_allocate_buffers()
1478 OPJ_UINT32 x; in opj_t1_allocate_buffers()
1479 OPJ_UINT32 flags_height = (h + 3U) / 4U; in opj_t1_allocate_buffers()
1508 OPJ_UINT32 v = 0; in opj_t1_allocate_buffers()
1581 OPJ_UINT32 resno;
1605 OPJ_UINT32 cblk_w, cblk_h; in opj_t1_clbl_decode_processor()
1607 OPJ_UINT32 i, j; in opj_t1_clbl_decode_processor()
1610 OPJ_UINT32 resno; in opj_t1_clbl_decode_processor()
1611 OPJ_UINT32 tile_w; in opj_t1_clbl_decode_processor()
1618 cblk_w = (OPJ_UINT32)(cblk->x1 - cblk->x0); in opj_t1_clbl_decode_processor()
1619 cblk_h = (OPJ_UINT32)(cblk->y1 - cblk->y0); in opj_t1_clbl_decode_processor()
1649 tile_w = (OPJ_UINT32)(tilec->resolutions[tilec->minimum_num_resolutions - 1].x1 in opj_t1_clbl_decode_processor()
1669 (OPJ_UINT32)tccp->roishift, in opj_t1_clbl_decode_processor()
1722 OPJ_UINT32 cblk_size = cblk_w * cblk_h; in opj_t1_clbl_decode_processor()
1760 for (; i < (cblk_w & ~(OPJ_UINT32)3U); i += 4U) { in opj_t1_clbl_decode_processor()
1804 OPJ_UINT32 resno, bandno, precno, cblkno; in opj_t1_decode_cblks()
1807 OPJ_UINT32 codeblocks_decoded = 0; in opj_t1_decode_cblks()
1824 (OPJ_UINT32)precinct->x0, in opj_t1_decode_cblks()
1825 (OPJ_UINT32)precinct->y0, in opj_t1_decode_cblks()
1826 (OPJ_UINT32)precinct->x1, in opj_t1_decode_cblks()
1827 (OPJ_UINT32)precinct->y1)) { in opj_t1_decode_cblks()
1850 (OPJ_UINT32)cblk->x0, in opj_t1_decode_cblks()
1851 (OPJ_UINT32)cblk->y0, in opj_t1_decode_cblks()
1852 (OPJ_UINT32)cblk->x1, in opj_t1_decode_cblks()
1853 (OPJ_UINT32)cblk->y1)) { in opj_t1_decode_cblks()
1866 OPJ_UINT32 cblk_w = (OPJ_UINT32)(cblk->x1 - cblk->x0); in opj_t1_decode_cblks()
1867 OPJ_UINT32 cblk_h = (OPJ_UINT32)(cblk->y1 - cblk->y0); in opj_t1_decode_cblks()
1922 OPJ_UINT32 orient, in opj_t1_decode_cblk()
1923 OPJ_UINT32 roishift, in opj_t1_decode_cblk()
1924 OPJ_UINT32 cblksty, in opj_t1_decode_cblk()
1932 OPJ_UINT32 passtype; in opj_t1_decode_cblk()
1933 OPJ_UINT32 segno, passno; in opj_t1_decode_cblk()
1935 OPJ_UINT32 cblkdataindex = 0; in opj_t1_decode_cblk()
1943 (OPJ_UINT32)(cblk->x1 - cblk->x0), in opj_t1_decode_cblk()
1944 (OPJ_UINT32)(cblk->y1 - cblk->y0))) { in opj_t1_decode_cblk()
1972 OPJ_UINT32 i; in opj_t1_decode_cblk()
1973 OPJ_UINT32 cblk_len; in opj_t1_decode_cblk()
2109 OPJ_UINT32 mct_numcomps in opj_t1_encode_cblks()
2112 OPJ_UINT32 compno, resno, bandno, precno, cblkno; in opj_t1_encode_cblks()
2119 OPJ_UINT32 tile_w = (OPJ_UINT32)(tilec->x1 - tilec->x0); in opj_t1_encode_cblks()
2140 OPJ_UINT32 cblk_w; in opj_t1_encode_cblks()
2141 OPJ_UINT32 cblk_h; in opj_t1_encode_cblks()
2142 OPJ_UINT32 i, j, tileLineAdvance; in opj_t1_encode_cblks()
2158 (OPJ_UINT32)(cblk->x1 - cblk->x0), in opj_t1_encode_cblks()
2159 (OPJ_UINT32)(cblk->y1 - cblk->y0))) { in opj_t1_encode_cblks()
2179 OPJ_UINT32* OPJ_RESTRICT tiledp_u = (OPJ_UINT32*) tiledp; in opj_t1_encode_cblks()
2225 OPJ_UINT32 cblksty, in opj_t1_enc_is_term_pass()
2227 OPJ_UINT32 passtype) in opj_t1_enc_is_term_pass()
2257 OPJ_UINT32 orient, in opj_t1_encode_cblk()
2258 OPJ_UINT32 compno, in opj_t1_encode_cblk()
2259 OPJ_UINT32 level, in opj_t1_encode_cblk()
2260 OPJ_UINT32 qmfbid, in opj_t1_encode_cblk()
2262 OPJ_UINT32 cblksty, in opj_t1_encode_cblk()
2263 OPJ_UINT32 numcomps, in opj_t1_encode_cblk()
2266 OPJ_UINT32 mct_numcomps) in opj_t1_encode_cblk()
2272 OPJ_UINT32 passno; in opj_t1_encode_cblk()
2274 OPJ_UINT32 passtype; in opj_t1_encode_cblk()
2277 OPJ_UINT32 i, j; in opj_t1_encode_cblk()
2296 cblk->numbps = max ? (OPJ_UINT32)((opj_int_floorlog2(max) + 1) - in opj_t1_encode_cblk()
2364 OPJ_UINT32 rate_extra_bytes; in opj_t1_encode_cblk()
2390 OPJ_UINT32 last_pass_rate = opj_mqc_numbytes(mqc); in opj_t1_encode_cblk()
2418 OPJ_UINT32 i; in opj_t1_encode_cblk()
2419 OPJ_UINT32 len = opj_mqc_numbytes(mqc); in opj_t1_encode_cblk()