Lines Matching refs:left
136 ctx->mViewFrame[dpy].left = 0;
340 ctx->mViewFrame[HWC_DISPLAY_PRIMARY].left = 0;
549 int x = rect.left, y = rect.top;
550 int w = rect.right - rect.left;
603 rect.left = x;
605 rect.right = w + rect.left;
633 Dim inPos(inRect.left, inRect.top, inRect.right - inRect.left,
635 Dim outPos(outRect.left, outRect.top, outRect.right - outRect.left,
648 xPos = rect.left;
650 width = float(rect.right - rect.left);
680 xPos = r.left;
723 outRect.left = outPos.x;
773 displayFrame.left = 0;
800 displayFrame.left = int(wRatio*(float)displayFrame.left);
806 displayFrame.left, displayFrame.top,
864 dst_w = displayFrame.right - displayFrame.left;
866 src_w = sourceCrop.right - sourceCrop.left;
879 dst_w = displayFrame.right - displayFrame.left;
881 src_w = sourceCrop.right - sourceCrop.left;
924 // Calculate the left dst
925 dst_width_l = dstL.right - dstL.left;
927 src_width_l = cropL.right - cropL.left;
930 // check if there is any scaling on the left
935 dst_width_r = dstR.right - dstR.left;
937 src_width_r = cropR.right - cropR.left;
973 if(dst.left < 0 || dst.top < 0 ||
992 layer->sourceCropf.left = (float)crop.left;
1252 int& crop_l = crop.left;
1256 int crop_w = crop.right - crop.left;
1259 int& dst_l = dst.left;
1263 int dst_w = abs(dst.right - dst.left);
1266 const int& sci_l = scissor.left;
1310 return ((rect1.left == rect2.left) && (rect1.top == rect2.top) &&
1316 return ((rect.bottom > rect.top) && (rect.right > rect.left)) ;
1320 if(lhs.left == rhs.left && lhs.top == rhs.top &&
1339 res.left = rect.left + x_off;
1357 res.left = max(rect1.left, rect2.left);
1381 res.left = min(rect1.leftleft);
1395 if((rect1.left == rect2.left) && (rect1.right == rect2.right)) {
1402 if((rect1.left == rect2.left) && (rect2.right <= rect1.right))
1403 res.left = rect2.right;
1404 else if((rect1.right == rect2.right)&& (rect2.left >= rect1.left))
1405 res.right = rect2.left;
1438 layer->sourceCropf.left =(float)bottomCrop.left;
1462 nwr.left = list->hwLayers[0].displayFrame.left;
1764 Dim rotCrop(crop.left, crop.top, crop.right - crop.left,
1783 int crop_w = crop.right - crop.left;
1785 Dim dcrop(crop.left, crop.top, crop_w, crop_h);
1788 int posW = pos.right - pos.left;
1790 Dim position(pos.left, pos.top, posW, posH);
1811 int dst_w = dst.right - dst.left;
1825 Dim pos(dst.left, dst.top, dst_w, dst_h);
1841 Dim transformedCrop(crop.left, crop.top,
1842 crop.right - crop.left,
1857 crop.left = transformedCrop.x;
1886 downscale = Rotator::getDownscaleFactor(crop.right - crop.left,
1887 crop.bottom - crop.top, dst.right - dst.left,
1890 Dim adjCrop(crop.left, crop.top, crop.right - crop.left,
1892 Dim pos(dst.left, dst.top, dst.right - dst.left,
1905 // This does not work for zooming in top left corner of the image
1906 return(crop.top > 0 || crop.left > 0);
1911 crop.left, crop.top, crop.right, crop.bottom);
1913 Dim srcCrop(crop.left, crop.top,
1914 crop.right - crop.left,
1925 crop.left += offset;
1930 crop.left, crop.top, crop.right, crop.bottom);
1937 dst.left, dst.top, dst.right, dst.bottom);
1938 Dim srcCrop(crop.left, crop.top,
1939 crop.right - crop.left,
1952 dst.left = 0;
1959 extW, extH, dpy, dst.left, dst.top, dst.right, dst.bottom,
1960 crop.left, crop.top, crop.right, crop.bottom);
2042 if(cropL.right - cropL.left) {
2044 //Always safe to even down left
2045 ovutils::even_floor(cropL.left);
2046 //If right is even, automatically width is even, since left is
2050 //Make sure there are no gaps between left and right splits if the layer
2052 if(cropR.right - cropR.left) {
2053 cropR.left = cropL.right;
2057 if(cropR.right - cropR.left) {
2059 //Always safe to even down left
2060 ovutils::even_floor(cropR.left);
2061 //If right is even, automatically width is even, since left is
2142 // Calculate Left rects
2143 if(dst.left < lSplit) {
2165 if((orient & OVERLAY_TRANSFORM_FLIP_H) && (dst.left < lSplit) &&
2168 new_cropR.left = tmp_cropL.left;
2169 new_cropR.right = new_cropR.left + (tmp_cropR.right - tmp_cropR.left);
2172 new_cropL.left = new_cropR.right;
2175 tmp_cropL.left = new_cropL.left;
2178 tmp_cropR.left = new_cropR.left;
2187 //configure left mixer
2195 ALOGE("%s: commit failed for left mixer config", __FUNCTION__);
2207 tmp_dstR.left = tmp_dstR.left - lSplit;
2270 int lSplit = dst.left + (dst.right - dst.left)/2;
2278 hwc_rect_t scissor = {dst.left, dst.top, lSplit, dst.bottom };
2296 new_cropR.left = tmp_cropL.left;
2297 new_cropR.right = new_cropR.left + (tmp_cropR.right - tmp_cropR.left);
2300 new_cropL.left = new_cropR.right;
2303 tmp_cropL.left = new_cropL.left;
2306 tmp_cropR.left = new_cropR.left;
2315 //configure left half
2323 ALOGE("%s: commit failed for left half config", __FUNCTION__);
2502 if (rect1.left == rect2.left)
2553 int src_w = crop.right - crop.left;
2555 int dst_w = dst.right - dst.left;
2630 lFrame.right = (lFrame.right - lFrame.left)/2;
2631 rFrame.left = lFrame.right;
2636 lRoiWidth = lRoi.right - lRoi.left;
2637 rRoiWidth = rRoi.right - rRoi.left;
2641 roi.left = half_frame_width - rRoiWidth;
2655 * populated for the left side. */
2682 if((t_roi.right - t_roi.left) < MIN_WIDTH) {
2683 if(MIN_WIDTH == boundary.right - boundary.left) {
2684 t_roi.left = 0;
2687 if((t_roi.left + MIN_WIDTH) > boundary.right)
2688 t_roi.left = t_roi.right - MIN_WIDTH;
2690 t_roi.right = t_roi.left + MIN_WIDTH;
2707 /* Align left and width to meet panel restrictions */
2709 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN);
2712 int width = t_roi.right - t_roi.left;
2714 t_roi.right = t_roi.left + width;
2718 t_roi.left = t_roi.right - width;
2721 t_roi.left = t_roi.left - (t_roi.left % LEFT_ALIGN);