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