Lines Matching refs:width
23 // Grab the 'specs' (writer, *opaque, width, height...) from 'src' and copy them
46 int width, int height) {
49 if (width <= 0 || height <= 0) return 0;
50 if ((*left) + width > pic->width) return 0;
64 dst->y, dst->y_stride, dst->width, dst->height);
66 HALVE(dst->width), HALVE(dst->height));
68 HALVE(dst->width), HALVE(dst->height));
71 dst->a, dst->a_stride, dst->width, dst->height);
76 4 * dst->width, dst->height);
90 int left, int top, int width, int height,
95 if (!AdjustAndCheckRectangle(src, &left, &top, width, height)) return 0;
100 dst->width = width;
123 int left, int top, int width, int height) {
127 if (!AdjustAndCheckRectangle(pic, &left, &top, width, height)) return 0;
130 tmp.width = width;
138 tmp.y, tmp.y_stride, width, height);
140 tmp.u, tmp.uv_stride, HALVE(width), HALVE(height));
142 tmp.v, tmp.uv_stride, HALVE(width), HALVE(height));
147 tmp.a, tmp.a_stride, width, height);
153 tmp.argb_stride * 4, width * 4, height);
184 pic->width, pic->height, inverse);
190 pic->width, pic->height, inverse);
194 int WebPPictureRescale(WebPPicture* pic, int width, int height) {
200 prev_width = pic->width;
203 prev_width, prev_height, &width, &height)) {
208 tmp.width = width;
213 work = (rescaler_t*)WebPSafeMalloc(2ULL * width, sizeof(*work));
222 tmp.a, width, height, tmp.a_stride, work, 1);
229 tmp.y, width, height, tmp.y_stride, work, 1);
235 HALVE(width), HALVE(height), tmp.uv_stride, work, 1);
239 HALVE(width), HALVE(height), tmp.uv_stride, work, 1);
241 work = (rescaler_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work));
253 (uint8_t*)tmp.argb, width, height,