Lines Matching defs:scale

58 /*      [scale-x    skew-x      trans-x]   [X]   [X']
59 [skew-y scale-y trans-y] * [Y] = [Y']
130 // The skew components may be scale-inducing, unless we are dealing
132 // so we opt for being conservative by always setting the scale bit.
151 // Only test for scale explicitly if not affine, since affine sets the
152 // scale bit.
206 // if no skew, can just compare scale factors
217 // upper 2x2 is rotation/reflection + uniform scale if basis vectors
227 // identity, translate and/or scale
245 // upper 2x2 is scale + rotation/reflection if basis vectors are orthogonal
356 // Attempt to simplify our type when applying an inverse scale.
388 // scale matrices
710 SkScalar c, SkScalar d, double scale) {
711 return SkDoubleToScalar(scross(a, b, c, d) * scale);
719 double c, double d, double scale) {
720 return SkDoubleToScalar(dcross(a, b, c, d) * scale);
1144 Sk4f scale(sx, sy, sx, sy);
1146 sort_as_rect(Sk4f::Load(&src.fLeft) * scale + trans).store(&dst->fLeft);
1577 bool SkMatrix::decomposeScale(SkSize* scale, SkMatrix* remaining) const {
1589 if (scale) {
1590 scale->set(sx, sy);
1694 const float scale = 1 << subpixelBits;
1695 dst.fLeft *= scale;
1696 dst.fTop *= scale;
1697 dst.fRight *= scale;
1698 dst.fBottom *= scale;
1708 // where U is another orthogonal matrix and W is a scale matrix. These can be recombined
1709 // to give M = (Q*U)*W*U^T, i.e., the product of two orthogonal matrices and a scale matrix.
1715 SkPoint* scale,
1756 // Now we need to compute eigenvalues of S (our scale factors)
1792 if (scale) {
1793 scale->fX = SkDoubleToScalar(w1);
1794 scale->fY = SkDoubleToScalar(w2);
1858 // Then the differential scale factor between p = (u,v) and p' is |det J|,