Lines Matching refs:left
373 int x = rect.left, y = rect.top;
374 int w = rect.right - rect.left;
427 rect.left = x;
429 rect.right = w + rect.left;
457 rect.left = x;
459 rect.right = srcWidth + rect.left;
485 Dim inPos(inRect.left, inRect.top, inRect.right - inRect.left,
487 Dim outPos(outRect.left, outRect.top, outRect.right - outRect.left,
500 xPos = rect.left;
502 width = float(rect.right - rect.left);
532 xPos = r.left;
570 outRect.left = outPos.x;
620 displayFrame.left = 0;
642 displayFrame.left = int(wRatio*(float)displayFrame.left);
702 dst_w = displayFrame.right - displayFrame.left;
704 src_w = sourceCrop.right - sourceCrop.left;
717 dst_w = displayFrame.right - displayFrame.left;
719 src_w = sourceCrop.right - sourceCrop.left;
759 // Calculate the left dst
760 dst_width_l = dstL.right - dstL.left;
762 src_width_l = cropL.right - cropL.left;
765 // check if there is any scaling on the left
770 dst_width_r = dstR.right - dstR.left;
772 src_width_r = cropR.right - cropR.left;
808 if(dst.left < 0 || dst.top < 0 ||
825 layer->sourceCropf.left = (float)crop.left;
849 __FUNCTION__, dpy, outRect.left, outRect.top,
1047 int& crop_l = crop.left;
1051 int crop_w = crop.right - crop.left;
1054 int& dst_l = dst.left;
1058 int dst_w = abs(dst.right - dst.left);
1061 const int& sci_l = scissor.left;
1105 return ((rect1.left == rect2.left) && (rect1.top == rect2.top) &&
1111 return ((rect.bottom > rect.top) && (rect.right > rect.left)) ;
1121 res.left = rect.left + x_off;
1139 res.left = max(rect1.left, rect2.left);
1163 res.left = min(rect1.left, rect2.left);
1177 if((rect1.left == rect2.left) && (rect1.right == rect2.right)) {
1184 if((rect1.left == rect2.left) && (rect2.right <= rect1.right))
1185 res.left = rect2.right;
1186 else if((rect1.right == rect2.right)&& (rect2.left >= rect1.left))
1187 res.right = rect2.left;
1218 layer->sourceCropf.left =(float)bottomCrop.left;
1242 nwr.left = list->hwLayers[0].displayFrame.left;
1507 uint32_t crop_w = (crop.right - crop.left);
1510 ovutils::normalizeCrop((uint32_t&)crop.left, crop_w);
1515 crop.right = crop.left + crop_w;
1518 Dim rotCrop(crop.left, crop.top, crop_w, crop_h);
1536 int crop_w = crop.right - crop.left;
1538 Dim dcrop(crop.left, crop.top, crop_w, crop_h);
1541 int posW = pos.right - pos.left;
1543 Dim position(pos.left, pos.top, posW, posH);
1564 int dst_w = dst.right - dst.left;
1578 Dim pos(dst.left, dst.top, dst_w, dst_h);
1594 Dim srcCrop(crop.left, crop.top,
1595 crop.right - crop.left,
1602 crop.left = 0;
1610 crop.left = srcCrop.x;
1656 crop.right - crop.left,
1658 dst.right - dst.left,
1701 if(cropL.right - cropL.left) {
1703 //Always safe to even down left
1704 ovutils::even_floor(cropL.left);
1705 //If right is even, automatically width is even, since left is
1709 //Make sure there are no gaps between left and right splits if the layer
1711 if(cropR.right - cropR.left) {
1712 cropR.left = cropL.right;
1716 if(cropR.right - cropR.left) {
1718 //Always safe to even down left
1719 ovutils::even_floor(cropR.left);
1720 //If right is even, automatically width is even, since left is
1798 // Calculate Left rects
1799 if(dst.left < lSplit) {
1821 if((orient & OVERLAY_TRANSFORM_FLIP_H) && (dst.left < lSplit) &&
1824 new_cropR.left = tmp_cropL.left;
1825 new_cropR.right = new_cropR.left + (tmp_cropR.right - tmp_cropR.left);
1828 new_cropL.left = new_cropR.right;
1831 tmp_cropL.left = new_cropL.left;
1834 tmp_cropR.left = new_cropR.left;
1843 //configure left mixer
1851 ALOGE("%s: commit failed for left mixer config", __FUNCTION__);
1863 tmp_dstR.left = tmp_dstR.left - lSplit;
1924 int lSplit = dst.left + (dst.right - dst.left)/2;
1932 hwc_rect_t scissor = {dst.left, dst.top, lSplit, dst.bottom };
1950 new_cropR.left = tmp_cropL.left;
1951 new_cropR.right = new_cropR.left + (tmp_cropR.right - tmp_cropR.left);
1954 new_cropL.left = new_cropR.right;
1957 tmp_cropL.left = new_cropL.left;
1960 tmp_cropR.left = new_cropR.left;
1969 //configure left half
1977 ALOGE("%s: commit failed for left half config", __FUNCTION__);
2154 if((crop.right - crop.left) > qdutils::MAX_DISPLAY_DIM) {
2159 int src_w = crop.right - crop.left;
2161 int dst_w = dst.right - dst.left;
2241 if((t_roi.right - t_roi.left) < MIN_WIDTH) {
2242 if((t_roi.left + MIN_WIDTH) > boundary.right)
2243 t_roi.left = t_roi.right - MIN_WIDTH;
2245 t_roi.right = t_roi.left + MIN_WIDTH;
2256 /* Align left and width to meet panel restrictions */
2258 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN);
2261 int width = t_roi.right - t_roi.left;
2263 t_roi.right = t_roi.left + width;
2267 t_roi.left = t_roi.right - width;
2270 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN);