Lines Matching refs:try_win
66 struct v4l2_rect try_win; in omap_vout_try_window() local
69 try_win = new_win->w; in omap_vout_try_window()
74 if (try_win.left < 0) { in omap_vout_try_window()
75 try_win.width += try_win.left; in omap_vout_try_window()
76 try_win.left = 0; in omap_vout_try_window()
78 if (try_win.top < 0) { in omap_vout_try_window()
79 try_win.height += try_win.top; in omap_vout_try_window()
80 try_win.top = 0; 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()
84 try_win.height = (try_win.height < fbuf->fmt.height) ? in omap_vout_try_window()
85 try_win.height : fbuf->fmt.height; 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()
88 if (try_win.top + try_win.height > fbuf->fmt.height) in omap_vout_try_window()
89 try_win.height = fbuf->fmt.height - try_win.top; in omap_vout_try_window()
90 try_win.width &= ~1; in omap_vout_try_window()
91 try_win.height &= ~1; in omap_vout_try_window()
93 if (try_win.width <= 0 || try_win.height <= 0) in omap_vout_try_window()
97 new_win->w = try_win; in omap_vout_try_window()