Lines Matching refs:win
222 c->win.x, c->win.y, c->win.w, c->win.h, in dump_dsscomp()
444 oc->crop.w = oc->win.w = width; in omap4_hwc_setup_layer_base()
445 oc->crop.h = oc->win.h = height; in omap4_hwc_setup_layer_base()
478 oc->win.x = layer->displayFrame.left; in omap4_hwc_setup_layer()
479 oc->win.y = layer->displayFrame.top; in omap4_hwc_setup_layer()
480 oc->win.w = WIDTH(layer->displayFrame); in omap4_hwc_setup_layer()
481 oc->win.h = HEIGHT(layer->displayFrame); in omap4_hwc_setup_layer()
597 } crop, win; in crop_to_rect() local
602 win.xy[0] = cfg->win.x; win.xy[1] = cfg->win.y; in crop_to_rect()
603 win.wh[0] = cfg->win.w; win.wh[1] = cfg->win.h; in crop_to_rect()
622 if (win.wh[c] <= 0 || vis.rb[c] <= vis.lt[c] || in crop_to_rect()
623 win.xy[c] + win.wh[c] <= vis.lt[c] || in crop_to_rect()
624 win.xy[c] >= vis.rb[c] || in crop_to_rect()
629 if (win.xy[c] < vis.lt[c]) { in crop_to_rect()
631 int a = (vis.lt[c] - win.xy[c]) * crop.wh[c ^ swap] / win.wh[c]; in crop_to_rect()
634 win.wh[c] -= vis.lt[c] - win.xy[c]; in crop_to_rect()
635 win.xy[c] = vis.lt[c]; in crop_to_rect()
638 if (win.xy[c] + win.wh[c] > vis.rb[c]) { in crop_to_rect()
639 crop.wh[c ^ swap] = crop.wh[c ^ swap] * (vis.rb[c] - win.xy[c]) / win.wh[c]; in crop_to_rect()
640 win.wh[c] = vis.rb[c] - win.xy[c]; in crop_to_rect()
643 if (!crop.wh[c ^ swap] || !win.wh[c]) in crop_to_rect()
655 cfg->win.x = win.xy[0]; cfg->win.y = win.xy[1]; in crop_to_rect()
656 cfg->win.w = win.wh[0]; cfg->win.h = win.wh[1]; in crop_to_rect()
677 x = ext->m[0][0] * oc->win.x + ext->m[0][1] * oc->win.y + ext->m[0][2]; in omap4_hwc_adjust_ext_layer()
678 y = ext->m[1][0] * oc->win.x + ext->m[1][1] * oc->win.y + ext->m[1][2]; in omap4_hwc_adjust_ext_layer()
679 w = ext->m[0][0] * oc->win.w + ext->m[0][1] * oc->win.h; in omap4_hwc_adjust_ext_layer()
680 h = ext->m[1][0] * oc->win.w + ext->m[1][1] * oc->win.h; in omap4_hwc_adjust_ext_layer()
681 oc->win.x = m_round(w > 0 ? x : x + w); in omap4_hwc_adjust_ext_layer()
682 oc->win.y = m_round(h > 0 ? y : y + h); in omap4_hwc_adjust_ext_layer()
683 oc->win.w = m_round(w > 0 ? w : -w); in omap4_hwc_adjust_ext_layer()
684 oc->win.h = m_round(h > 0 ? h : -h); in omap4_hwc_adjust_ext_layer()
1102 return o->cfg.win.w * o->cfg.win.h; in display_area()
1143 float xpy = ext->lcd_xpy * o->cfg.win.w / o->cfg.win.h; in clone_external_layer()
1164 .left = o->cfg.win.x, .top = o->cfg.win.y, in clone_external_layer()
1165 .right = o->cfg.win.x + o->cfg.win.w, in clone_external_layer()
1166 .bottom = o->cfg.win.y + o->cfg.win.h in clone_external_layer()
1558 cfg->win.x, cfg->win.y, cfg->win.w, cfg->win.h); in omap4_hwc_dump()