/external/skia/src/core/ |
SkPictureFlat.cpp | 30 SkFlatMatrix* SkFlatMatrix::Flatten(SkChunkAlloc* heap, const SkMatrix& matrix, int index) { 33 memcpy(&result->fMatrixData, &matrix, sizeof(SkMatrix)); 39 const SkMatrix* matrix = (const SkMatrix*) fMatrixData; local 43 "matrix: "); 44 SkScalar scaleX = matrix->getScaleX(); 50 SkScalar scaleY = matrix->getScaleY(); 54 SkScalar skewX = matrix->getSkewX(); 58 SkScalar skewY = matrix->getSkewY(); 62 SkScalar translateX = matrix->getTranslateX(); 66 SkScalar translateY = matrix->getTranslateY() [all...] |
SkShader.cpp | 28 SkMatrix matrix; local 29 buffer.read(&matrix, sizeof(matrix)); 30 setLocalMatrix(matrix); 92 const SkMatrix& matrix) { 93 const SkMatrix* m = &matrix; 99 total.setConcat(matrix, *fLocalMatrix); 235 const SkMatrix& matrix) { 236 if (!this->INHERITED::setContext(device, paint, matrix)) {
|
SkDraw.cpp | 73 SkAutoBlitterChoose(const SkBitmap& device, const SkMatrix& matrix, 75 fBlitter = SkBlitter::Choose(device, matrix, paint, 328 bool init(SkCanvas::PointMode, const SkPaint&, const SkMatrix* matrix, 410 // square procs (strokeWidth > 0 but matrix is square-scale (sx == sy) 448 const SkMatrix* matrix, const SkRegion* clip) { 461 matrix->rectStaysRect() && SkCanvas::kPoints_PointMode == mode) { 462 SkScalar sx = matrix->get(SkMatrix::kMScaleX); 463 SkScalar sy = matrix->get(SkMatrix::kMScaleY); 524 const SkPaint& paint, const SkMatrix& matrix) { 531 matrix.mapRect(&bounds) 578 const SkMatrix* matrix = fMatrix; local 679 const SkMatrix& matrix = *fMatrix; local 813 const SkMatrix* matrix = fMatrix; local 1043 SkMatrix matrix; local 1162 SkMatrix matrix; local 1213 SkMatrix matrix; local 2466 SkMatrix matrix; local [all...] |
SkShape.cpp | 35 void SkShape::drawMatrix(SkCanvas* canvas, const SkMatrix& matrix) { 37 canvas->concat(matrix);
|
SkPictureRecord.cpp | 109 bool SkPictureRecord::concat(const SkMatrix& matrix) { 112 addMatrix(matrix); 114 return this->INHERITED::concat(matrix); 117 void SkPictureRecord::setMatrix(const SkMatrix& matrix) { 120 addMatrix(matrix); 122 this->INHERITED::setMatrix(matrix); 219 void SkPictureRecord::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& matrix, 224 addMatrix(matrix); 349 const SkPath& path, const SkMatrix* matrix, 355 addMatrixPtr(matrix); 709 const SkFlatMatrix* matrix = fMatrices[index]; local [all...] |
SkPicture.cpp | 91 static void validateMatrix(const SkMatrix* matrix) { 92 SkScalar scaleX = matrix->getScaleX(); 93 SkScalar scaleY = matrix->getScaleY(); 94 SkScalar skewX = matrix->getSkewX(); 95 SkScalar skewY = matrix->getSkewY(); 96 SkScalar perspX = matrix->getPerspX(); 97 SkScalar perspY = matrix->getPerspY();
|
/external/webkit/WebCore/platform/graphics/cairo/ |
PatternCairo.cpp | 45 cairo_matrix_t matrix = m_patternSpaceTransformation; local 46 cairo_matrix_invert(&matrix); 47 cairo_pattern_set_matrix(pattern, &matrix);
|
/external/webkit/WebCore/svg/graphics/ |
SVGPaintServerGradient.cpp | 181 AffineTransform matrix; local 184 matrix.translate(maskBoundingBox.x(), maskBoundingBox.y()); 185 matrix.scaleNonUniform(maskBoundingBox.width(), maskBoundingBox.height()); 187 matrix.multiply(gradientServer->gradientTransform()); 188 return matrix; 225 AffineTransform matrix; local 243 matrix.translate(bbox.x(), bbox.y()); 244 matrix.scaleNonUniform(bbox.width(), bbox.height()); 246 matrix.multiply(gradientTransform()); 247 m_gradient->setGradientSpaceTransform(matrix); 261 AffineTransform matrix = clipToTextMask(context, m_imageBuffer, object, this); local [all...] |
/external/skia/src/gl/ |
SkGLDevice_SWLayer.cpp | 50 const SkMatrix& matrix, const SkPaint& paint) { 51 draw.drawBitmap(bitmap, matrix, paint); 72 const SkMatrix* matrix, 74 draw.drawTextOnPath((const char*)text, len, path, matrix, paint);
|
SkGLDevice_SWLayer.h | 23 const SkMatrix& matrix, const SkPaint& paint); 32 const SkPath& path, const SkMatrix* matrix,
|
/external/srec/srec/include/ |
pre_desc.h | 153 imeldata **matrix; /* linear transformation matrix */ member in struct:__anon7447 155 covdata **imelda; /* linear transformation matrix, PMC or RN */ 156 imeldata **invmat; /* inverse transformation matrix */ 158 covdata **inverse; /* inverse linear transformation matrix, PMC or RN */ 183 imeldata **pmc_fixmat; /* ENC matrix */ 184 imeldata **pmc_fixinv; /* inverse ENC matrix */ 185 covdata **pmc_matrix; /* ENC matrix in float */ 186 covdata **pmc_inverse; /* inverse ENC matrix in float */
|
/external/webkit/WebCore/bindings/v8/custom/ |
V8WebKitCSSMatrixConstructor.cpp | 61 RefPtr<WebKitCSSMatrix> matrix = WebKitCSSMatrix::create(cssValue, ec); local 65 // Transform the holder into a wrapper object for the matrix. 66 V8DOMWrapper::setDOMWrapper(args.Holder(), V8ClassIndex::ToInt(V8ClassIndex::WEBKITCSSMATRIX), matrix.get()); 67 return toV8(matrix.release(), args.Holder());
|
V8SVGMatrixCustom.cpp | 63 AffineTransform matrix = *V8SVGPODTypeWrapper<AffineTransform>::toNative(args.Holder()); local 65 AffineTransform result = matrix.inverse(); 67 if (!matrix.isInvertible()) 82 AffineTransform matrix = *V8SVGPODTypeWrapper<AffineTransform>::toNative(args.Holder()); local 86 AffineTransform result = matrix;
|
/packages/apps/Camera/src/com/android/camera/ui/ |
GLRootView.java | 24 import android.graphics.Matrix; 299 Matrix matrix = mTransformation.getMatrix(); local 300 matrix.reset(); 301 matrix.preTranslate(0, getHeight()); 302 matrix.preScale(1, -1); 321 float matrix[] = mMatrixValues; local 322 mTransformation.getMatrix().getValues(matrix); 323 drawRect(x, y, width, height, matrix); 340 int x, int y, int width, int height, float matrix[]) { 374 Matrix matrix = mTransformation.getMatrix(); local 684 Matrix matrix = mTransformation.getMatrix(); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CanvasTest.java | 25 import android.graphics.Matrix; 276 final Matrix m1 = new Matrix(); 281 final Matrix m2 = new Matrix(); 286 final Matrix m3 = mCanvas.getMatrix(); 295 final Matrix m4 = mCanvas.getMatrix(); 316 // test save current matrix only 317 Matrix m1 = new Matrix(); [all...] |
PathMeasureTest.java | 24 import android.graphics.Matrix; 165 args = {float.class, android.graphics.Matrix.class, int.class} 168 Matrix matrix = new Matrix(); local 169 assertFalse(mPathMeasure.getMatrix(1f, matrix, PathMeasure.POSITION_MATRIX_FLAG)); 170 matrix.setScale(1f, 2f); 173 assertTrue(mPathMeasure.getMatrix(0f, matrix, PathMeasure.TANGENT_MATRIX_FLAG));
|
/frameworks/base/core/java/android/view/ |
Surface.java | 156 // A matrix to scale the matrix set by application. This is set to null for 158 private Matrix mCompatibleMatrix; 228 * <li> Scales the matrix in setMatrix by the application scale, except if the matrix looks 230 * uses getMatrix to keep the original matrix, set matrix of its own, then set the original 231 * matrix back. There is no perfect solution that works for all cases, and there are a lot of 236 // A temp matrix to remember what an application obtained via {@link getMatrix} 237 private Matrix mOrigMatrix = null [all...] |
/frameworks/base/media/jni/ |
android_media_MediaMetadataRetriever.cpp | 154 jobject matrix = NULL; local 156 LOGD("Create a rotation matrix: %d degrees", videoFrame->mRotationAngle); 157 jclass matrixClazz = env->FindClass("android/graphics/Matrix"); 160 "Can't find android/graphics/Matrix"); 167 "Can't find Matrix constructor"); 170 matrix = 172 if (matrix == NULL) { 173 LOGE("Could not create a Matrix object"); 177 LOGV("Rotate the matrix: %d degrees", videoFrame->mRotationAngle); 182 "Can't find Matrix setRotate method") [all...] |
/external/skia/src/effects/ |
Sk1DPathEffect.cpp | 102 SkMatrix matrix; local 106 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0); 107 matrix.preTranslate(-sx, 0); 108 matrix.postTranslate(pos.fX, pos.fY); 109 matrix.mapPoints(&dst[i], &pt, 1); 192 SkMatrix matrix; local 193 meas.getMatrix(distance, &matrix); 194 dst->addPath(fPath, matrix);
|
SkLayerRasterizer.cpp | 55 static bool compute_bounds(const SkDeque& layers, const SkPath& path, const SkMatrix& matrix, 77 // apply the matrix and offset 79 SkMatrix m = matrix; 85 if (!SkDraw::DrawToMask(devPath, clipBounds, paint.getMaskFilter(), &matrix, 94 bool SkLayerRasterizer::onRasterize(const SkPath& path, const SkMatrix& matrix, 103 if (!compute_bounds(fLayers, path, matrix, clipBounds, &mask->fBounds)) 129 translatedMatrix = matrix; 139 // we set the matrixproc in the loop, as the matrix changes each time (potentially)
|
/external/skia/src/utils/ |
SkNWayCanvas.cpp | 109 bool SkNWayCanvas::concat(const SkMatrix& matrix) { 112 iter->concat(matrix); 114 return this->INHERITED::concat(matrix); 117 void SkNWayCanvas::setMatrix(const SkMatrix& matrix) { 120 iter->setMatrix(matrix); 122 this->INHERITED::setMatrix(matrix); 236 const SkPath& path, const SkMatrix* matrix, 240 iter->drawTextOnPath(text, byteLength, path, matrix, paint);
|
/external/webkit/WebCore/svg/ |
SVGTransform.cpp | 48 SVGTransform::SVGTransform(const AffineTransform& matrix) 51 , m_matrix(matrix) 69 AffineTransform SVGTransform::matrix() const function in class:SVGTransform 84 void SVGTransform::setMatrix(AffineTransform matrix) 89 m_matrix = matrix;
|
/frameworks/base/graphics/java/android/graphics/ |
PathMeasure.java | 98 * corresponding matrix. Returns false if there is no path, or a zero-length 99 * path was specified, in which case matrix is unchanged. 102 * @param matrix Allocated by the caller, this is set to the transformation 104 * @param flags Specified what aspects should be returned in the matrix. 106 public boolean getMatrix(float distance, Matrix matrix, int flags) { 107 return native_getMatrix(native_instance, distance, matrix.native_instance, flags);
|
/frameworks/base/opengl/java/android/opengl/ |
Visibility.java | 29 * @param ws the world space to screen space transform matrix, as an OpenGL 30 * column matrix. 54 * Given an OpenGL ES ModelView-Projection matrix (which implicitly 58 * A ModelView-Projection matrix can be computed by multiplying the 59 * a Projection matrix by the a ModelView matrix (in that order.). There 80 * @param mvp a float array containing the mode-view-projection matrix
|
/packages/wallpapers/Basic/res/raw/ |
galaxy.rs | 149 float matrix[16]; 150 matrixLoadTranslate(matrix, 0.0f, 0.0f, 10.0f - 6.0f * absoluteAngle / 50.0f); 152 matrixScale(matrix, 6.6f, 6.0f, 1.0f); 154 matrixScale(matrix, 12.6f, 12.0f, 1.0f); 156 matrixRotate(matrix, absoluteAngle, 1.0f, 0.0f, 0.0f); 157 matrixRotate(matrix, a, 0.0f, 0.4f, 0.1f); 158 vpLoadModelMatrix(matrix);
|