Home
last modified time | relevance | path

Searched refs:OPJ_INT32 (Results 1 – 25 of 40) sorted by relevance

12

/external/pdfium/third_party/libopenjpeg20/
D0003-dwt-decode.patch18 OPJ_INT32* mem;
20 OPJ_INT32 dn; /* number of elements in high pass band */
21 OPJ_INT32 sn; /* number of elements in low pass band */
22 OPJ_INT32 cas; /* 0 = start on even coord, 1 = start on odd coord */
23 @@ -133,13 +131,13 @@ static void opj_dwt_deinterleave_v(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn,
27 -static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
28 - OPJ_INT32 cas);
29 +static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
30 + OPJ_INT32 sn, OPJ_INT32 cas);
34 -static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
[all …]
Dopj_intmath.h56 static INLINE OPJ_INT32 opj_int_min(OPJ_INT32 a, OPJ_INT32 b) in opj_int_min()
74 static INLINE OPJ_INT32 opj_int_max(OPJ_INT32 a, OPJ_INT32 b) in opj_int_max()
95 return (OPJ_UINT32)(-(OPJ_INT32)(sum >> 32)) | (OPJ_UINT32)sum; in opj_uint_adds()
116 static INLINE OPJ_INT32 opj_int_clamp(OPJ_INT32 a, OPJ_INT32 min, in opj_int_clamp()
117 OPJ_INT32 max) in opj_int_clamp()
152 static INLINE OPJ_INT32 opj_int_abs(OPJ_INT32 a) in opj_int_abs()
160 static INLINE OPJ_INT32 opj_int_ceildiv(OPJ_INT32 a, OPJ_INT32 b) in opj_int_ceildiv()
163 return (OPJ_INT32)(((OPJ_INT64)a + b - 1) / b); in opj_int_ceildiv()
180 static INLINE OPJ_INT32 opj_int_ceildivpow2(OPJ_INT32 a, OPJ_INT32 b) in opj_int_ceildivpow2()
182 return (OPJ_INT32)((a + ((OPJ_INT64)1 << b) - 1) >> b); in opj_int_ceildivpow2()
[all …]
D0026-use_opj_uint_ceildiv.patch9 - l_cp->tw = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(l_image->x1 - l_cp->tx0),
10 - (OPJ_INT32)l_cp->tdx);
11 - l_cp->th = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(l_image->y1 - l_cp->ty0),
12 - (OPJ_INT32)l_cp->tdy);
23 - OPJ_INT32)(p_j2k->m_specific_param.m_decoder.m_end_tile_x - l_cp->tx0),
24 - (OPJ_INT32)l_cp->tdx);
26 - OPJ_INT32)(p_j2k->m_specific_param.m_decoder.m_end_tile_y - l_cp->ty0),
27 - (OPJ_INT32)l_cp->tdy);
39 - cp->tw = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(image->x1 - cp->tx0),
40 - (OPJ_INT32)cp->tdx);
[all …]
Dmct.c80 OPJ_INT32* OPJ_RESTRICT c0, in opj_mct_encode()
81 OPJ_INT32* OPJ_RESTRICT c1, in opj_mct_encode()
82 OPJ_INT32* OPJ_RESTRICT c2, in opj_mct_encode()
109 OPJ_INT32 r = c0[i]; in opj_mct_encode()
110 OPJ_INT32 g = c1[i]; in opj_mct_encode()
111 OPJ_INT32 b = c2[i]; in opj_mct_encode()
112 OPJ_INT32 y = (r + (g * 2) + b) >> 2; in opj_mct_encode()
113 OPJ_INT32 u = b - g; in opj_mct_encode()
114 OPJ_INT32 v = r - g; in opj_mct_encode()
122 OPJ_INT32* OPJ_RESTRICT c0, in opj_mct_encode()
[all …]
D0036-opj_j2k_update_image_dimensions.patch9 - OPJ_INT32 l_h, l_w;
13 l_comp_x1 = opj_int_ceildiv((OPJ_INT32)p_image->x1, (OPJ_INT32)l_img_comp->dx);
14 l_comp_y1 = opj_int_ceildiv((OPJ_INT32)p_image->y1, (OPJ_INT32)l_img_comp->dy);
16 - l_w = opj_int_ceildivpow2(l_comp_x1, (OPJ_INT32)l_img_comp->factor)
17 - - opj_int_ceildivpow2((OPJ_INT32)l_img_comp->x0, (OPJ_INT32)l_img_comp->factor);
19 + OPJ_INT32 l_1 = opj_int_ceildivpow2(l_comp_x1, (OPJ_INT32)l_img_comp->factor);
20 + OPJ_INT32 l_2 = opj_int_ceildivpow2((OPJ_INT32)l_img_comp->x0, (OPJ_INT32)l_img_comp->fact…
32 - l_h = opj_int_ceildivpow2(l_comp_y1, (OPJ_INT32)l_img_comp->factor)
33 - - opj_int_ceildivpow2((OPJ_INT32)l_img_comp->y0, (OPJ_INT32)l_img_comp->factor);
35 + l_1 = opj_int_ceildivpow2(l_comp_y1, (OPJ_INT32)l_img_comp->factor);
[all …]
Ddwt.c81 OPJ_INT32* mem;
83 OPJ_INT32 dn; /* number of elements in high pass band */
84 OPJ_INT32 sn; /* number of elements in low pass band */
85 OPJ_INT32 cas; /* 0 = start on even coord, 1 = start on odd coord */
94 OPJ_INT32 dn ; /* number of elements in high pass band */
95 OPJ_INT32 sn ; /* number of elements in low pass band */
96 OPJ_INT32 cas ; /* 0 = start on even coord, 1 = start on odd coord */
124 static void opj_dwt_deinterleave_h(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn,
125 OPJ_INT32 sn, OPJ_INT32 cas);
129 static void opj_dwt_deinterleave_v(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn,
[all …]
Dpi.c94 OPJ_INT32 p_tx0,
95 OPJ_INT32 p_tx1,
96 OPJ_INT32 p_ty0,
97 OPJ_INT32 p_ty1,
121 OPJ_INT32 p_tx0,
122 OPJ_INT32 p_tx1,
123 OPJ_INT32 p_ty0,
124 OPJ_INT32 p_ty1,
147 OPJ_INT32 * p_tx0,
148 OPJ_INT32 * p_tx1,
[all …]
Dt1.c83 OPJ_INT32 *datap,
84 OPJ_INT32 oneplushalf,
90 OPJ_INT32 *datap,
91 OPJ_INT32 oneplushalf,
100 OPJ_INT32 bpno,
101 OPJ_INT32 *nmsedec,
110 OPJ_INT32 bpno,
111 OPJ_INT32 cblksty);
117 OPJ_INT32 bpno,
118 OPJ_INT32 *nmsedec,
[all …]
Dmct.h63 void opj_mct_encode(OPJ_INT32* OPJ_RESTRICT c0, OPJ_INT32* OPJ_RESTRICT c1,
64 OPJ_INT32* OPJ_RESTRICT c2, OPJ_SIZE_T n);
72 void opj_mct_decode(OPJ_INT32* OPJ_RESTRICT c0, OPJ_INT32* OPJ_RESTRICT c1,
73 OPJ_INT32* OPJ_RESTRICT c2, OPJ_SIZE_T n);
88 void opj_mct_encode_real(OPJ_INT32* OPJ_RESTRICT c0, OPJ_INT32* OPJ_RESTRICT c1,
89 OPJ_INT32* OPJ_RESTRICT c2, OPJ_SIZE_T n);
Dsparse_array.c42 OPJ_INT32** data_blocks;
55 if (block_width > ((OPJ_UINT32)~0U) / block_height / sizeof(OPJ_INT32)) { in opj_sparse_array_int32_create()
71 sa->data_blocks = (OPJ_INT32**) opj_calloc(sizeof(OPJ_INT32*), in opj_sparse_array_int32_create()
111 OPJ_INT32* buf, in opj_sparse_array_int32_read_or_write()
138 OPJ_INT32* src_block; in opj_sparse_array_int32_read_or_write()
146 OPJ_INT32* dest_ptr = buf + (y - y0) * (OPJ_SIZE_T)buf_line_stride + in opj_sparse_array_int32_read_or_write()
149 memset(dest_ptr, 0, sizeof(OPJ_INT32) * x_incr); in opj_sparse_array_int32_read_or_write()
153 OPJ_INT32* dest_ptr = buf + (y - y0) * (OPJ_SIZE_T)buf_line_stride + in opj_sparse_array_int32_read_or_write()
164 const OPJ_INT32* OPJ_RESTRICT src_ptr = src_block + block_y_offset * in opj_sparse_array_int32_read_or_write()
167OPJ_INT32* OPJ_RESTRICT dest_ptr = buf + (y - y0) * (OPJ_SIZE_T)buf_line_stride in opj_sparse_array_int32_read_or_write()
[all …]
D0009-opj_pi_next.patch6 … (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy)
7 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy);
8 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
16 … (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy)
17 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy);
18 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
26 … (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy)
27 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy);
28 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
Dj2k.h167 OPJ_INT32 expn;
169 OPJ_INT32 mant;
195 OPJ_INT32 roishift;
201 OPJ_INT32 m_dc_level_shift;
276 OPJ_INT32 m_current_tile_part_number;
319 OPJ_INT32 m_tp_pos;
321 OPJ_INT32 *m_matrice;
388 OPJ_INT32 ppm_store;
390 OPJ_INT32 ppm_previous;
475 OPJ_INT32 m_tile_ind_to_dec;
[all …]
Dtcd.h81 OPJ_INT32 x0, y0, x1,
124 OPJ_INT32 x0, y0, x1, y1;
138 OPJ_INT32* decoded_data;
144 OPJ_INT32 x0, y0, x1, y1;
159 OPJ_INT32 x0, y0, x1, y1;
166 OPJ_INT32 numbps;
173 OPJ_INT32 x0, y0, x1, y1;
191 OPJ_INT32 x0, y0, x1, y1;
204 OPJ_INT32 *data;
213 OPJ_INT32 *data_win;
[all …]
D0037-tcd_init_tile.patch7 l_tl_prc_x_start = opj_int_floordivpow2(l_res->x0, (OPJ_INT32)l_pdx) << l_pdx;
8 l_tl_prc_y_start = opj_int_floordivpow2(l_res->y0, (OPJ_INT32)l_pdy) << l_pdy;
9 - l_br_prc_x_end = opj_int_ceildivpow2(l_res->x1, (OPJ_INT32)l_pdx) << l_pdx;
10 - l_br_prc_y_end = opj_int_ceildivpow2(l_res->y1, (OPJ_INT32)l_pdy) << l_pdy;
13 + (OPJ_INT32)l_pdx)) << l_pdx;
18 + l_br_prc_x_end = (OPJ_INT32)tmp;
22 + (OPJ_INT32)l_pdy)) << l_pdy;
27 + l_br_prc_y_end = (OPJ_INT32)tmp;
Dopj_codec.h65 OPJ_INT32 * p_tile_x0,
66 OPJ_INT32 * p_tile_y0,
67 OPJ_INT32 * p_tile_x1,
68 OPJ_INT32 * p_tile_y1,
96 OPJ_INT32 p_start_x,
97 OPJ_INT32 p_end_x,
98 OPJ_INT32 p_start_y,
99 OPJ_INT32 p_end_y,
159 void (*opj_dump_codec)(void * p_codec, OPJ_INT32 info_flag,
Dtgt.c51 OPJ_INT32 nplh[32]; in opj_tgt_create()
52 OPJ_INT32 nplv[32]; in opj_tgt_create()
58 OPJ_INT32 j, k; in opj_tgt_create()
72 nplh[0] = (OPJ_INT32)numleafsh; in opj_tgt_create()
73 nplv[0] = (OPJ_INT32)numleafsv; in opj_tgt_create()
139 OPJ_INT32 l_nplh[32]; in opj_tgt_init()
140 OPJ_INT32 l_nplv[32]; in opj_tgt_init()
145 OPJ_INT32 j, k; in opj_tgt_init()
160 l_nplh[0] = (OPJ_INT32)p_num_leafs_h; in opj_tgt_init()
161 l_nplv[0] = (OPJ_INT32)p_num_leafs_v; in opj_tgt_init()
[all …]
Dopenjpeg.c181 l_codec->opj_dump_codec = (void (*)(void*, OPJ_INT32, FILE*)) j2k_dump; in opj_create_decompress()
215 OPJ_INT32*, OPJ_INT32*, in opj_create_decompress()
216 OPJ_INT32*, OPJ_INT32*, in opj_create_decompress()
233 OPJ_INT32, OPJ_INT32, OPJ_INT32, OPJ_INT32, in opj_create_decompress()
268 l_codec->opj_dump_codec = (void (*)(void*, OPJ_INT32, FILE*)) jp2_dump; in opj_create_decompress()
297 OPJ_INT32*, in opj_create_decompress()
298 OPJ_INT32*, in opj_create_decompress()
299 OPJ_INT32 *, in opj_create_decompress()
300 OPJ_INT32 *, in opj_create_decompress()
321 OPJ_INT32, OPJ_INT32, OPJ_INT32, OPJ_INT32, in opj_create_decompress()
[all …]
Djp2.h201 OPJ_INT32 init_pos;
368 OPJ_INT32 * p_tile_x0,
369 OPJ_INT32 * p_tile_y0,
370 OPJ_INT32 * p_tile_x1,
371 OPJ_INT32 * p_tile_y1,
441 OPJ_INT32 p_start_x, OPJ_INT32 p_start_y,
442 OPJ_INT32 p_end_x, OPJ_INT32 p_end_y,
472 void jp2_dump(opj_jp2_t* p_jp2, OPJ_INT32 flag, FILE* out_stream);
Dtgt.h59 OPJ_INT32 value;
60 OPJ_INT32 low;
119 OPJ_INT32 value);
130 OPJ_INT32 threshold);
142 OPJ_INT32 threshold);
Dtcd.c341OPJ_INT32 value; /*, matrice[tcd_tcp->numlayers][tcd_tile->comps[0].numreso… in opj_tcd_makelayer_fixed()
342 OPJ_INT32 matrice[10][10][3]; in opj_tcd_makelayer_fixed()
356 (OPJ_INT32)((OPJ_FLOAT32)cp->m_specific_param.m_enc.m_matrice[i * in opj_tcd_makelayer_fixed()
381 OPJ_INT32 imsb = (OPJ_INT32)(tcd->image->comps[compno].prec - in opj_tcd_makelayer_fixed()
488 OPJ_INT32 dr; in opj_tcd_rateallocate()
492 dr = (OPJ_INT32)pass->rate; in opj_tcd_rateallocate()
495 dr = (OPJ_INT32)(pass->rate - cblk->passes[passno - 1].rate); in opj_tcd_rateallocate()
694 l_tilec->data = (OPJ_INT32 *) opj_image_data_alloc(l_tilec->data_size_needed); in opj_alloc_tile_component_data()
704 l_tilec->data = (OPJ_INT32 *) opj_image_data_alloc(l_tilec->data_size_needed); in opj_alloc_tile_component_data()
741 OPJ_INT32 l_x0b, l_y0b; in opj_tcd_init_tile()
[all …]
D0012-mct_sse.patch32 OPJ_INT32* OPJ_RESTRICT c0,
33 OPJ_INT32* OPJ_RESTRICT c1,
41 OPJ_INT32* OPJ_RESTRICT c0,
42 OPJ_INT32* OPJ_RESTRICT c1,
50 OPJ_INT32* OPJ_RESTRICT c0,
51 OPJ_INT32* OPJ_RESTRICT c1,
Dopenjpeg.h125 typedef int32_t OPJ_INT32; typedef
339 OPJ_INT32 tx0, tx1, ty0, ty1;
661 OPJ_INT32 *data;
890 OPJ_INT32 roishift;
1035 OPJ_INT32 not_used;
1045 OPJ_INT32 not_used;
1398 OPJ_INT32 p_start_x, OPJ_INT32 p_start_y,
1399 OPJ_INT32 p_end_x, OPJ_INT32 p_end_y);
1481 OPJ_INT32 * p_tile_x0, OPJ_INT32 * p_tile_y0,
1482 OPJ_INT32 * p_tile_x1, OPJ_INT32 * p_tile_y1,
[all …]
Dpi.h105 OPJ_INT32 tx0, ty0, tx1, ty1;
107 OPJ_INT32 x, y;
156 OPJ_INT32 tppos,
Dbio.c167 OPJ_INT32 i; in opj_bio_write()
170 for (i = (OPJ_INT32)n - 1; i >= 0; i--) { in opj_bio_write()
177 OPJ_INT32 i; in opj_bio_read()
188 for (i = (OPJ_INT32)n - 1; i >= 0; i--) { in opj_bio_read()
Dt2.c51 static void opj_t2_putcommacode(opj_bio_t *bio, OPJ_INT32 n);
167 static void opj_t2_putcommacode(opj_bio_t *bio, OPJ_INT32 n) in opj_t2_putcommacode()
228 OPJ_INT32 p_tp_pos, in opj_t2_encode_packets()
531 (OPJ_INT32) in opj_t2_decode_packets()
723 opj_tgt_setvalue(prc->imsbtree, cblkno, band->numbps - (OPJ_INT32)cblk->numbps); in opj_t2_encode_packet()
789 opj_tgt_setvalue(prc->incltree, cblkno, (OPJ_INT32)layno); in opj_t2_encode_packet()
805 opj_tgt_encode(bio, prc->incltree, cblkno, (OPJ_INT32)(layno + 1)); in opj_t2_encode_packet()
833 increment = (OPJ_UINT32)opj_int_max((OPJ_INT32)increment, in opj_t2_encode_packet()
834 opj_int_floorlog2((OPJ_INT32)len) + 1 in opj_t2_encode_packet()
835 … - ((OPJ_INT32)cblk->numlenbits + opj_int_floorlog2((OPJ_INT32)nump))); in opj_t2_encode_packet()
[all …]

12