Lines Matching refs:height

48 	crop->height = (pix->height < fbuf->fmt.height) ?
49 pix->height : fbuf->fmt.height;
51 crop->height &= ~1;
53 crop->top = ((pix->height - crop->height) >> 1) & ~1;
79 try_win.height += try_win.top;
84 try_win.height = (try_win.height < fbuf->fmt.height) ?
85 try_win.height : fbuf->fmt.height;
88 if (try_win.top + try_win.height > fbuf->fmt.height)
89 try_win.height = fbuf->fmt.height - try_win.top;
91 try_win.height &= ~1;
93 if (try_win.width <= 0 || try_win.height <= 0)
129 if ((crop->height/win->w.height) >= 2)
130 crop->height = win->w.height * 2;
140 if (crop->height != win->w.height)
145 if ((crop->height/win->w.height) >= 4)
146 crop->height = win->w.height * 4;
181 try_crop.height += try_crop.top;
186 try_crop.height = (try_crop.height < pix->height) ?
187 try_crop.height : pix->height;
190 if (try_crop.top + try_crop.height > pix->height)
191 try_crop.height = pix->height - try_crop.top;
194 try_crop.height &= ~1;
196 if (try_crop.width <= 0 || try_crop.height <= 0)
200 if (try_crop.height != win->w.height) {
209 vresize = (1024 * try_crop.height) / win->w.height;
215 win->w.height = ((1024 * try_crop.height) / vresize) & ~1;
216 if (win->w.height == 0)
217 win->w.height = 2;
218 if (win->w.height + win->w.top > fbuf->fmt.height) {
221 * cropping height to maintain the vertical resizing ratio.
223 win->w.height = (fbuf->fmt.height - win->w.top) & ~1;
224 if (try_crop.height == 0)
225 try_crop.height = 2;
247 if ((try_crop.height/win->w.height) >= 2)
248 try_crop.height = win->w.height * 2;
258 if (try_crop.height != win->w.height)
262 if ((try_crop.height/win->w.height) >= 4)
263 try_crop.height = win->w.height * 4;
292 win->w.height = crop->height;
294 win->w.top = ((fbuf->fmt.height - win->w.height) >> 1) & ~1;