Home
last modified time | relevance | path

Searched refs:matrix (Results 1 – 25 of 157) sorted by relevance

1234567

/external/webkit/WebKit/android/plugins/
DANPMatrixInterface.cpp48 static void anp_deleteMatrix(ANPMatrix* matrix) { in anp_deleteMatrix() argument
49 delete matrix; in anp_deleteMatrix()
52 static ANPMatrixFlag anp_getFlags(const ANPMatrix* matrix) { in anp_getFlags() argument
53 return matrix->getType(); in anp_getFlags()
60 static void anp_get3x3(const ANPMatrix* matrix, float dst[9]) { in anp_get3x3() argument
62 dst[i] = SkScalarToFloat(matrix->get(i)); in anp_get3x3()
66 static void anp_set3x3(ANPMatrix* matrix, const float src[9]) { in anp_set3x3() argument
68 matrix->set(i, SkFloatToScalar(src[i])); in anp_set3x3()
72 static void anp_setIdentity(ANPMatrix* matrix) { in anp_setIdentity() argument
73 matrix->reset(); in anp_setIdentity()
[all …]
/external/srec/srec/clib/
Dmatx_ops.c41 covdata **matrix; in create_matrix() local
43 matrix = (covdata **) CALLOC(dimen, sizeof(covdata *), in create_matrix()
46 matrix[ii] = (covdata *) CALLOC(dimen, sizeof(covdata), in create_matrix()
48 return (matrix); in create_matrix()
51 void delete_matrix(covdata **matrix, int dimen) in delete_matrix() argument
55 ASSERT(matrix); in delete_matrix()
57 FREE((char *)matrix[ii]); in delete_matrix()
58 FREE((char *)matrix); in delete_matrix()
62 void diagonal_elements(covdata *vector, covdata **matrix, int dim) in diagonal_elements() argument
67 ASSERT(matrix); in diagonal_elements()
[all …]
Dimeld_rd.c46 void delete_matrix(covdata **matrix, int dimen);
47 void delete_fixed_matrix(imeldata **matrix, int dimen);
48 int scale_matrix_for_fixedpoint(imeldata **fixmat, covdata **matrix,int dimen);
58 prep->matrix = create_fixed_matrix(matdim); in create_linear_transform()
71 ASSERT(prep->matrix); in free_linear_transform()
72 delete_fixed_matrix(prep->matrix, prep->dim); in free_linear_transform()
75 prep->matrix = NULL; in free_linear_transform()
154 prep->imel_shift = scale_matrix_for_fixedpoint(prep->matrix, in init_newton_transform()
Dmatx_ops.h22 static PINLINE void matrix_fixed_multiply_frame(imeldata *outvec, imeldata **matrix,
25 static PINLINE void matrix_fixed_multiply_frame(imeldata *outvec, imeldata **matrix, in matrix_fixed_multiply_frame() argument
31 ASSERT(matrix); in matrix_fixed_multiply_frame()
39 sum += matrix[ii][jj] * vector[jj]; in matrix_fixed_multiply_frame()
/external/webkit/WebCore/svg/
DSVGTransformList.cpp43 SVGTransform SVGTransformList::createSVGTransformFromMatrix(const TransformationMatrix& matrix) con… in createSVGTransformFromMatrix()
45 return SVGSVGElement::createSVGTransformFromMatrix(matrix); in createSVGTransformFromMatrix()
60 TransformationMatrix matrix; in concatenate() local
63 matrix = getItem(i, ec).matrix() * matrix; in concatenate()
65 return SVGTransform(matrix); in concatenate()
90 TransformationMatrix matrix = transform.matrix(); in valueAsString() local
91 …tring::format("matrix(%f %f %f %f %f %f)", matrix.a(), matrix.b(), matrix.c(), matrix.d(), matrix.… in valueAsString()
DSVGTransform.cpp50 SVGTransform::SVGTransform(const TransformationMatrix& matrix) in SVGTransform() argument
53 , m_matrix(matrix) in SVGTransform()
71 TransformationMatrix SVGTransform::matrix() const in matrix() function in SVGTransform
86 void SVGTransform::setMatrix(TransformationMatrix matrix) //const TransformationMatrix& matrix) in setMatrix() argument
91 m_matrix = matrix; in setMatrix()
/external/skia/test/
DSkSetPoly3To3_D.cpp16 static void computeOuterProduct(SkMatrix* matrix, in computeOuterProduct() argument
32 matrix->reset(); in computeOuterProduct()
33 matrix->setScaleX(SkDScalar_toScalar(tmp[0])); in computeOuterProduct()
34 matrix->setSkewY( SkDScalar_toScalar(tmp[1])); in computeOuterProduct()
35 matrix->setSkewX( SkDScalar_toScalar(tmp[2])); in computeOuterProduct()
36 matrix->setScaleY(SkDScalar_toScalar(tmp[3])); in computeOuterProduct()
44 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { in SkSetPoly3To3() argument
58 matrix->setConcat(dstOP, srcOP); in SkSetPoly3To3()
59 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
60 matrix->getScaleX(), matrix->getSkewX())); in SkSetPoly3To3()
[all …]
DSkSetPoly3To3.cpp23 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { in SkSetPoly3To3() argument
49 matrix->reset(); in SkSetPoly3To3()
50 matrix->setScaleX(dot(srcOP0, srcOP1, dstOP[0], dstOP[2])); in SkSetPoly3To3()
51 matrix->setSkewX( dot(srcOP2, srcOP3, dstOP[0], dstOP[2])); in SkSetPoly3To3()
52 matrix->setSkewY (dot(srcOP0, srcOP1, dstOP[1], dstOP[3])); in SkSetPoly3To3()
53 matrix->setScaleY(dot(srcOP2, srcOP3, dstOP[1], dstOP[3])); in SkSetPoly3To3()
54 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
55 matrix->getScaleX(), matrix->getSkewX())); in SkSetPoly3To3()
56 matrix->setTranslateY(dstAve.fY - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
57 matrix->getSkewY(), matrix->getScaleY())); in SkSetPoly3To3()
DSkSetPoly3To3_A.cpp55 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { in SkSetPoly3To3() argument
79 matrix->reset(); in SkSetPoly3To3()
80 matrix->setScaleX(div(M[0], det)); in SkSetPoly3To3()
81 matrix->setSkewX( div(M[1], det)); in SkSetPoly3To3()
82 matrix->setSkewY (div(M[2], det)); in SkSetPoly3To3()
83 matrix->setScaleY(div(M[3], det)); in SkSetPoly3To3()
84 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
85 matrix->getScaleX(), matrix->getSkewX())); in SkSetPoly3To3()
86 matrix->setTranslateY(dstAve.fY - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
87 matrix->getSkewY(), matrix->getScaleY())); in SkSetPoly3To3()
/external/skia/experimental/
DSkSetPoly3To3_D.cpp16 static void computeOuterProduct(SkMatrix* matrix, in computeOuterProduct() argument
32 matrix->reset(); in computeOuterProduct()
33 matrix->setScaleX(SkDScalar_toScalar(tmp[0])); in computeOuterProduct()
34 matrix->setSkewY( SkDScalar_toScalar(tmp[1])); in computeOuterProduct()
35 matrix->setSkewX( SkDScalar_toScalar(tmp[2])); in computeOuterProduct()
36 matrix->setScaleY(SkDScalar_toScalar(tmp[3])); in computeOuterProduct()
44 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { in SkSetPoly3To3() argument
58 matrix->setConcat(dstOP, srcOP); in SkSetPoly3To3()
59 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
60 matrix->getScaleX(), matrix->getSkewX())); in SkSetPoly3To3()
[all …]
DSkSetPoly3To3.cpp23 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { in SkSetPoly3To3() argument
49 matrix->reset(); in SkSetPoly3To3()
50 matrix->setScaleX(dot(srcOP0, srcOP1, dstOP[0], dstOP[2])); in SkSetPoly3To3()
51 matrix->setSkewX( dot(srcOP2, srcOP3, dstOP[0], dstOP[2])); in SkSetPoly3To3()
52 matrix->setSkewY (dot(srcOP0, srcOP1, dstOP[1], dstOP[3])); in SkSetPoly3To3()
53 matrix->setScaleY(dot(srcOP2, srcOP3, dstOP[1], dstOP[3])); in SkSetPoly3To3()
54 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
55 matrix->getScaleX(), matrix->getSkewX())); in SkSetPoly3To3()
56 matrix->setTranslateY(dstAve.fY - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
57 matrix->getSkewY(), matrix->getScaleY())); in SkSetPoly3To3()
DSkSetPoly3To3_A.cpp55 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { in SkSetPoly3To3() argument
79 matrix->reset(); in SkSetPoly3To3()
80 matrix->setScaleX(div(M[0], det)); in SkSetPoly3To3()
81 matrix->setSkewX( div(M[1], det)); in SkSetPoly3To3()
82 matrix->setSkewY (div(M[2], det)); in SkSetPoly3To3()
83 matrix->setScaleY(div(M[3], det)); in SkSetPoly3To3()
84 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
85 matrix->getScaleX(), matrix->getSkewX())); in SkSetPoly3To3()
86 matrix->setTranslateY(dstAve.fY - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3()
87 matrix->getSkewY(), matrix->getScaleY())); in SkSetPoly3To3()
/external/skia/src/views/
DSkImageView.cpp65 bool SkImageView::getImageMatrix(SkMatrix* matrix) const in getImageMatrix()
70 if (matrix) in getImageMatrix()
71 *matrix = *fMatrix; in getImageMatrix()
76 if (matrix) in getImageMatrix()
77 matrix->reset(); in getImageMatrix()
82 void SkImageView::setImageMatrix(const SkMatrix* matrix) in setImageMatrix() argument
86 if (matrix && !matrix->isIdentity()) in setImageMatrix()
90 *fMatrix = *matrix; in setImageMatrix()
145 SkMatrix matrix; in onDraw() local
148 (void)this->getImageMatrix(&matrix); in onDraw()
[all …]
/external/skia/src/animator/
DSkDrawExtraPathEffect.cpp62 SkDrawMatrix* matrix; member in SkDrawShape2DPathEffect
129 SkDrawMatrix* matrix; in next() local
131 matrix = (SkDrawMatrix*) fDraw->addMatrix; in next()
137 matrix = (SkDrawMatrix*) apply->getScope(); in next()
238 const SkMatrix& matrix) : Sk2DPathEffect(matrix), fDraw(draw), fMaker(maker) { in SkShape2DPathEffect() argument
266 if (fDraw->matrix) { in next()
267 SkDrawMatrix* matrix; in next() local
268 if (fDraw->matrix->getType() == SkType_Matrix) in next()
269 matrix = (SkDrawMatrix*) fDraw->matrix; in next()
271 SkApply* apply = (SkApply*) fDraw->matrix; in next()
[all …]
/external/webkit/WebCore/platform/graphics/win/
DGraphicsContextCairoWin.cpp111 const cairo_matrix_t* matrix = reinterpret_cast<const cairo_matrix_t*>(&transform); in concatCTM() local
114 xform.eM11 = matrix->xx; in concatCTM()
115 xform.eM12 = matrix->xy; in concatCTM()
116 xform.eM21 = matrix->yx; in concatCTM()
117 xform.eM22 = matrix->yy; in concatCTM()
118 xform.eDx = matrix->x0; in concatCTM()
119 xform.eDy = matrix->y0; in concatCTM()
/external/webkit/WebCore/platform/graphics/mac/
DFontMac.mm72 CGAffineTransform matrix = CGAffineTransformIdentity;
74 memcpy(&matrix, [drawFont matrix], sizeof(matrix));
75 matrix.b = -matrix.b;
76 matrix.d = -matrix.d;
78matrix = CGAffineTransformConcat(matrix, CGAffineTransformMake(1, 0, -tanf(SYNTHETIC_OBLIQUE_ANGLE…
79 CGContextSetTextMatrix(cgContext, matrix);
/external/skia/src/core/
DSkRasterizer.cpp26 bool SkRasterizer::rasterize(const SkPath& fillPath, const SkMatrix& matrix, in rasterize() argument
40 if (!filter->filterMask(&dstM, srcM, matrix, &margin)) in rasterize()
48 return this->onRasterize(fillPath, matrix, clipBounds, mask, mode); in rasterize()
53 bool SkRasterizer::onRasterize(const SkPath& fillPath, const SkMatrix& matrix, in onRasterize() argument
59 fillPath.transform(matrix, &devPath); in onRasterize()
DSkDraw.cpp73 SkAutoBlitterChoose(const SkBitmap& device, const SkMatrix& matrix, in SkAutoBlitterChoose() argument
75 fBlitter = SkBlitter::Choose(device, matrix, paint, in SkAutoBlitterChoose()
328 bool init(SkCanvas::PointMode, const SkPaint&, const SkMatrix* matrix,
447 const SkMatrix* matrix, const SkRegion* clip) { in init() argument
459 if (matrix->rectStaysRect() && SkCanvas::kPoints_PointMode == mode) { in init()
460 SkScalar sx = matrix->get(SkMatrix::kMScaleX); in init()
461 SkScalar sy = matrix->get(SkMatrix::kMScaleY); in init()
522 const SkPaint& paint, const SkMatrix& matrix) { in bounder_points() argument
529 matrix.mapRect(&bounds); in bounder_points()
576 const SkMatrix* matrix = fMatrix; in drawPoints() local
[all …]
DSkShader.cpp28 SkMatrix matrix; in SkShader() local
29 buffer.read(&matrix, sizeof(matrix)); in SkShader()
30 setLocalMatrix(matrix); in SkShader()
92 const SkMatrix& matrix) { in setContext() argument
93 const SkMatrix* m = &matrix; in setContext()
99 total.setConcat(matrix, *fLocalMatrix); in setContext()
239 const SkMatrix& matrix) { in setContext() argument
240 if (!this->INHERITED::setContext(device, paint, matrix)) { in setContext()
DSkPicture.cpp91 static void validateMatrix(const SkMatrix* matrix) { in validateMatrix() argument
92 SkScalar scaleX = matrix->getScaleX(); in validateMatrix()
93 SkScalar scaleY = matrix->getScaleY(); in validateMatrix()
94 SkScalar skewX = matrix->getSkewX(); in validateMatrix()
95 SkScalar skewY = matrix->getSkewY(); in validateMatrix()
96 SkScalar perspX = matrix->getPerspX(); in validateMatrix()
97 SkScalar perspY = matrix->getPerspY(); in validateMatrix()
DSkPictureRecord.cpp102 bool SkPictureRecord::concat(const SkMatrix& matrix) { in concat() argument
105 addMatrix(matrix); in concat()
107 return this->INHERITED::concat(matrix); in concat()
110 void SkPictureRecord::setMatrix(const SkMatrix& matrix) { in setMatrix() argument
113 addMatrix(matrix); in setMatrix()
115 this->INHERITED::setMatrix(matrix); in setMatrix()
214 void SkPictureRecord::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& matrix, in drawBitmapMatrix() argument
219 addMatrix(matrix); in drawBitmapMatrix()
344 const SkPath& path, const SkMatrix* matrix, in drawTextOnPath() argument
350 addMatrixPtr(matrix); in drawTextOnPath()
[all …]
/external/skia/src/effects/
DSk1DPathEffect.cpp102 SkMatrix matrix; in morphpoints() local
106 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0); in morphpoints()
107 matrix.preTranslate(-sx, 0); in morphpoints()
108 matrix.postTranslate(pos.fX, pos.fY); in morphpoints()
109 matrix.mapPoints(&dst[i], &pt, 1); in morphpoints()
192 SkMatrix matrix; in next() local
193 meas.getMatrix(distance, &matrix); in next()
194 dst->addPath(fPath, matrix); in next()
/external/freetype/src/base/
Dftcalc.c721 FT_Matrix_Invert( FT_Matrix* matrix ) in FT_Matrix_Invert() argument
726 if ( !matrix ) in FT_Matrix_Invert()
730 delta = FT_MulFix( matrix->xx, matrix->yy ) - in FT_Matrix_Invert()
731 FT_MulFix( matrix->xy, matrix->yx ); in FT_Matrix_Invert()
736 matrix->xy = - FT_DivFix( matrix->xy, delta ); in FT_Matrix_Invert()
737 matrix->yx = - FT_DivFix( matrix->yx, delta ); in FT_Matrix_Invert()
739 xx = matrix->xx; in FT_Matrix_Invert()
740 yy = matrix->yy; in FT_Matrix_Invert()
742 matrix->xx = FT_DivFix( yy, delta ); in FT_Matrix_Invert()
743 matrix->yy = FT_DivFix( xx, delta ); in FT_Matrix_Invert()
[all …]
/external/freetype/src/cff/
Dcffobjs.c550 FT_Matrix* matrix = &dict->font_matrix; in cff_face_init() local
553 FT_Fixed temp = FT_ABS( matrix->yy ); in cff_face_init()
560 matrix->xx = FT_DivFix( matrix->xx, temp ); in cff_face_init()
561 matrix->yx = FT_DivFix( matrix->yx, temp ); in cff_face_init()
562 matrix->xy = FT_DivFix( matrix->xy, temp ); in cff_face_init()
563 matrix->yy = FT_DivFix( matrix->yy, temp ); in cff_face_init()
577 FT_Matrix* matrix; in cff_face_init() local
612 matrix = &sub->font_matrix; in cff_face_init()
615 temp = FT_ABS( matrix->yy ); in cff_face_init()
631 matrix->xx = FT_DivFix( matrix->xx, temp ); in cff_face_init()
[all …]
/external/skia/src/utils/
DSkCamera.cpp333 void SkCamera3D::patchToMatrix(const SkPatch3D& quilt, SkMatrix* matrix) const in patchToMatrix()
354 matrix->set(SkMatrix::kMScaleX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix()
355 matrix->set(SkMatrix::kMSkewY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix()
356 matrix->set(SkMatrix::kMPersp0, SkScalarDotDiv(3, patchPtr, 1, mapPtr+6, 1, dot)); in patchToMatrix()
359 matrix->set(SkMatrix::kMSkewX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix()
360 matrix->set(SkMatrix::kMScaleY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix()
361 matrix->set(SkMatrix::kMPersp1, SkScalarDotDiv(3, patchPtr, 1, mapPtr+6, 1, dot)); in patchToMatrix()
364 matrix->set(SkMatrix::kMTransX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix()
365 matrix->set(SkMatrix::kMTransY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix()
366 matrix->set(SkMatrix::kMPersp2, SK_UnitScalar1); in patchToMatrix()
[all …]

1234567