Lines Matching full:width

46 	crop->width = (pix->width < fbuf->fmt.width) ?  in omap_vout_default_crop()
47 pix->width : fbuf->fmt.width; in omap_vout_default_crop()
50 crop->width &= ~1; in omap_vout_default_crop()
52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop()
75 try_win.width += try_win.left; in omap_vout_try_window()
82 try_win.width = (try_win.width < fbuf->fmt.width) ? in omap_vout_try_window()
83 try_win.width : fbuf->fmt.width; in omap_vout_try_window()
86 if (try_win.left + try_win.width > fbuf->fmt.width) in omap_vout_try_window()
87 try_win.width = fbuf->fmt.width - try_win.left; in omap_vout_try_window()
90 try_win.width &= ~1; in omap_vout_try_window()
93 if (try_win.width <= 0 || try_win.height <= 0) in omap_vout_try_window()
136 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window()
137 crop->width = win->w.width * 2; in omap_vout_new_window()
139 if (crop->width > 768) { in omap_vout_new_window()
145 crop->width = 768; in omap_vout_new_window()
152 if ((crop->width/win->w.width) >= 4) in omap_vout_new_window()
153 crop->width = win->w.width * 4; in omap_vout_new_window()
181 try_crop.width += try_crop.left; in omap_vout_new_crop()
188 try_crop.width = (try_crop.width < pix->width) ? in omap_vout_new_crop()
189 try_crop.width : pix->width; in omap_vout_new_crop()
192 if (try_crop.left + try_crop.width > pix->width) in omap_vout_new_crop()
193 try_crop.width = pix->width - try_crop.left; in omap_vout_new_crop()
197 try_crop.width &= ~1; in omap_vout_new_crop()
200 if (try_crop.width <= 0 || try_crop.height <= 0) in omap_vout_new_crop()
206 * crop width wider than 768 pixels. in omap_vout_new_crop()
208 if (try_crop.width > 768) in omap_vout_new_crop()
209 try_crop.width = 768; in omap_vout_new_crop()
232 hresize = (1024 * try_crop.width) / win->w.width; in omap_vout_new_crop()
238 win->w.width = ((1024 * try_crop.width) / hresize) & ~1; in omap_vout_new_crop()
239 if (win->w.width == 0) in omap_vout_new_crop()
240 win->w.width = 2; in omap_vout_new_crop()
241 if (win->w.width + win->w.left > fbuf->fmt.width) { in omap_vout_new_crop()
244 * cropping width to maintain the horizontal resizing ratio. in omap_vout_new_crop()
246 win->w.width = (fbuf->fmt.width - win->w.left) & ~1; in omap_vout_new_crop()
247 if (try_crop.width == 0) in omap_vout_new_crop()
248 try_crop.width = 2; in omap_vout_new_crop()
254 if ((try_crop.width/win->w.width) >= 2) in omap_vout_new_crop()
255 try_crop.width = win->w.width * 2; in omap_vout_new_crop()
257 if (try_crop.width > 768) { in omap_vout_new_crop()
263 try_crop.width = 768; in omap_vout_new_crop()
269 if ((try_crop.width/win->w.width) >= 4) in omap_vout_new_crop()
270 try_crop.width = win->w.width * 4; in omap_vout_new_crop()
295 win->w.width = crop->width; in omap_vout_new_format()
297 win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1; in omap_vout_new_format()