Lines Matching refs:wrk
24 static void ImportRowShrink(WebPRescaler* const wrk, const uint8_t* src) { in ImportRowShrink() argument
25 const int x_stride = wrk->num_channels; in ImportRowShrink()
26 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowShrink()
27 const int fx_scale = wrk->fx_scale; in ImportRowShrink()
28 const int x_add = wrk->x_add; in ImportRowShrink()
29 const int x_sub = wrk->x_sub; in ImportRowShrink()
32 assert(!wrk->x_expand); in ImportRowShrink()
33 assert(!WebPRescalerInputDone(wrk)); in ImportRowShrink()
37 rescaler_t* frow = wrk->frow + channel; in ImportRowShrink()
83 static void ImportRowExpand(WebPRescaler* const wrk, const uint8_t* src) { in ImportRowExpand() argument
84 const int x_stride = wrk->num_channels; in ImportRowExpand()
85 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowExpand()
86 const int x_add = wrk->x_add; in ImportRowExpand()
87 const int x_sub = wrk->x_sub; in ImportRowExpand()
88 const int src_width = wrk->src_width; in ImportRowExpand()
91 assert(wrk->x_expand); in ImportRowExpand()
92 assert(!WebPRescalerInputDone(wrk)); in ImportRowExpand()
96 rescaler_t* frow = wrk->frow + channel; in ImportRowExpand()
140 assert(wrk->x_sub == 0 /* <- special case for src_width=1 */ || accum == 0); in ImportRowExpand()
147 static void ExportRowExpand(WebPRescaler* const wrk) { in ExportRowExpand() argument
148 uint8_t* dst = wrk->dst; in ExportRowExpand()
149 rescaler_t* irow = wrk->irow; in ExportRowExpand()
150 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowExpand()
151 const rescaler_t* frow = wrk->frow; in ExportRowExpand()
153 const int temp2 = (int)wrk->fy_scale; in ExportRowExpand()
155 assert(!WebPRescalerOutputDone(wrk)); in ExportRowExpand()
156 assert(wrk->y_accum <= 0); in ExportRowExpand()
157 assert(wrk->y_expand); in ExportRowExpand()
158 assert(wrk->y_sub != 0); in ExportRowExpand()
159 if (wrk->y_accum == 0) { in ExportRowExpand()
180 const uint32_t B = WEBP_RESCALER_FRAC(-wrk->y_accum, wrk->y_sub); in ExportRowExpand()
210 static void ExportRowShrink(WebPRescaler* const wrk) { in ExportRowShrink() argument
211 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowShrink()
212 uint8_t* dst = wrk->dst; in ExportRowShrink()
213 rescaler_t* irow = wrk->irow; in ExportRowShrink()
214 const rescaler_t* frow = wrk->frow; in ExportRowShrink()
215 const int yscale = wrk->fy_scale * (-wrk->y_accum); in ExportRowShrink()
217 const int temp2 = (int)wrk->fxy_scale; in ExportRowShrink()
220 assert(!WebPRescalerOutputDone(wrk)); in ExportRowShrink()
221 assert(wrk->y_accum <= 0); in ExportRowShrink()
222 assert(!wrk->y_expand); in ExportRowShrink()
223 assert(wrk->fxy_scale != 0); in ExportRowShrink()