Lines Matching refs:reference
527 * Shrink the {@code shrinkTarget} rectangle to snugly fit inside of {@code reference};
529 * {@code reference}.
533 * @param reference the rectangle whose aspect ratio will be used as the new aspect ratio
537 * whose aspect ratio will match that of {@code reference}
539 private static Rect shrinkToSameAspectRatioCentered(Rect reference, Rect shrinkTarget) {
540 float aspectRatioReference = reference.width() * 1.0f / reference.height();
546 cropH = reference.height();
550 cropW = reference.width();
558 translateMatrix.setScale(cropW / reference.width(), cropH / reference.height(),