• Home
  • Raw
  • Download

Lines Matching refs:dwt

167 static void opj_v4dwt_decode(opj_v4dwt_t* OPJ_RESTRICT dwt);
169 static void opj_v4dwt_interleave_h(opj_v4dwt_t* OPJ_RESTRICT dwt,
174 static void opj_v4dwt_interleave_v(opj_v4dwt_t* OPJ_RESTRICT dwt,
566 static void opj_idwt53_h(const opj_dwt_t *dwt, in opj_idwt53_h() argument
571 opj_dwt_interleave_h(dwt, tiledp); in opj_idwt53_h()
572 opj_dwt_decode_1(dwt); in opj_idwt53_h()
573 memcpy(tiledp, dwt->mem, (OPJ_UINT32)(dwt->sn + dwt->dn) * sizeof(OPJ_INT32)); in opj_idwt53_h()
575 const OPJ_INT32 sn = dwt->sn; in opj_idwt53_h()
576 const OPJ_INT32 len = sn + dwt->dn; in opj_idwt53_h()
577 if (dwt->cas == 0) { /* Left-most sample is on even coordinate */ in opj_idwt53_h()
579 opj_idwt53_h_cas0(dwt->mem, sn, len, tiledp); in opj_idwt53_h()
587 OPJ_INT32* out = dwt->mem; in opj_idwt53_h()
592 memcpy(tiledp, dwt->mem, (OPJ_UINT32)len * sizeof(OPJ_INT32)); in opj_idwt53_h()
594 opj_idwt53_h_cas1(dwt->mem, sn, len, tiledp); in opj_idwt53_h()
960 static void opj_idwt53_v(const opj_dwt_t *dwt, in opj_idwt53_v() argument
969 opj_dwt_interleave_v(dwt, tiledp_col + c, stride); in opj_idwt53_v()
970 opj_dwt_decode_1(dwt); in opj_idwt53_v()
971 for (k = 0; k < dwt->sn + dwt->dn; ++k) { in opj_idwt53_v()
972 tiledp_col[c + k * stride] = dwt->mem[k]; in opj_idwt53_v()
976 const OPJ_INT32 sn = dwt->sn; in opj_idwt53_v()
977 const OPJ_INT32 len = sn + dwt->dn; in opj_idwt53_v()
978 if (dwt->cas == 0) { in opj_idwt53_v()
985 opj_idwt53_v_cas0_mcols_SSE2_OR_AVX2(dwt->mem, sn, len, tiledp_col, stride); in opj_idwt53_v()
992 opj_idwt3_v_cas0(dwt->mem, sn, len, tiledp_col, stride); in opj_idwt53_v()
1007 OPJ_INT32* out = dwt->mem; in opj_idwt53_v()
1028 opj_idwt53_v_cas1_mcols_SSE2_OR_AVX2(dwt->mem, sn, len, tiledp_col, stride); in opj_idwt53_v()
1035 opj_idwt3_v_cas1(dwt->mem, sn, len, tiledp_col, stride); in opj_idwt53_v()
2182 static void opj_v4dwt_interleave_h(opj_v4dwt_t* OPJ_RESTRICT dwt, in opj_v4dwt_interleave_h() argument
2187 OPJ_FLOAT32* OPJ_RESTRICT bi = (OPJ_FLOAT32*)(dwt->wavelet + dwt->cas); in opj_v4dwt_interleave_h()
2189 OPJ_UINT32 x0 = dwt->win_l_x0; in opj_v4dwt_interleave_h()
2190 OPJ_UINT32 x1 = dwt->win_l_x1; in opj_v4dwt_interleave_h()
2229 bi = (OPJ_FLOAT32*)(dwt->wavelet + 1 - dwt->cas); in opj_v4dwt_interleave_h()
2230 a += dwt->sn; in opj_v4dwt_interleave_h()
2231 x0 = dwt->win_h_x0; in opj_v4dwt_interleave_h()
2232 x1 = dwt->win_h_x1; in opj_v4dwt_interleave_h()
2236 static void opj_v4dwt_interleave_partial_h(opj_v4dwt_t* dwt, in opj_v4dwt_interleave_partial_h() argument
2245 dwt->win_l_x0, sa_line + i, in opj_v4dwt_interleave_partial_h()
2246 dwt->win_l_x1, sa_line + i + 1, in opj_v4dwt_interleave_partial_h()
2248 … (OPJ_INT32*)(dwt->wavelet + dwt->cas + 2 * dwt->win_l_x0) + i, in opj_v4dwt_interleave_partial_h()
2252 (OPJ_UINT32)dwt->sn + dwt->win_h_x0, sa_line + i, in opj_v4dwt_interleave_partial_h()
2253 (OPJ_UINT32)dwt->sn + dwt->win_h_x1, sa_line + i + 1, in opj_v4dwt_interleave_partial_h()
2255 … (OPJ_INT32*)(dwt->wavelet + 1 - dwt->cas + 2 * dwt->win_h_x0) + i, in opj_v4dwt_interleave_partial_h()
2262 static void opj_v4dwt_interleave_v(opj_v4dwt_t* OPJ_RESTRICT dwt, in opj_v4dwt_interleave_v() argument
2267 opj_v4_t* OPJ_RESTRICT bi = dwt->wavelet + dwt->cas; in opj_v4dwt_interleave_v()
2270 for (i = dwt->win_l_x0; i < dwt->win_l_x1; ++i) { in opj_v4dwt_interleave_v()
2275 a += (OPJ_UINT32)dwt->sn * (OPJ_SIZE_T)width; in opj_v4dwt_interleave_v()
2276 bi = dwt->wavelet + 1 - dwt->cas; in opj_v4dwt_interleave_v()
2278 for (i = dwt->win_h_x0; i < dwt->win_h_x1; ++i) { in opj_v4dwt_interleave_v()
2284 static void opj_v4dwt_interleave_partial_v(opj_v4dwt_t* OPJ_RESTRICT dwt, in opj_v4dwt_interleave_partial_v() argument
2291 sa_col, dwt->win_l_x0, in opj_v4dwt_interleave_partial_v()
2292 sa_col + nb_elts_read, dwt->win_l_x1, in opj_v4dwt_interleave_partial_v()
2293 (OPJ_INT32*)(dwt->wavelet + dwt->cas + 2 * dwt->win_l_x0), in opj_v4dwt_interleave_partial_v()
2297 sa_col, (OPJ_UINT32)dwt->sn + dwt->win_h_x0, in opj_v4dwt_interleave_partial_v()
2298 sa_col + nb_elts_read, (OPJ_UINT32)dwt->sn + dwt->win_h_x1, in opj_v4dwt_interleave_partial_v()
2299 (OPJ_INT32*)(dwt->wavelet + 1 - dwt->cas + 2 * dwt->win_h_x0), in opj_v4dwt_interleave_partial_v()
2455 static void opj_v4dwt_decode(opj_v4dwt_t* OPJ_RESTRICT dwt) in opj_v4dwt_decode() argument
2458 if (dwt->cas == 0) { in opj_v4dwt_decode()
2459 if (!((dwt->dn > 0) || (dwt->sn > 1))) { in opj_v4dwt_decode()
2465 if (!((dwt->sn > 0) || (dwt->dn > 1))) { in opj_v4dwt_decode()
2472 opj_v4dwt_decode_step1_sse(dwt->wavelet + a, dwt->win_l_x0, dwt->win_l_x1, in opj_v4dwt_decode()
2474 opj_v4dwt_decode_step1_sse(dwt->wavelet + b, dwt->win_h_x0, dwt->win_h_x1, in opj_v4dwt_decode()
2476 opj_v4dwt_decode_step2_sse(dwt->wavelet + b, dwt->wavelet + a + 1, in opj_v4dwt_decode()
2477 dwt->win_l_x0, dwt->win_l_x1, in opj_v4dwt_decode()
2478 (OPJ_UINT32)opj_int_min(dwt->sn, dwt->dn - a), in opj_v4dwt_decode()
2480 opj_v4dwt_decode_step2_sse(dwt->wavelet + a, dwt->wavelet + b + 1, in opj_v4dwt_decode()
2481 dwt->win_h_x0, dwt->win_h_x1, in opj_v4dwt_decode()
2482 (OPJ_UINT32)opj_int_min(dwt->dn, dwt->sn - b), in opj_v4dwt_decode()
2484 opj_v4dwt_decode_step2_sse(dwt->wavelet + b, dwt->wavelet + a + 1, in opj_v4dwt_decode()
2485 dwt->win_l_x0, dwt->win_l_x1, in opj_v4dwt_decode()
2486 (OPJ_UINT32)opj_int_min(dwt->sn, dwt->dn - a), in opj_v4dwt_decode()
2488 opj_v4dwt_decode_step2_sse(dwt->wavelet + a, dwt->wavelet + b + 1, in opj_v4dwt_decode()
2489 dwt->win_h_x0, dwt->win_h_x1, in opj_v4dwt_decode()
2490 (OPJ_UINT32)opj_int_min(dwt->dn, dwt->sn - b), in opj_v4dwt_decode()
2493 opj_v4dwt_decode_step1(dwt->wavelet + a, dwt->win_l_x0, dwt->win_l_x1, in opj_v4dwt_decode()
2495 opj_v4dwt_decode_step1(dwt->wavelet + b, dwt->win_h_x0, dwt->win_h_x1, in opj_v4dwt_decode()
2497 opj_v4dwt_decode_step2(dwt->wavelet + b, dwt->wavelet + a + 1, in opj_v4dwt_decode()
2498 dwt->win_l_x0, dwt->win_l_x1, in opj_v4dwt_decode()
2499 (OPJ_UINT32)opj_int_min(dwt->sn, dwt->dn - a), in opj_v4dwt_decode()
2501 opj_v4dwt_decode_step2(dwt->wavelet + a, dwt->wavelet + b + 1, in opj_v4dwt_decode()
2502 dwt->win_h_x0, dwt->win_h_x1, in opj_v4dwt_decode()
2503 (OPJ_UINT32)opj_int_min(dwt->dn, dwt->sn - b), in opj_v4dwt_decode()
2505 opj_v4dwt_decode_step2(dwt->wavelet + b, dwt->wavelet + a + 1, in opj_v4dwt_decode()
2506 dwt->win_l_x0, dwt->win_l_x1, in opj_v4dwt_decode()
2507 (OPJ_UINT32)opj_int_min(dwt->sn, dwt->dn - a), in opj_v4dwt_decode()
2509 opj_v4dwt_decode_step2(dwt->wavelet + a, dwt->wavelet + b + 1, in opj_v4dwt_decode()
2510 dwt->win_h_x0, dwt->win_h_x1, in opj_v4dwt_decode()
2511 (OPJ_UINT32)opj_int_min(dwt->dn, dwt->sn - b), in opj_v4dwt_decode()