Home | History | Annotate | Download | only in libopenjpeg20

Lines Matching refs:OPJ_INT32

81     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,
130 OPJ_INT32 sn, OPJ_INT32 x, OPJ_INT32 cas);
134 static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
135 OPJ_INT32 sn, OPJ_INT32 cas);
139 static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_SIZE_T a_count,
140 OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas);
146 static void opj_dwt_encode_stepsize(OPJ_INT32 stepsize, OPJ_INT32 numbps,
159 void(*p_function)(OPJ_INT32 *, OPJ_SIZE_T, OPJ_INT32, OPJ_INT32, OPJ_INT32));
256 static void opj_dwt_deinterleave_h(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn,
257 OPJ_INT32 sn, OPJ_INT32 cas)
259 OPJ_INT32 i;
260 OPJ_INT32 * l_dest = b;
261 OPJ_INT32 * l_src = a + cas;
280 static void opj_dwt_deinterleave_v(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn,
281 OPJ_INT32 sn, OPJ_INT32 x, OPJ_INT32 cas)
283 OPJ_INT32 i = sn;
284 OPJ_INT32 * l_dest = b;
285 OPJ_INT32 * l_src = a + cas;
308 static void opj_dwt_interleave_h(const opj_dwt_t* h, OPJ_INT32 *a)
310 OPJ_INT32 *ai = a;
311 OPJ_INT32 *bi = h->mem + h->cas;
312 OPJ_INT32 i = h->sn;
329 static void opj_dwt_interleave_v(const opj_dwt_t* v, OPJ_INT32 *a, OPJ_INT32 x)
331 OPJ_INT32 *ai = a;
332 OPJ_INT32 *bi = v->mem + v->cas;
333 OPJ_INT32 i = v->sn;
354 static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
355 OPJ_INT32 sn, OPJ_INT32 cas)
357 OPJ_INT32 i;
386 static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
387 OPJ_INT32 sn, OPJ_INT32 cas)
389 OPJ_INT32 i;
422 static void opj_idwt53_h_cas0(OPJ_INT32* tmp,
423 const OPJ_INT32 sn,
424 const OPJ_INT32 len,
425 OPJ_INT32* tiledp)
427 OPJ_INT32 i, j;
428 const OPJ_INT32* in_even = &tiledp[0];
429 const OPJ_INT32* in_odd = &tiledp[sn];
454 OPJ_INT32 d1c, d1n, s1n, s0c, s0n;
487 memcpy(tiledp, tmp, (OPJ_UINT32)len * sizeof(OPJ_INT32));
490 static void opj_idwt53_h_cas1(OPJ_INT32* tmp,
491 const OPJ_INT32 sn,
492 OPJ_INT32 len,
493 OPJ_INT32* tiledp)
495 OPJ_INT32 i, j;
496 const OPJ_INT32* in_even = &tiledp[sn];
497 const OPJ_INT32* in_odd = &tiledp[0];
522 OPJ_INT32 s1, s2, dc, dn;
556 memcpy(tiledp, tmp, (OPJ_UINT32)len * sizeof(OPJ_INT32));
567 OPJ_INT32* tiledp)
573 memcpy(tiledp, dwt->mem, (OPJ_UINT32)(dwt->sn + dwt->dn) * sizeof(OPJ_INT32));
575 const OPJ_INT32 sn = dwt->sn;
576 const OPJ_INT32 len = sn + dwt->dn;
587 OPJ_INT32* out = dwt->mem;
588 const OPJ_INT32* in_even = &tiledp[sn];
589 const OPJ_INT32* in_odd = &tiledp[0];
592 memcpy(tiledp, dwt->mem, (OPJ_UINT32)len * sizeof(OPJ_INT32));
627 void opj_idwt53_v_final_memcpy(OPJ_INT32* tiledp_col,
628 const OPJ_INT32* tmp,
629 OPJ_INT32 len,
632 OPJ_INT32 i;
636 PARALLEL_COLS_53 * sizeof(OPJ_INT32))
649 OPJ_INT32* tmp,
650 const OPJ_INT32 sn,
651 const OPJ_INT32 len,
652 OPJ_INT32* tiledp_col,
655 const OPJ_INT32* in_even = &tiledp_col[0];
656 const OPJ_INT32* in_odd = &tiledp_col[(OPJ_SIZE_T)sn * stride];
658 OPJ_INT32 i;
676 assert((OPJ_SIZE_T)tmp % (sizeof(OPJ_INT32) * VREG_INT_COUNT) == 0);
750 OPJ_INT32* tmp,
751 const OPJ_INT32 sn,
752 const OPJ_INT32 len,
753 OPJ_INT32* tiledp_col,
756 OPJ_INT32 i;
763 const OPJ_INT32* in_even = &tiledp_col[(OPJ_SIZE_T)sn * stride];
764 const OPJ_INT32* in_odd = &tiledp_col[0];
778 assert((OPJ_SIZE_T)tmp % (sizeof(OPJ_INT32) * VREG_INT_COUNT) == 0);
861 static void opj_idwt3_v_cas0(OPJ_INT32* tmp,
862 const OPJ_INT32 sn,
863 const OPJ_INT32 len,
864 OPJ_INT32* tiledp_col,
867 OPJ_INT32 i, j;
868 OPJ_INT32 d1c, d1n, s1n, s0c, s0n;
911 static void opj_idwt3_v_cas1(OPJ_INT32* tmp,
912 const OPJ_INT32 sn,
913 const OPJ_INT32 len,
914 OPJ_INT32* tiledp_col,
917 OPJ_INT32 i, j;
918 OPJ_INT32 s1, s2, dc, dn;
919 const OPJ_INT32* in_even = &tiledp_col[(OPJ_SIZE_T)sn * stride];
920 const OPJ_INT32* in_odd = &tiledp_col[0];
961 OPJ_INT32* tiledp_col,
963 OPJ_INT32 nb_cols)
967 OPJ_INT32 k, c;
976 const OPJ_INT32 sn = dwt->sn;
977 const OPJ_INT32 len = sn + dwt->dn;
990 OPJ_INT32 c;
998 OPJ_INT32 c;
1006 OPJ_INT32 c;
1007 OPJ_INT32* out = dwt->mem;
1009 OPJ_INT32 i;
1010 const OPJ_INT32* in_even = &tiledp_col[(OPJ_SIZE_T)sn * stride];
1011 const OPJ_INT32* in_odd = &tiledp_col[0];
1033 OPJ_INT32 c;
1047 static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_SIZE_T a_count,
1048 OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas)
1050 OPJ_INT32 i;
1096 static void opj_dwt_encode_stepsize(OPJ_INT32 stepsize, OPJ_INT32 numbps,
1099 OPJ_INT32 p, n;
1117 void(*p_function)(OPJ_INT32 *, OPJ_SIZE_T, OPJ_INT32, OPJ_INT32, OPJ_INT32))
1119 OPJ_INT32 i, j, k;
1120 OPJ_INT32 *a = 00;
1121 OPJ_INT32 *aj = 00;
1122 OPJ_INT32 *bj = 00;
1123 OPJ_INT32 w, l;
1125 OPJ_INT32 rw; /* width of the resolution level computed */
1126 OPJ_INT32 rh; /* height of the resolution level computed */
1134 l = (OPJ_INT32)tilec->numresolutions - 1;
1142 if (l_data_count > (SIZE_MAX / sizeof(OPJ_INT32))) {
1146 l_data_size = l_data_count * sizeof(OPJ_INT32);
1147 bj = (OPJ_INT32*)opj_malloc(l_data_size);
1156 OPJ_INT32 rw1; /* width of the resolution level once lower than computed one */
1157 OPJ_INT32 rh1; /* height of the resolution level once lower than computed one */
1158 OPJ_INT32 cas_col; /* 0 = non inversion on horizontal filtering 1 = inversion between low-pass and high-pass filtering */
1159 OPJ_INT32 cas_row; /* 0 = non inversion on vertical filtering 1 = inversion between low-pass and high-pass filtering */
1160 OPJ_INT32 dn, sn;
1307 opj_dwt_encode_stepsize((OPJ_INT32) floor(stepsize * 8192.0),
1308 (OPJ_INT32)(prec + gain), &tccp->stepsizes[bandno]);
1336 OPJ_INT32 * OPJ_RESTRICT tiledp;
1360 OPJ_INT32 * OPJ_RESTRICT tiledp;
1379 (OPJ_INT32)(job->max_j - j));
1414 if (h.mem_count > (SIZE_MAX / PARALLEL_COLS_53 / sizeof(OPJ_INT32))) {
1421 h_mem_size = h.mem_count * PARALLEL_COLS_53 * sizeof(OPJ_INT32);
1422 h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size);
1432 OPJ_INT32 * OPJ_RESTRICT tiledp = tilec->data;
1436 h.sn = (OPJ_INT32)rw;
1437 v.sn = (OPJ_INT32)rh;
1442 h.dn = (OPJ_INT32)(rw - (OPJ_UINT32)h.sn);
1480 job->h.mem = (OPJ_INT32
1493 v.dn = (OPJ_INT32)(rh - (OPJ_UINT32)v.sn);
1502 opj_idwt53_v(&v, &tiledp[j], (OPJ_SIZE_T)w, (OPJ_INT32)(rw - j));
1535 job->v.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size);
1552 static void opj_dwt_interleave_partial_h(OPJ_INT32 *dest,
1553 OPJ_INT32 cas,
1579 static void opj_dwt_interleave_partial_v(OPJ_INT32 *dest,
1580 OPJ_INT32 cas,
1606 static void opj_dwt_decode_partial_1(OPJ_INT32 *a, OPJ_SIZE_T a_count,
1607 OPJ_INT32 dn, OPJ_INT32 sn,
1608 OPJ_INT32 cas,
1609 OPJ_INT32 win_l_x0,
1610 OPJ_INT32 win_l_x1,
1611 OPJ_INT32 win_h_x0,
1612 OPJ_INT32 win_h_x1)
1614 OPJ_INT32 i;
1632 OPJ_INT32 i_max;
1654 OPJ_INT32 i_max = win_h_x1;
1689 static void opj_dwt_decode_partial_1_parallel(OPJ_INT32 *a,
1691 OPJ_INT32 dn, OPJ_INT32 sn,
1692 OPJ_INT32 cas,
1693 OPJ_INT32 win_l_x0,
1694 OPJ_INT32 win_l_x1,
1695 OPJ_INT32 win_h_x0,
1696 OPJ_INT32 win_h_x1)
1698 OPJ_INT32 i;
1719 OPJ_INT32 i_max;
1769 OPJ_INT32 i_max = win_h_x1;
1990 if (h.mem_count > (SIZE_MAX / (4 * sizeof(OPJ_INT32)))) {
1996 h_mem_size = h.mem_count * 4 * sizeof(OPJ_INT32);
1997 h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size);
2020 h.sn = (OPJ_INT32)rw;
2021 v.sn = (OPJ_INT32)rh;
2026 h.dn = (OPJ_INT32)(rw - (OPJ_UINT32)h.sn);
2029 v.dn = (OPJ_INT32)(rh - (OPJ_UINT32)v.sn);
2116 (OPJ_INT32)win_ll_x0,
2117 (OPJ_INT32)win_ll_x1,
2118 (OPJ_INT32)win_hl_x0,
2119 (OPJ_INT32)win_hl_x1);
2146 (OPJ_INT32)win_ll_y0,
2147 (OPJ_INT32)win_ll_y1,
2148 (OPJ_INT32)win_lh_y0,
2149 (OPJ_INT32)win_lh_y1);
2248 (OPJ_INT32*)(dwt->wavelet + dwt->cas + 2 * dwt->win_l_x0) + i,
2255 (OPJ_INT32*)(dwt->wavelet + 1 - dwt->cas + 2 * dwt->win_h_x0) + i,
2293 (OPJ_INT32*)(dwt->wavelet + dwt->cas + 2 * dwt->win_l_x0),
2299 (OPJ_INT32*)(dwt->wavelet + 1 - dwt->cas + 2 * dwt->win_h_x0),
2457 OPJ_INT32 a, b;
2563 h.sn = (OPJ_INT32)rw;
2564 v.sn = (OPJ_INT32)rh;
2573 h.dn = (OPJ_INT32)(rw - (OPJ_UINT32)h.sn);
2613 v.dn = (OPJ_INT32)(rh - (OPJ_UINT32)v.sn);
2738 h.sn = (OPJ_INT32)rw;
2739 v.sn = (OPJ_INT32)rh;
2744 h.dn = (OPJ_INT32)(rw - (OPJ_UINT32)h.sn);
2747 v.dn = (OPJ_INT32)(rh - (OPJ_UINT32)v.sn);
2821 (OPJ_INT32*)&h.wavelet[win_tr_x0].f[0],
2840 (OPJ_INT32*)&h.wavelet[win_tr_x0].f[0],
2862 (OPJ_INT32*)&h.wavelet[win_tr_y0].f[0],