Lines Matching refs:height
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;
51 if ((*top) + height > pic->height) 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;
101 dst->height = height;
123 int left, int top, int width, int height) {
127 if (!AdjustAndCheckRectangle(pic, &left, &top, width, height)) return 0;
131 tmp.height = height;
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) {
201 prev_height = pic->height;
203 prev_width, prev_height, &width, &height)) {
209 tmp.height = height;
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);
253 (uint8_t*)tmp.argb, width, height,