Lines Matching refs:crop
505 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
508 int& crop_l = crop.left; in calculate_crop_rects()
509 int& crop_t = crop.top; in calculate_crop_rects()
510 int& crop_r = crop.right; in calculate_crop_rects()
511 int& crop_b = crop.bottom; in calculate_crop_rects()
512 int crop_w = crop.right - crop.left; in calculate_crop_rects()
513 int crop_h = crop.bottom - crop.top; in calculate_crop_rects()
739 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
745 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
799 hwc_rect_t& crop, const eMdpFlags& mdpFlags, in configRotator() argument
805 uint32_t crop_w = (crop.right - crop.left); in configRotator()
806 uint32_t crop_h = (crop.bottom - crop.top); in configRotator()
808 ovutils::normalizeCrop((uint32_t&)crop.left, crop_w); in configRotator()
809 ovutils::normalizeCrop((uint32_t&)crop.top, crop_h); in configRotator()
813 crop.right = crop.left + crop_w; in configRotator()
814 crop.bottom = crop.top + crop_h; in configRotator()
816 Dim rotCrop(crop.left, crop.top, crop_w, crop_h); in configRotator()
828 const eTransform& orient, const hwc_rect_t& crop, in configMdp() argument
834 int crop_w = crop.right - crop.left; in configMdp()
835 int crop_h = crop.bottom - crop.top; in configMdp()
836 Dim dcrop(crop.left, crop.top, crop_w, crop_h); in configMdp()
854 hwc_rect_t& crop) { in updateSource() argument
855 Dim srcCrop(crop.left, crop.top, in updateSource()
856 crop.right - crop.left, in updateSource()
857 crop.bottom - crop.top); in updateSource()
863 crop.left = 0; in updateSource()
864 crop.top = 0; in updateSource()
865 crop.right = srcCrop.w; in updateSource()
866 crop.bottom = srcCrop.h; in updateSource()
871 crop.left = srcCrop.x; in updateSource()
872 crop.top = srcCrop.y; in updateSource()
873 crop.right = srcCrop.x + srcCrop.w; in updateSource()
874 crop.bottom = srcCrop.y + srcCrop.h; in updateSource()
891 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configureLowRes() local
917 crop.right - crop.left, in configureLowRes()
918 crop.bottom - crop.top, in configureLowRes()
927 trimLayer(ctx, dpy, transform, crop, dst); in configureLowRes()
931 if(ctx->mAD->prepare(ctx, crop, whf, hnd)) { in configureLowRes()
940 BwcPM::setBwc(ctx, crop, dst, transform, mdpFlags); in configureLowRes()
942 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configureLowRes()
949 updateSource(orient, whf, crop); in configureLowRes()
961 if(configMdp(ctx->mOverlay, parg, orient, crop, dst, metadata, dest) < 0) { in configureLowRes()
983 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configureHighRes() local
994 trimLayer(ctx, dpy, transform, crop, dst); in configureHighRes()
998 if(ctx->mAD->prepare(ctx, crop, whf, hnd)) { in configureHighRes()
1007 if(configRotator(*rot, whf, crop, mdpFlagsL, orient, downscale) < 0) { in configureHighRes()
1014 updateSource(orient, whf, crop); in configureHighRes()
1027 tmp_cropL = crop; in configureHighRes()
1033 tmp_cropR = crop; in configureHighRes()
1161 void BwcPM::setBwc(hwc_context_t *ctx, const hwc_rect_t& crop, in setBwc() argument
1169 if((crop.right - crop.left) > qdutils::MAX_DISPLAY_DIM) { in setBwc()
1178 int src_w = crop.right - crop.left; in setBwc()
1179 int src_h = crop.bottom - crop.top; in setBwc()