Home | History | Annotate | Download | only in enc

Lines Matching refs:height

23 // Grab the 'specs' (writer, *opaque, width, height...) from 'src' and copy them
36 uint8_t* dst, int dst_stride, int width, int height) {
37 while (height-- > 0) {
56 int width, int height) {
59 if (width <= 0 || height <= 0) return 0;
61 if ((*top) + height > pic->height) return 0;
74 dst->y, dst->y_stride, dst->width, dst->height);
76 dst->u, dst->uv_stride, HALVE(dst->width), HALVE(dst->height));
78 dst->v, dst->uv_stride, HALVE(dst->width), HALVE(dst->height));
81 dst->a, dst->a_stride, dst->width, dst->height);
86 4 * dst->width, dst->height);
100 int left, int top, int width, int height,
105 if (!AdjustAndCheckRectangle(src, &left, &top, width, height)) return 0;
111 dst->height = height;
133 int left, int top, int width, int height) {
137 if (!AdjustAndCheckRectangle(pic, &left, &top, width, height)) return 0;
141 tmp.height = height;
148 tmp.y, tmp.y_stride, width, height);
150 tmp.u, tmp.uv_stride, HALVE(width), HALVE(height));
152 tmp.v, tmp.uv_stride, HALVE(width), HALVE(height));
157 tmp.a, tmp.a_stride, width, height);
164 width * 4, height);
199 pic->width, pic->height, inverse);
205 pic->width, pic->height, inverse);
209 int WebPPictureRescale(WebPPicture* pic, int width, int height) {
216 prev_height = pic->height;
217 // if width is unspecified, scale original proportionally to height ratio.
219 width = (prev_width * height + prev_height / 2) / prev_height;
221 // if height is unspecified, scale original proportionally to width ratio.
222 if (height == 0) {
223 height = (prev_height * width + prev_width / 2) / prev_width;
226 if (width <= 0 || height <= 0) return 0;
230 tmp.height = height;
243 tmp.a, width, height, tmp.a_stride, work, 1);
250 tmp.y, width, height, tmp.y_stride, work, 1);
256 HALVE(width), HALVE(height), tmp.uv_stride, work, 1);
260 HALVE(width), HALVE(height), tmp.uv_stride, work, 1);
274 (uint8_t*)tmp.argb, width, height,