Home
last modified time | relevance | path

Searched refs:OPJ_UINT32 (Results 1 – 25 of 55) sorted by relevance

123

/external/pdfium/third_party/libopenjpeg20/
Dtcd.h57 OPJ_UINT32 dataindex;
58 OPJ_UINT32 numpasses;
59 OPJ_UINT32 real_num_passes;
60 OPJ_UINT32 len;
61 OPJ_UINT32 maxpasses;
62 OPJ_UINT32 numnewpasses;
63 OPJ_UINT32 newlen;
70 OPJ_UINT32 rate;
72 OPJ_UINT32 len;
73 OPJ_UINT32 term : 1;
[all …]
Dj2k.h179 OPJ_UINT32 csty;
181 OPJ_UINT32 numresolutions;
183 OPJ_UINT32 cblkw;
185 OPJ_UINT32 cblkh;
187 OPJ_UINT32 cblksty;
189 OPJ_UINT32 qmfbid;
191 OPJ_UINT32 qntsty;
195 OPJ_UINT32 numgbits;
199 OPJ_UINT32 prcw[OPJ_J2K_MAXRLVLS];
201 OPJ_UINT32 prch[OPJ_J2K_MAXRLVLS];
[all …]
Dopenjpeg.h126 typedef uint32_t OPJ_UINT32; typedef
327 OPJ_UINT32 resno0, compno0;
329 OPJ_UINT32 layno1, resno1, compno1;
331 OPJ_UINT32 layno0, precno0, precno1;
337 OPJ_UINT32 tile;
341 OPJ_UINT32 layS, resS, compS, prcS;
343 OPJ_UINT32 layE, resE, compE, prcE;
345 OPJ_UINT32 txS,txE,tyS,tyE,dx,dy;
347 OPJ_UINT32 lay_t, res_t, comp_t, prc_t,tx0_t,ty0_t;
381 OPJ_UINT32 numpocs;
[all …]
Djp2.h123 OPJ_UINT32 *entries;
137 OPJ_UINT32 icc_profile_len;
148 OPJ_UINT32 depth;
149 OPJ_UINT32 sgnd;
150 OPJ_UINT32 bpcc;
166 OPJ_UINT32 w;
168 OPJ_UINT32 h;
170 OPJ_UINT32 numcomps;
171 OPJ_UINT32 bpc;
172 OPJ_UINT32 C;
[all …]
Dpi.h56 OPJ_UINT32 pdx, pdy;
57 OPJ_UINT32 pw, ph;
64 OPJ_UINT32 dx, dy;
66 OPJ_UINT32 numresolutions;
79 OPJ_UINT32 step_l;
81 OPJ_UINT32 step_r;
83 OPJ_UINT32 step_c;
85 OPJ_UINT32 step_p;
87 OPJ_UINT32 compno;
89 OPJ_UINT32 resno;
[all …]
Dinvert.c38 OPJ_UINT32 * permutations,
40 OPJ_UINT32 nb_compo);
47 OPJ_UINT32* pPermutations,
48 OPJ_UINT32 nb_compo,
56 OPJ_UINT32 nb_compo,
57 OPJ_UINT32 * pPermutations,
72 OPJ_UINT32 nb_compo) in opj_matrix_inversion_f()
75 OPJ_UINT32 l_permutation_size = nb_compo * (OPJ_UINT32)sizeof(OPJ_UINT32); in opj_matrix_inversion_f()
76 OPJ_UINT32 l_swap_size = nb_compo * (OPJ_UINT32)sizeof(OPJ_FLOAT32); in opj_matrix_inversion_f()
77 OPJ_UINT32 l_total_size = l_permutation_size + 3 * l_swap_size; in opj_matrix_inversion_f()
[all …]
Dt1.c48 static INLINE OPJ_BYTE opj_t1_getctxno_zc(OPJ_UINT32 f, OPJ_UINT32 orient);
49 static OPJ_BYTE opj_t1_getctxno_sc(OPJ_UINT32 f);
50 static INLINE OPJ_UINT32 opj_t1_getctxno_mag(OPJ_UINT32 f);
51 static OPJ_BYTE opj_t1_getspb(OPJ_UINT32 f);
52 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos);
53 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos);
54 static void opj_t1_updateflags(opj_flag_t *flagsp, OPJ_UINT32 s, OPJ_UINT32 stride);
61 OPJ_UINT32 orient,
66 OPJ_UINT32 vsc);
75 OPJ_UINT32 orient,
[all …]
Dopj_intmath.h64 static INLINE OPJ_UINT32 opj_uint_min(OPJ_UINT32 a, OPJ_UINT32 b) { in opj_uint_min()
80 static INLINE OPJ_UINT32 opj_uint_max(OPJ_UINT32 a, OPJ_UINT32 b) { in opj_uint_max()
88 static INLINE OPJ_UINT32 opj_uint_adds(OPJ_UINT32 a, OPJ_UINT32 b) { in opj_uint_adds()
90 return (OPJ_UINT32)(-(OPJ_INT32)(sum >> 32)) | (OPJ_UINT32)sum; in opj_uint_adds()
128 static INLINE OPJ_UINT32 opj_uint_ceildiv(OPJ_UINT32 a, OPJ_UINT32 b) { in opj_uint_ceildiv()
153 static INLINE OPJ_UINT32 opj_uint_ceildivpow2(OPJ_UINT32 a, OPJ_UINT32 b) { in opj_uint_ceildivpow2()
154 return (OPJ_UINT32)((a + ((OPJ_UINT64)1U << b) - 1U) >> b); in opj_uint_ceildivpow2()
179 static INLINE OPJ_UINT32 opj_uint_floorlog2(OPJ_UINT32 a) { in opj_uint_floorlog2()
180 OPJ_UINT32 l; in opj_uint_floorlog2()
Dtgt.h61 OPJ_UINT32 known;
69 OPJ_UINT32 numleafsh;
70 OPJ_UINT32 numleafsv;
71 OPJ_UINT32 numnodes;
73 OPJ_UINT32 nodes_size; /* maximum size taken by nodes */
86 opj_tgt_tree_t *opj_tgt_create(OPJ_UINT32 numleafsh, OPJ_UINT32 numleafsv, opj_event_mgr_t *manager…
98 OPJ_UINT32 p_num_leafs_h,
99 OPJ_UINT32 p_num_leafs_v, opj_event_mgr_t *p_manager);
117 OPJ_UINT32 leafno,
128 OPJ_UINT32 leafno,
[all …]
Dt2.c50 static OPJ_UINT32 opj_t2_getcommacode(opj_bio_t *bio);
56 static void opj_t2_putnumpasses(opj_bio_t *bio, OPJ_UINT32 n);
57 static OPJ_UINT32 opj_t2_getnumpasses(opj_bio_t *bio);
71 static OPJ_BOOL opj_t2_encode_packet( OPJ_UINT32 tileno,
76 OPJ_UINT32 * p_data_written,
77 OPJ_UINT32 len,
98 OPJ_UINT32 * data_read,
99 OPJ_UINT32 max_length,
108 OPJ_UINT32 * p_data_read,
109 OPJ_UINT32 p_max_length,
[all …]
Dmct.h63 void opj_mct_encode(OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n);
71 void opj_mct_decode(OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n);
77 OPJ_FLOAT64 opj_mct_getnorm(OPJ_UINT32 compno);
86 void opj_mct_encode_real(OPJ_INT32 *c0, OPJ_INT32 *c1, OPJ_INT32 *c2, OPJ_UINT32 n);
94 void opj_mct_decode_real(OPJ_FLOAT32* c0, OPJ_FLOAT32* c1, OPJ_FLOAT32* c2, OPJ_UINT32 n);
100 OPJ_FLOAT64 opj_mct_getnorm_real(OPJ_UINT32 compno);
113 OPJ_UINT32 n,
115 OPJ_UINT32 p_nb_comp,
116 OPJ_UINT32 is_signed);
128 OPJ_UINT32 n,
[all …]
Dpi.c94 OPJ_UINT32 p_tileno,
99 OPJ_UINT32 p_max_prec,
100 OPJ_UINT32 p_max_res,
101 OPJ_UINT32 p_dx_min,
102 OPJ_UINT32 p_dy_min);
120 OPJ_UINT32 p_num_comps,
121 OPJ_UINT32 p_tileno,
126 OPJ_UINT32 p_max_prec,
127 OPJ_UINT32 p_max_res,
128 OPJ_UINT32 p_dx_min,
[all …]
Dmqc.h57 OPJ_UINT32 qeval;
59 OPJ_UINT32 mps;
72 OPJ_UINT32 c;
73 OPJ_UINT32 a;
74 OPJ_UINT32 ct;
103 OPJ_UINT32 opj_mqc_numbytes(opj_mqc_t *mqc);
117 void opj_mqc_setstate(opj_mqc_t *mqc, OPJ_UINT32 ctxno, OPJ_UINT32 msb, OPJ_INT32 prob);
129 #define opj_mqc_setcurctx(mqc, ctxno) (mqc)->curctx = &(mqc)->ctxs[(OPJ_UINT32)(ctxno)]
135 void opj_mqc_encode(opj_mqc_t *mqc, OPJ_UINT32 d);
155 void opj_mqc_bypass_enc(opj_mqc_t *mqc, OPJ_UINT32 d);
[all …]
Ddwt.h69 OPJ_BOOL opj_dwt_decode(opj_tcd_tilecomp_t* tilec, OPJ_UINT32 numres);
76 OPJ_UINT32 opj_dwt_getgain(OPJ_UINT32 orient) ;
83 OPJ_FLOAT64 opj_dwt_getnorm(OPJ_UINT32 level, OPJ_UINT32 orient);
96 OPJ_BOOL opj_dwt_decode_real(opj_tcd_tilecomp_t* restrict tilec, OPJ_UINT32 numres);
103 OPJ_UINT32 opj_dwt_getgain_real(OPJ_UINT32 orient);
110 OPJ_FLOAT64 opj_dwt_getnorm_real(OPJ_UINT32 level, OPJ_UINT32 orient);
116 void opj_dwt_calc_explicit_stepsizes(opj_tccp_t * tccp, OPJ_UINT32 prec);
Dj2k.c192 static const struct opj_dec_memory_marker_handler * opj_j2k_get_marker_handler (OPJ_UINT32 p_id);
228OPJ_UINT32 p_tile_no,
229OPJ_UINT32 p_comp_no,
231OPJ_UINT32 * p_header_size,
243 static OPJ_UINT32 opj_j2k_get_SPCod_SPCoc_size (opj_j2k_t *p_j2k,
244OPJ_UINT32 p_tile_no,
245OPJ_UINT32 p_comp_no );
256 OPJ_UINT32 compno,
258 OPJ_UINT32 * p_header_size,
270 static OPJ_UINT32 opj_j2k_get_SQcd_SQcc_size ( opj_j2k_t *p_j2k,
[all …]
D0020-opj_aligned_malloc.patch15 @@ -576,6 +576,9 @@ static OPJ_BOOL opj_dwt_decode_tile(const opj_tcd_tilecomp_t* tilec, OPJ_UINT32
16 OPJ_UINT32 w = (OPJ_UINT32)(tilec->x1 - tilec->x0);
19 + if (((OPJ_UINT32)-1) / (OPJ_UINT32)sizeof(OPJ_INT32) < (OPJ_UINT32)h.mem_count) {
25 @@ -850,7 +853,17 @@ OPJ_BOOL opj_dwt_decode_real(opj_tcd_tilecomp_t* restrict tilec, OPJ_UINT32 nu…
27 OPJ_UINT32 w = (OPJ_UINT32)(tilec->x1 - tilec->x0);
30 + OPJ_UINT32 mr = opj_dwt_max_resolution(res, numres);
32 + if (mr >= ((OPJ_UINT32)-5)) {
37 + if (((OPJ_UINT32)-1) / (OPJ_UINT32)sizeof(opj_v4_t) < mr) {
52 + if (((OPJ_UINT32)-1) / (OPJ_UINT32)sizeof(OPJ_INT32) < datasize) {
62 + if (((OPJ_UINT32)-1) / (OPJ_UINT32)sizeof(opj_flag_t) < flagssize) {
Dtcd.c110 static INLINE OPJ_BOOL opj_tcd_init_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, OPJ_BOOL isEncoder…
147 OPJ_UINT32 * p_data_read,
148 OPJ_UINT32 p_max_src_size,
171 OPJ_UINT32 * p_data_written,
172 OPJ_UINT32 p_max_dest_size,
177OPJ_UINT32 p_max_dest_size,
210 OPJ_UINT32 layno; in opj_tcd_rateallocate_fixed()
219 OPJ_UINT32 layno, in opj_tcd_makelayer()
221 OPJ_UINT32 final) in opj_tcd_makelayer()
223 OPJ_UINT32 compno, resno, bandno, precno, cblkno; in opj_tcd_makelayer()
[all …]
Dt2.h81 OPJ_UINT32 tileno,
83 OPJ_UINT32 maxlayers,
85 OPJ_UINT32 * p_data_written,
86 OPJ_UINT32 len,
88 OPJ_UINT32 tpnum,
90 OPJ_UINT32 pino,
106 OPJ_UINT32 tileno,
109 OPJ_UINT32 * p_data_read,
110 OPJ_UINT32 len,
Dbio.c51 static void opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b);
57 static OPJ_UINT32 opj_bio_getbit(opj_bio_t *bio);
101 static void opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b) { in opj_bio_putbit()
109 static OPJ_UINT32 opj_bio_getbit(opj_bio_t *bio) { in opj_bio_getbit()
138 void opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len) { in opj_bio_init_enc()
146 void opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len) { in opj_bio_init_dec()
154 void opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n) { in opj_bio_write()
155 OPJ_UINT32 i; in opj_bio_write()
161 OPJ_UINT32 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n) { in opj_bio_read()
162 OPJ_UINT32 i; in opj_bio_read()
[all …]
Dtgt.c48 opj_tgt_tree_t *opj_tgt_create(OPJ_UINT32 numleafsh, OPJ_UINT32 numleafsv, opj_event_mgr_t *manager… in opj_tgt_create()
55 OPJ_UINT32 i; in opj_tgt_create()
57 OPJ_UINT32 numlvls; in opj_tgt_create()
58 OPJ_UINT32 n; in opj_tgt_create()
74 n = (OPJ_UINT32)(nplh[numlvls] * nplv[numlvls]); in opj_tgt_create()
94 tree->nodes_size = tree->numnodes * (OPJ_UINT32)sizeof(opj_tgt_node_t); in opj_tgt_create()
133 opj_tgt_tree_t *opj_tgt_init(opj_tgt_tree_t * p_tree,OPJ_UINT32 p_num_leafs_h, OPJ_UINT32 p_num_lea… in opj_tgt_init()
140 OPJ_UINT32 i; in opj_tgt_init()
142 OPJ_UINT32 l_num_levels; in opj_tgt_init()
143 OPJ_UINT32 n; in opj_tgt_init()
[all …]
Dbio.h64 OPJ_UINT32 buf;
66 OPJ_UINT32 ct;
94 void opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len);
101 void opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len);
108 void opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n);
115 OPJ_UINT32 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n);
D0018-tcd_get_decoded_tile_size.patch22 + if (*p_data_size == (OPJ_UINT32)-1) {
33 @@ -1150,6 +1150,7 @@ OPJ_UINT32 opj_tcd_get_decoded_tile_size ( opj_tcd_t *p_tcd )
36 OPJ_UINT32 l_size_comp, l_remaining;
37 + OPJ_UINT32 l_temp;
41 @@ -1167,7 +1168,18 @@ OPJ_UINT32 opj_tcd_get_decoded_tile_size ( opj_tcd_t *p_tcd )
45 - l_data_size += l_size_comp * (OPJ_UINT32)((l_res->x1 - l_res->x0) * (l_res->y1 - l…
46 + l_temp = (OPJ_UINT32)((l_res->x1 - l_res->x0) * (l_res->y1 - l_res->y0)); /* x1*y1…
48 + if (l_size_comp && ((OPJ_UINT32)-1) / l_size_comp < l_temp) {
49 + return (OPJ_UINT32)-1;
53 + if (l_temp > ((OPJ_UINT32)-1) - l_data_size) {
[all …]
Ddwt.c125 static OPJ_BOOL opj_dwt_decode_tile(const opj_tcd_tilecomp_t* tilec, OPJ_UINT32 i, DWT1DFN fn);
130 static OPJ_UINT32 opj_dwt_max_resolution(opj_tcd_resolution_t* restrict r, OPJ_UINT32 i);
416 …l_data_count = opj_dwt_max_resolution(tilec->resolutions, tilec->numresolutions) * (OPJ_UINT32)siz… in opj_dwt_encode_procedure()
417 l_data_size = l_data_count * (OPJ_UINT32)sizeof(OPJ_INT32); in opj_dwt_encode_procedure()
481 OPJ_BOOL opj_dwt_decode(opj_tcd_tilecomp_t* tilec, OPJ_UINT32 numres) { in opj_dwt_decode()
489 OPJ_UINT32 opj_dwt_getgain(OPJ_UINT32 orient) { in opj_dwt_getgain()
500 OPJ_FLOAT64 opj_dwt_getnorm(OPJ_UINT32 level, OPJ_UINT32 orient) { in opj_dwt_getnorm()
515 OPJ_UINT32 opj_dwt_getgain_real(OPJ_UINT32 orient) { in opj_dwt_getgain_real()
523 OPJ_FLOAT64 opj_dwt_getnorm_real(OPJ_UINT32 level, OPJ_UINT32 orient) { in opj_dwt_getnorm_real()
527 void opj_dwt_calc_explicit_stepsizes(opj_tccp_t * tccp, OPJ_UINT32 prec) { in opj_dwt_calc_explicit_stepsizes()
[all …]
D0026-use_opj_uint_ceildiv.patch9 - l_cp->tw = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(l_image->x1 - l_cp->tx0), (OPJ_INT32)l_…
10 - l_cp->th = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(l_image->y1 - l_cp->ty0), (OPJ_INT32)l_…
20 - p_j2k->m_specific_param.m_decoder.m_end_tile_x = (OPJ_UINT32)opj_int_ceildiv((OPJ_…
21 - p_j2k->m_specific_param.m_decoder.m_end_tile_y = (OPJ_UINT32)opj_int_ceildiv((OPJ_…
31 - cp->tw = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(image->x1 - cp->tx0), (OPJ_INT32)…
32 - cp->th = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(image->y1 - cp->ty0), (OPJ_INT32)…
42 - l_img_comp->x0 = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)p_image->x0, (OPJ_INT32)l_…
43 - l_img_comp->y0 = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)p_image->y0, (OPJ_INT32)l_…
53 - l_img_comp->x0 = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)p_image->x0, (OPJ_INT32)l_…
54 - l_img_comp->y0 = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)p_image->y0, (OPJ_INT32)l_…
[all …]
Djp2.c64 OPJ_UINT32 p_image_header_size,
76 OPJ_UINT32 * p_nb_bytes_written );
87 OPJ_UINT32 * p_nb_bytes_written );
101 OPJ_UINT32 p_bpc_header_size,
106 OPJ_UINT32 p_cdef_header_size,
120 OPJ_UINT32 * p_nb_bytes_written );
131 OPJ_UINT32 * p_nb_bytes_written );
158 OPJ_UINT32 p_header_size,
177 OPJ_UINT32 p_header_size,
250 OPJ_UINT32 p_header_size,
[all …]

123