• Home
  • Raw
  • Download

Lines Matching refs:OPJ_INT32

17      OPJ_INT32* mem;
19 OPJ_INT32 dn; /* number of elements in high pass band */
20 OPJ_INT32 sn; /* number of elements in low pass band */
21 OPJ_INT32 cas; /* 0 = start on even coord, 1 = start on odd coord */
22 @@ -132,13 +131,14 @@ static void opj_dwt_deinterleave_v(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn,
26 -static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
27 - OPJ_INT32 cas);
28 +static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
29 + OPJ_INT32 sn, OPJ_INT32 cas);
33 -static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
34 - OPJ_INT32 cas);
35 +static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_SIZE_T a_count,
36 + OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas);
41 @@ -149,14 +149,14 @@ static void opj_dwt_encode_stepsize(OPJ_INT32 stepsize, OPJ_INT32 numbps,
53 - void (*p_function)(OPJ_INT32 *, OPJ_INT32, OPJ_INT32, OPJ_INT32));
55 + void(*p_function)(OPJ_INT32 *, OPJ_SIZE_T, OPJ_INT32, OPJ_INT32, OPJ_INT32));
86 @@ -344,8 +351,8 @@ static void opj_dwt_interleave_v(const opj_dwt_t* v, OPJ_INT32 *a, OPJ_INT32 x)
90 -static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
91 - OPJ_INT32 cas)
92 +static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
93 + OPJ_INT32 sn, OPJ_INT32 cas)
95 OPJ_INT32 i;
97 @@ -376,8 +383,8 @@ static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
101 -static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
102 - OPJ_INT32 cas)
103 +static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
104 + OPJ_INT32 sn, OPJ_INT32 cas)
106 OPJ_INT32 i;
108 @@ -406,7 +413,7 @@ static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
121 -static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
122 - OPJ_INT32 cas)
123 +static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_SIZE_T a_count,
124 + OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas)
126 OPJ_INT32 i;
128 @@ -1106,8 +1113,8 @@ static void opj_dwt_encode_stepsize(OPJ_INT32 stepsize, OPJ_INT32 numbps,
133 - void (*p_function)(OPJ_INT32 *, OPJ_INT32, OPJ_INT32, OPJ_INT32))
135 + void(*p_function)(OPJ_INT32 *, OPJ_SIZE_T, OPJ_INT32, OPJ_INT32, OPJ_INT32))
137 OPJ_INT32 i, j, k;
138 OPJ_INT32 *a = 00;
141 OPJ_INT32 rw; /* width of the resolution level computed */
142 OPJ_INT32 rh; /* height of the resolution level computed */
154 - if (l_data_size > (SIZE_MAX / sizeof(OPJ_INT32))) {
155 + if (l_data_count > (SIZE_MAX / sizeof(OPJ_INT32))) {
159 - l_data_size *= sizeof(OPJ_INT32);
160 + l_data_size = l_data_count * sizeof(OPJ_INT32);
161 bj = (OPJ_INT32*)opj_malloc(l_data_size);
198 - if (h_mem_size > (SIZE_MAX / PARALLEL_COLS_53 / sizeof(OPJ_INT32))) {
199 + if (h.mem_count > (SIZE_MAX / PARALLEL_COLS_53 / sizeof(OPJ_INT32))) {
206 - h_mem_size *= PARALLEL_COLS_53 * sizeof(OPJ_INT32);
207 + h_mem_size = h.mem_count * PARALLEL_COLS_53 * sizeof(OPJ_INT32);
208 h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size);
218 @@ -1594,7 +1603,8 @@ static void opj_dwt_interleave_partial_v(OPJ_INT32 *dest,
222 -static void opj_dwt_decode_partial_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
223 +static void opj_dwt_decode_partial_1(OPJ_INT32 *a, OPJ_SIZE_T a_count,
224 + OPJ_INT32 dn, OPJ_INT32 sn,
225 OPJ_INT32 cas,
226 OPJ_INT32 win_l_x0,
227 OPJ_INT32 win_l_x1,
236 - if (h_mem_size > (SIZE_MAX / (4 * sizeof(OPJ_INT32)))) {
237 + if (h.mem_count > (SIZE_MAX / (4 * sizeof(OPJ_INT32)))) {
243 - h_mem_size *= 4 * sizeof(OPJ_INT32);
244 + h_mem_size = h.mem_count * 4 * sizeof(OPJ_INT32);
245 h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size);
262 (OPJ_INT32)win_ll_x0,
263 (OPJ_INT32)win_ll_x1,
264 (OPJ_INT32)win_hl_x0,