Home | History | Annotate | Download | only in libhwcomposer

Lines Matching refs:destHeight

436 void getAspectRatioPosition(int destWidth, int destHeight, int srcWidth,
440 if (srcWidth * destHeight > destWidth * srcHeight) {
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;