Lines Matching defs:sn
58 OPJ_INT32 sn;
69 OPJ_INT32 sn ;
94 static void opj_dwt_deinterleave_h(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas);
98 static void opj_dwt_deinterleave_v(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 x, OPJ_INT32 cas);
110 static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas);
115 static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas);
119 static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas);
161 #define OPJ_S_(i) ((i)<0?OPJ_S(0):((i)>=sn?OPJ_S(sn-1):OPJ_S(i)))
165 #define OPJ_DD_(i) ((i)<0?OPJ_D(0):((i)>=sn?OPJ_D(sn-1):OPJ_D(i)))
196 void opj_dwt_deinterleave_h(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas) {
201 for (i=0; i<sn; ++i) {
206 l_dest = b + sn;
218 void opj_dwt_deinterleave_v(OPJ_INT32 *a, OPJ_INT32 *b, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 x, OPJ_INT32 cas) {
219 OPJ_INT32 i = sn;
229 l_dest = b + sn * x;
237 } /*b[(sn+i)*x]=a[(2*i+1-cas)];*/
246 OPJ_INT32 i = h->sn;
251 ai = a + h->sn;
266 OPJ_INT32 i = v->sn;
272 ai = a + (v->sn * x);
286 void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas) {
290 if ((dn > 0) || (sn > 1)) { /* NEW : CASE ONE ELEMENT */
292 for (i = 0; i < sn; i++) OPJ_S(i) += (OPJ_D_(i - 1) + OPJ_D_(i) + 2) >> 2;
295 if (!sn && dn == 1) /* NEW : CASE ONE ELEMENT */
299 for (i = 0; i < sn; i++) OPJ_D(i) += (OPJ_SS_(i) + OPJ_SS_(i + 1) + 2) >> 2;
307 void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas) {
311 if ((dn > 0) || (sn > 1)) { /* NEW : CASE ONE ELEMENT */
312 for (i = 0; i < sn; i++) OPJ_S(i) -= (OPJ_D_(i - 1) + OPJ_D_(i) + 2) >> 2;
316 if (!sn && dn == 1) /* NEW : CASE ONE ELEMENT */
319 for (i = 0; i < sn; i++) OPJ_D(i) -= (OPJ_SS_(i) + OPJ_SS_(i + 1) + 2) >> 2;
329 opj_dwt_decode_1_(v->mem, v->dn, v->sn, v->cas);
335 void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, OPJ_INT32 cas) {
338 if ((dn > 0) || (sn > 1)) { /* NEW : CASE ONE ELEMENT */
341 for (i = 0; i < sn; i++)
345 for (i = 0; i < sn; i++)
349 for (i = 0; i < sn; i++)
353 if ((sn > 0) || (dn > 1)) { /* NEW : CASE ONE ELEMENT */
356 for (i = 0; i < sn; i++)
360 for (i = 0; i < sn; i++)
364 for (i = 0; i < sn; i++)
422 OPJ_INT32 dn, sn;
432 sn = rh1;
440 (*p_function) (bj, dn, sn, cas_col);
442 opj_dwt_deinterleave_v(bj, aj, dn, sn, w, cas_col);
445 sn = rw1;
451 (*p_function) (bj, dn, sn, cas_row);
452 opj_dwt_deinterleave_h(bj, aj, dn, sn, cas_row);
585 h.sn = (OPJ_INT32)rw;
586 v.sn = (OPJ_INT32)rh;
591 h.dn = (OPJ_INT32)(rw - (OPJ_UINT32)h.sn);
600 v.dn = (OPJ_INT32)(rh - (OPJ_UINT32)v.sn);
618 OPJ_INT32 count = w->sn;
653 a += w->sn;
654 size -= w->sn;
663 for(i = 0; i < v->sn; ++i){
667 a += v->sn * x;
800 if(!((dwt->dn > 0) || (dwt->sn > 1))){
806 if(!((dwt->sn > 0) || (dwt->dn > 1))) {
813 opj_v4dwt_decode_step1_sse(dwt->wavelet+a, dwt->sn, _mm_set1_ps(opj_K));
815 opj_v4dwt_decode_step2_sse(dwt->wavelet+b, dwt->wavelet+a+1, dwt->sn, opj_int_min(dwt->sn, dwt->dn-a), _mm_set1_ps(opj_dwt_delta));
816 opj_v4dwt_decode_step2_sse(dwt->wavelet+a, dwt->wavelet+b+1, dwt->dn, opj_int_min(dwt->dn, dwt->sn-b), _mm_set1_ps(opj_dwt_gamma));
817 opj_v4dwt_decode_step2_sse(dwt->wavelet+b, dwt->wavelet+a+1, dwt->sn, opj_int_min(dwt->sn, dwt->dn-a), _mm_set1_ps(opj_dwt_beta));
818 opj_v4dwt_decode_step2_sse(dwt->wavelet+a, dwt->wavelet+b+1, dwt->dn, opj_int_min(dwt->dn, dwt->sn-b), _mm_set1_ps(opj_dwt_alpha));
820 opj_v4dwt_decode_step1(dwt->wavelet+a, dwt->sn, opj_K);
822 opj_v4dwt_decode_step2(dwt->wavelet+b, dwt->wavelet+a+1, dwt->sn, opj_int_min(dwt->sn, dwt->dn-a), opj_dwt_delta);
823 opj_v4dwt_decode_step2(dwt->wavelet+a, dwt->wavelet+b+1, dwt->dn, opj_int_min(dwt->dn, dwt->sn-b), opj_dwt_gamma);
824 opj_v4dwt_decode_step2(dwt->wavelet+b, dwt->wavelet+a+1, dwt->sn, opj_int_min(dwt->sn, dwt->dn-a), opj_dwt_beta);
825 opj_v4dwt_decode_step2(dwt->wavelet+a, dwt->wavelet+b+1, dwt->dn, opj_int_min(dwt->dn, dwt->sn-b), opj_dwt_alpha);
857 h.sn = (OPJ_INT32)rw;
858 v.sn = (OPJ_INT32)rh;
865 h.dn = (OPJ_INT32)(rw - (OPJ_UINT32)h.sn);
898 v.dn = (OPJ_INT32)(rh - (OPJ_UINT32)v.sn);