Lines Matching refs:crop
805 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
812 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
820 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in trimList() local
823 (hwc_rect_t&)crop, in trimList()
825 layer->sourceCropf.left = (float)crop.left; in trimList()
826 layer->sourceCropf.right = (float)crop.right; in trimList()
827 layer->sourceCropf.top = (float)crop.top; in trimList()
828 layer->sourceCropf.bottom = (float)crop.bottom; in trimList()
1044 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
1047 int& crop_l = crop.left; in calculate_crop_rects()
1048 int& crop_t = crop.top; in calculate_crop_rects()
1049 int& crop_r = crop.right; in calculate_crop_rects()
1050 int& crop_b = crop.bottom; in calculate_crop_rects()
1051 int crop_w = crop.right - crop.left; in calculate_crop_rects()
1052 int crop_h = crop.bottom - crop.top; in calculate_crop_rects()
1494 hwc_rect_t& crop, const eMdpFlags& mdpFlags, in configRotator() argument
1507 uint32_t crop_w = (crop.right - crop.left); in configRotator()
1508 uint32_t crop_h = (crop.bottom - crop.top); in configRotator()
1510 ovutils::normalizeCrop((uint32_t&)crop.left, crop_w); in configRotator()
1511 ovutils::normalizeCrop((uint32_t&)crop.top, crop_h); in configRotator()
1515 crop.right = crop.left + crop_w; in configRotator()
1516 crop.bottom = crop.top + crop_h; in configRotator()
1518 Dim rotCrop(crop.left, crop.top, crop_w, crop_h); in configRotator()
1530 const eTransform& orient, const hwc_rect_t& crop, in configMdp() argument
1536 int crop_w = crop.right - crop.left; in configMdp()
1537 int crop_h = crop.bottom - crop.top; in configMdp()
1538 Dim dcrop(crop.left, crop.top, crop_w, crop_h); in configMdp()
1593 hwc_rect_t& crop) { in updateSource() argument
1594 Dim srcCrop(crop.left, crop.top, in updateSource()
1595 crop.right - crop.left, in updateSource()
1596 crop.bottom - crop.top); in updateSource()
1602 crop.left = 0; in updateSource()
1603 crop.top = 0; in updateSource()
1604 crop.right = srcCrop.w; in updateSource()
1605 crop.bottom = srcCrop.h; in updateSource()
1610 crop.left = srcCrop.x; in updateSource()
1611 crop.top = srcCrop.y; in updateSource()
1612 crop.right = srcCrop.x + srcCrop.w; in updateSource()
1613 crop.bottom = srcCrop.y + srcCrop.h; in updateSource()
1634 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configureNonSplit() local
1651 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient); in configureNonSplit()
1656 crop.right - crop.left, in configureNonSplit()
1657 crop.bottom - crop.top, in configureNonSplit()
1673 BwcPM::setBwc(crop, dst, transform, mdpFlags); in configureNonSplit()
1675 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configureNonSplit()
1680 updateSource(orient, whf, crop); in configureNonSplit()
1691 if(configMdp(ctx->mOverlay, parg, orient, crop, dst, metadata, dest) < 0) { in configureNonSplit()
1741 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configureSplit() local
1760 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient); in configureSplit()
1771 if(ctx->mAD->prepare(ctx, crop, whf, hnd)) { in configureSplit()
1781 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) { in configureSplit()
1786 updateSource(orient, whf, crop); in configureSplit()
1800 tmp_cropL = crop; in configureSplit()
1809 tmp_cropR = crop; in configureSplit()
1886 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);; in configureSourceSplit() local
1902 calcExtDisplayPosition(ctx, hnd, dpy, crop, dst, transform, orient); in configureSourceSplit()
1905 trimLayer(ctx, dpy, transform, crop, dst); in configureSourceSplit()
1912 BwcPM::setBwc(crop, dst, transform, mdpFlagsL); in configureSourceSplit()
1914 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) { in configureSourceSplit()
1919 updateSource(orient, whf, crop); in configureSourceSplit()
1930 tmp_cropL = crop; in configureSourceSplit()
1936 tmp_cropR = crop; in configureSourceSplit()
2146 void BwcPM::setBwc(const hwc_rect_t& crop, in setBwc() argument
2154 if((crop.right - crop.left) > qdutils::MAX_DISPLAY_DIM) { in setBwc()
2159 int src_w = crop.right - crop.left; in setBwc()
2160 int src_h = crop.bottom - crop.top; in setBwc()