Lines Matching refs:wrk
45 static void RescalerImportRowExpand_SSE2(WebPRescaler* const wrk, in RescalerImportRowExpand_SSE2() argument
47 rescaler_t* frow = wrk->frow; in RescalerImportRowExpand_SSE2()
48 const rescaler_t* const frow_end = frow + wrk->dst_width * wrk->num_channels; in RescalerImportRowExpand_SSE2()
49 const int x_add = wrk->x_add; in RescalerImportRowExpand_SSE2()
53 assert(!WebPRescalerInputDone(wrk)); in RescalerImportRowExpand_SSE2()
54 assert(wrk->x_expand); in RescalerImportRowExpand_SSE2()
55 if (wrk->num_channels == 4) { in RescalerImportRowExpand_SSE2()
56 if (wrk->src_width < 2) { in RescalerImportRowExpand_SSE2()
57 WebPRescalerImportRowExpand_C(wrk, src); in RescalerImportRowExpand_SSE2()
68 accum -= wrk->x_sub; in RescalerImportRowExpand_SSE2()
77 const uint8_t* const src_limit = src + wrk->src_width - 8; in RescalerImportRowExpand_SSE2()
78 if (wrk->src_width < 8) { in RescalerImportRowExpand_SSE2()
79 WebPRescalerImportRowExpand_C(wrk, src); in RescalerImportRowExpand_SSE2()
92 accum -= wrk->x_sub; in RescalerImportRowExpand_SSE2()
113 static void RescalerImportRowShrink_SSE2(WebPRescaler* const wrk, in RescalerImportRowShrink_SSE2() argument
115 const int x_sub = wrk->x_sub; in RescalerImportRowShrink_SSE2()
119 const __m128i mult1 = _mm_set1_epi32(wrk->fx_scale); in RescalerImportRowShrink_SSE2()
122 rescaler_t* frow = wrk->frow; in RescalerImportRowShrink_SSE2()
123 const rescaler_t* const frow_end = wrk->frow + 4 * wrk->dst_width; in RescalerImportRowShrink_SSE2()
125 if (wrk->num_channels != 4 || wrk->x_add > (x_sub << 7)) { in RescalerImportRowShrink_SSE2()
126 WebPRescalerImportRowShrink_C(wrk, src); in RescalerImportRowShrink_SSE2()
129 assert(!WebPRescalerInputDone(wrk)); in RescalerImportRowShrink_SSE2()
130 assert(!wrk->x_expand); in RescalerImportRowShrink_SSE2()
134 accum += wrk->x_add; in RescalerImportRowShrink_SSE2()
229 static void RescalerExportRowExpand_SSE2(WebPRescaler* const wrk) { in RescalerExportRowExpand_SSE2() argument
231 uint8_t* const dst = wrk->dst; in RescalerExportRowExpand_SSE2()
232 rescaler_t* const irow = wrk->irow; in RescalerExportRowExpand_SSE2()
233 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowExpand_SSE2()
234 const rescaler_t* const frow = wrk->frow; in RescalerExportRowExpand_SSE2()
235 const __m128i mult = _mm_set_epi32(0, wrk->fy_scale, 0, wrk->fy_scale); in RescalerExportRowExpand_SSE2()
237 assert(!WebPRescalerOutputDone(wrk)); in RescalerExportRowExpand_SSE2()
238 assert(wrk->y_accum <= 0 && wrk->y_sub + wrk->y_accum >= 0); in RescalerExportRowExpand_SSE2()
239 assert(wrk->y_expand); in RescalerExportRowExpand_SSE2()
240 if (wrk->y_accum == 0) { in RescalerExportRowExpand_SSE2()
248 const int v = (int)MULT_FIX(J, wrk->fy_scale); in RescalerExportRowExpand_SSE2()
253 const uint32_t B = WEBP_RESCALER_FRAC(-wrk->y_accum, wrk->y_sub); in RescalerExportRowExpand_SSE2()
282 const int v = (int)MULT_FIX(J, wrk->fy_scale); in RescalerExportRowExpand_SSE2()
289 static void RescalerExportRowShrink_SSE2(WebPRescaler* const wrk) { in RescalerExportRowShrink_SSE2() argument
291 uint8_t* const dst = wrk->dst; in RescalerExportRowShrink_SSE2()
292 rescaler_t* const irow = wrk->irow; in RescalerExportRowShrink_SSE2()
293 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowShrink_SSE2()
294 const rescaler_t* const frow = wrk->frow; in RescalerExportRowShrink_SSE2()
295 const uint32_t yscale = wrk->fy_scale * (-wrk->y_accum); in RescalerExportRowShrink_SSE2()
296 assert(!WebPRescalerOutputDone(wrk)); in RescalerExportRowShrink_SSE2()
297 assert(wrk->y_accum <= 0); in RescalerExportRowShrink_SSE2()
298 assert(!wrk->y_expand); in RescalerExportRowShrink_SSE2()
300 const int scale_xy = wrk->fxy_scale; in RescalerExportRowShrink_SSE2()
332 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale); in RescalerExportRowShrink_SSE2()
338 const uint32_t scale = wrk->fxy_scale; in RescalerExportRowShrink_SSE2()