Lines Matching refs:crop
219 c->width, c->height, c->crop.x, c->crop.y, in dump_dsscomp()
220 c->crop.w, c->crop.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()
484 oc->crop.x = layer->sourceCrop.left; in omap4_hwc_setup_layer()
485 oc->crop.y = layer->sourceCrop.top; in omap4_hwc_setup_layer()
486 oc->crop.w = WIDTH(layer->sourceCrop); in omap4_hwc_setup_layer()
487 oc->crop.h = HEIGHT(layer->sourceCrop); in omap4_hwc_setup_layer()
597 } crop, win; in crop_to_rect() local
604 crop.xy[0] = cfg->crop.x; crop.xy[1] = cfg->crop.y; in crop_to_rect()
605 crop.wh[0] = cfg->crop.w; crop.wh[1] = cfg->crop.h; in crop_to_rect()
613 crop.xy[1] -= (crop.wh[1] = -crop.wh[1]); in crop_to_rect()
615 crop.xy[!swap] -= (crop.wh[!swap] = -crop.wh[!swap]); in crop_to_rect()
617 crop.xy[swap] -= (crop.wh[swap] = -crop.wh[swap]); in crop_to_rect()
625 !crop.wh[c ^ swap]) in crop_to_rect()
631 int a = (vis.lt[c] - win.xy[c]) * crop.wh[c ^ swap] / win.wh[c]; in crop_to_rect()
632 crop.xy[c ^ swap] += a; in crop_to_rect()
633 crop.wh[c ^ swap] -= a; 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()
643 if (!crop.wh[c ^ swap] || !win.wh[c]) in crop_to_rect()
649 crop.xy[!swap] -= (crop.wh[!swap] = -crop.wh[!swap]); in crop_to_rect()
651 crop.xy[swap] -= (crop.wh[swap] = -crop.wh[swap]); in crop_to_rect()
653 crop.xy[1] -= (crop.wh[1] = -crop.wh[1]); in crop_to_rect()
657 cfg->crop.x = crop.xy[0]; cfg->crop.y = crop.xy[1]; in crop_to_rect()
658 cfg->crop.w = crop.wh[0]; cfg->crop.h = crop.wh[1]; in crop_to_rect()
1140 __u32 xres = o->cfg.crop.w, yres = o->cfg.crop.h; in clone_external_layer()
1145 xpy = o->cfg.crop.h / xpy / o->cfg.crop.w; in clone_external_layer()
1147 xpy = o->cfg.crop.h * xpy / o->cfg.crop.w; in clone_external_layer()
1556 cfg->crop.x, cfg->crop.y, cfg->crop.w, cfg->crop.h); in omap4_hwc_dump()