Lines Matching refs:crop

506     // For sidesync, the dest fb will be in portrait orientation, and the crop
603 // be in portrait orientation, so update the crop to not show the
792 hwc_rect_t& crop, hwc_rect_t& dst) {
799 qhwc::calculate_crop_rects(crop, dst, scissor, transform);
807 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
810 (hwc_rect_t&)crop,
812 layer->sourceCropf.left = (float)crop.left;
813 layer->sourceCropf.right = (float)crop.right;
814 layer->sourceCropf.top = (float)crop.top;
815 layer->sourceCropf.bottom = (float)crop.bottom;
1031 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
1034 int& crop_l = crop.left;
1035 int& crop_t = crop.top;
1036 int& crop_r = crop.right;
1037 int& crop_b = crop.bottom;
1038 int crop_w = crop.right - crop.left;
1039 int crop_h = crop.bottom - crop.top;
1518 hwc_rect_t& crop, const eMdpFlags& mdpFlags,
1531 Dim rotCrop(crop.left, crop.top, crop.right - crop.left,
1532 crop.bottom - crop.top);
1544 const eTransform& orient, const hwc_rect_t& crop,
1550 int crop_w = crop.right - crop.left;
1551 int crop_h = crop.bottom - crop.top;
1552 Dim dcrop(crop.left, crop.top, crop_w, crop_h);
1607 hwc_rect_t& crop, Rotator *rot) {
1608 Dim transformedCrop(crop.left, crop.top,
1609 crop.right - crop.left,
1610 crop.bottom - crop.top);
1618 //A-family rotator rotates entire buffer irrespective of crop, forcing
1619 //us to recompute the crop based on transform
1624 crop.left = transformedCrop.x;
1625 crop.top = transformedCrop.y;
1626 crop.right = transformedCrop.x + transformedCrop.w;
1627 crop.bottom = transformedCrop.y + transformedCrop.h;
1647 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
1664 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient);
1669 crop.right - crop.left,
1670 crop.bottom - crop.top,
1687 BwcPM::setBwc(crop, dst, transform, mdpFlags);
1689 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) {
1693 updateSource(orient, whf, crop, *rot);
1704 if(configMdp(ctx->mOverlay, parg, orient, crop, dst, metadata, dest) < 0) {
1754 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
1773 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient);
1784 if(ctx->mAD->prepare(ctx, crop, whf, hnd)) {
1794 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) {
1798 updateSource(orient, whf, crop, *rot);
1812 tmp_cropL = crop;
1821 tmp_cropR = crop;
1898 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);;
1914 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient);
1917 trimLayer(ctx, dpy, transform, crop, dst);
1925 BwcPM::setBwc(crop, dst, transform, mdpFlagsL);
1927 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) {
1931 updateSource(orient, whf, crop, *rot);
1942 tmp_cropL = crop;
1948 tmp_cropR = crop;
2172 void BwcPM::setBwc(const hwc_rect_t& crop,
2179 int src_w = crop.right - crop.left;
2180 int src_h = crop.bottom - crop.top;