Lines Matching refs:wrk
59 static void RescalerExportRowExpand(WebPRescaler* const wrk) {
61 uint8_t* const dst = wrk->dst;
62 rescaler_t* const irow = wrk->irow;
63 const int x_out_max = wrk->dst_width * wrk->num_channels;
65 const rescaler_t* const frow = wrk->frow;
66 const uint32_t fy_scale = wrk->fy_scale;
68 assert(!WebPRescalerOutputDone(wrk));
69 assert(wrk->y_accum <= 0);
70 assert(wrk->y_expand);
71 assert(wrk->y_sub != 0);
72 if (wrk->y_accum == 0) {
90 const uint32_t B = WEBP_RESCALER_FRAC(-wrk->y_accum, wrk->y_sub);
115 static void RescalerExportRowShrink(WebPRescaler* const wrk) {
117 uint8_t* const dst = wrk->dst;
118 rescaler_t* const irow = wrk->irow;
119 const int x_out_max = wrk->dst_width * wrk->num_channels;
121 const rescaler_t* const frow = wrk->frow;
122 const uint32_t yscale = wrk->fy_scale * (-wrk->y_accum);
123 const uint32_t fxy_scale = wrk->fxy_scale;
127 assert(!WebPRescalerOutputDone(wrk));
128 assert(wrk->y_accum <= 0);
129 assert(!wrk->y_expand);
148 const int v = (int)MULT_FIX_C(irow[x_out] - frac, wrk->fxy_scale);