Lines Matching refs:crop

519     // For sidesync, the dest fb will be in portrait orientation, and the crop
616 // be in portrait orientation, so update the crop to not show the
805 hwc_rect_t& crop, hwc_rect_t& dst) {
812 qhwc::calculate_crop_rects(crop, dst, scissor, transform);
820 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
823 (hwc_rect_t&)crop,
825 layer->sourceCropf.left = (float)crop.left;
826 layer->sourceCropf.right = (float)crop.right;
827 layer->sourceCropf.top = (float)crop.top;
828 layer->sourceCropf.bottom = (float)crop.bottom;
1044 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
1047 int& crop_l = crop.left;
1048 int& crop_t = crop.top;
1049 int& crop_r = crop.right;
1050 int& crop_b = crop.bottom;
1051 int crop_w = crop.right - crop.left;
1052 int crop_h = crop.bottom - crop.top;
1502 hwc_rect_t& crop, const eMdpFlags& mdpFlags,
1515 uint32_t crop_w = (crop.right - crop.left);
1516 uint32_t crop_h = (crop.bottom - crop.top);
1518 ovutils::normalizeCrop((uint32_t&)crop.left, crop_w);
1519 ovutils::normalizeCrop((uint32_t&)crop.top, crop_h);
1520 // For interlaced, crop.h should be 4-aligned
1523 crop.right = crop.left + crop_w;
1524 crop.bottom = crop.top + crop_h;
1526 Dim rotCrop(crop.left, crop.top, crop_w, crop_h);
1538 const eTransform& orient, const hwc_rect_t& crop,
1544 int crop_w = crop.right - crop.left;
1545 int crop_h = crop.bottom - crop.top;
1546 Dim dcrop(crop.left, crop.top, crop_w, crop_h);
1601 hwc_rect_t& crop) {
1602 Dim srcCrop(crop.left, crop.top,
1603 crop.right - crop.left,
1604 crop.bottom - crop.top);
1610 crop.left = 0;
1611 crop.top = 0;
1612 crop.right = srcCrop.w;
1613 crop.bottom = srcCrop.h;
1618 crop.left = srcCrop.x;
1619 crop.top = srcCrop.y;
1620 crop.right = srcCrop.x + srcCrop.w;
1621 crop.bottom = srcCrop.y + srcCrop.h;
1642 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
1659 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient);
1664 crop.right - crop.left,
1665 crop.bottom - crop.top,
1681 BwcPM::setBwc(crop, dst, transform, mdpFlags);
1683 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) {
1688 updateSource(orient, whf, crop);
1699 if(configMdp(ctx->mOverlay, parg, orient, crop, dst, metadata, dest) < 0) {
1749 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
1768 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient);
1779 if(ctx->mAD->prepare(ctx, crop, whf, hnd)) {
1789 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) {
1794 updateSource(orient, whf, crop);
1808 tmp_cropL = crop;
1817 tmp_cropR = crop;
1894 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);;
1910 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient);
1913 trimLayer(ctx, dpy, transform, crop, dst);
1920 BwcPM::setBwc(crop, dst, transform, mdpFlagsL);
1922 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) {
1927 updateSource(orient, whf, crop);
1938 tmp_cropL = crop;
1944 tmp_cropR = crop;
2154 void BwcPM::setBwc(const hwc_rect_t& crop,
2162 if((crop.right - crop.left) > qdutils::MAX_DISPLAY_DIM) {
2167 int src_w = crop.right - crop.left;
2168 int src_h = crop.bottom - crop.top;