Home | History | Annotate | Download | only in libhwcomposer

Lines Matching full:srcheight

437                                 int srcHeight, hwc_rect_t& rect) {
440 if (srcWidth * destHeight > destWidth * srcHeight) {
441 srcHeight = destWidth * srcHeight / srcWidth;
443 } else if (srcWidth * destHeight < destWidth * srcHeight) {
444 srcWidth = destHeight * srcWidth / srcHeight;
445 srcHeight = destHeight;
448 srcHeight = destHeight;
451 if (srcHeight > destHeight) srcHeight = destHeight;
453 y = (destHeight - srcHeight) / 2;
455 __FUNCTION__, x, y, srcWidth , srcHeight);
460 rect.bottom = srcHeight + rect.top;
609 int srcHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres;
611 swap(srcWidth, srcHeight);
614 srcHeight, displayFrame);
836 int srcHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres;
840 // swap srcWidth and srcHeight, if the device orientation is 90 or 270.
842 swap(srcWidth, srcHeight);
846 srcHeight, outRect);