Lines Matching refs:wrk
44 static void RescalerImportRowExpandSSE2(WebPRescaler* const wrk, in RescalerImportRowExpandSSE2() argument
46 rescaler_t* frow = wrk->frow; in RescalerImportRowExpandSSE2()
47 const rescaler_t* const frow_end = frow + wrk->dst_width * wrk->num_channels; in RescalerImportRowExpandSSE2()
48 const int x_add = wrk->x_add; in RescalerImportRowExpandSSE2()
52 assert(!WebPRescalerInputDone(wrk)); in RescalerImportRowExpandSSE2()
53 assert(wrk->x_expand); in RescalerImportRowExpandSSE2()
54 if (wrk->num_channels == 4) { in RescalerImportRowExpandSSE2()
55 if (wrk->src_width < 2) { in RescalerImportRowExpandSSE2()
56 WebPRescalerImportRowExpandC(wrk, src); in RescalerImportRowExpandSSE2()
67 accum -= wrk->x_sub; in RescalerImportRowExpandSSE2()
76 const uint8_t* const src_limit = src + wrk->src_width - 8; in RescalerImportRowExpandSSE2()
77 if (wrk->src_width < 8) { in RescalerImportRowExpandSSE2()
78 WebPRescalerImportRowExpandC(wrk, src); in RescalerImportRowExpandSSE2()
91 accum -= wrk->x_sub; in RescalerImportRowExpandSSE2()
112 static void RescalerImportRowShrinkSSE2(WebPRescaler* const wrk, in RescalerImportRowShrinkSSE2() argument
114 const int x_sub = wrk->x_sub; in RescalerImportRowShrinkSSE2()
118 const __m128i mult1 = _mm_set1_epi32(wrk->fx_scale); in RescalerImportRowShrinkSSE2()
121 rescaler_t* frow = wrk->frow; in RescalerImportRowShrinkSSE2()
122 const rescaler_t* const frow_end = wrk->frow + 4 * wrk->dst_width; in RescalerImportRowShrinkSSE2()
124 if (wrk->num_channels != 4 || wrk->x_add > (x_sub << 7)) { in RescalerImportRowShrinkSSE2()
125 WebPRescalerImportRowShrinkC(wrk, src); in RescalerImportRowShrinkSSE2()
128 assert(!WebPRescalerInputDone(wrk)); in RescalerImportRowShrinkSSE2()
129 assert(!wrk->x_expand); in RescalerImportRowShrinkSSE2()
133 accum += wrk->x_add; in RescalerImportRowShrinkSSE2()
228 static void RescalerExportRowExpandSSE2(WebPRescaler* const wrk) { in RescalerExportRowExpandSSE2() argument
230 uint8_t* const dst = wrk->dst; in RescalerExportRowExpandSSE2()
231 rescaler_t* const irow = wrk->irow; in RescalerExportRowExpandSSE2()
232 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowExpandSSE2()
233 const rescaler_t* const frow = wrk->frow; in RescalerExportRowExpandSSE2()
234 const __m128i mult = _mm_set_epi32(0, wrk->fy_scale, 0, wrk->fy_scale); in RescalerExportRowExpandSSE2()
236 assert(!WebPRescalerOutputDone(wrk)); in RescalerExportRowExpandSSE2()
237 assert(wrk->y_accum <= 0 && wrk->y_sub + wrk->y_accum >= 0); in RescalerExportRowExpandSSE2()
238 assert(wrk->y_expand); in RescalerExportRowExpandSSE2()
239 if (wrk->y_accum == 0) { in RescalerExportRowExpandSSE2()
247 const int v = (int)MULT_FIX(J, wrk->fy_scale); in RescalerExportRowExpandSSE2()
252 const uint32_t B = WEBP_RESCALER_FRAC(-wrk->y_accum, wrk->y_sub); in RescalerExportRowExpandSSE2()
281 const int v = (int)MULT_FIX(J, wrk->fy_scale); in RescalerExportRowExpandSSE2()
288 static void RescalerExportRowShrinkSSE2(WebPRescaler* const wrk) { in RescalerExportRowShrinkSSE2() argument
290 uint8_t* const dst = wrk->dst; in RescalerExportRowShrinkSSE2()
291 rescaler_t* const irow = wrk->irow; in RescalerExportRowShrinkSSE2()
292 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowShrinkSSE2()
293 const rescaler_t* const frow = wrk->frow; in RescalerExportRowShrinkSSE2()
294 const uint32_t yscale = wrk->fy_scale * (-wrk->y_accum); in RescalerExportRowShrinkSSE2()
295 assert(!WebPRescalerOutputDone(wrk)); in RescalerExportRowShrinkSSE2()
296 assert(wrk->y_accum <= 0); in RescalerExportRowShrinkSSE2()
297 assert(!wrk->y_expand); in RescalerExportRowShrinkSSE2()
299 const int scale_xy = wrk->fxy_scale; in RescalerExportRowShrinkSSE2()
331 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale); in RescalerExportRowShrinkSSE2()
337 const uint32_t scale = wrk->fxy_scale; in RescalerExportRowShrinkSSE2()