Searched refs:transform (Results 1 - 25 of 151) sorted by relevance

1234567

/frameworks/base/libs/hwui/
H A DClipArea.cpp34 static void handlePoint(Rect& transformedBounds, const Matrix4& transform, float x, float y) { argument
38 transform.mapPoint(v.x, v.y);
42 Rect transformAndCalculateBounds(const Rect& r, const Matrix4& transform) { argument
46 handlePoint(transformedBounds, transform, r.left, r.top);
47 handlePoint(transformedBounds, transform, r.right, r.top);
48 handlePoint(transformedBounds, transform, r.left, r.bottom);
49 handlePoint(transformedBounds, transform, r.right, r.bottom);
61 const Matrix4& transform)
63 , mTransform(transform) {
114 void RectangleList::set(const Rect& bounds, const Matrix4& transform) { argument
60 TransformedRectangle(const Rect& bounds, const Matrix4& transform) argument
119 intersectWith(const Rect& bounds, const Matrix4& transform) argument
157 pathFromTransformedRectangle(const Rect& bounds, const Matrix4& transform) argument
215 clipRectWithTransform(float left, float top, float right, float bottom, const mat4* transform, SkRegion::Op op) argument
221 clipRectWithTransform(const Rect& r, const mat4* transform, SkRegion::Op op) argument
241 clipPathWithTransform(const SkPath& path, const mat4* transform, SkRegion::Op op) argument
263 rectangleModeClipRectWithTransform(const Rect& r, const mat4* transform, SkRegion::Op op) argument
289 rectangleModeClipRectWithTransform(float left, float top, float right, float bottom, const mat4* transform, SkRegion::Op op) argument
310 rectangleListModeClipRectWithTransform(const Rect& r, const mat4* transform, SkRegion::Op op) argument
320 rectangleListModeClipRectWithTransform(float left, float top, float right, float bottom, const mat4* transform, SkRegion::Op op) argument
344 regionModeClipRectWithTransform(const Rect& r, const mat4* transform, SkRegion::Op op) argument
354 regionModeClipRectWithTransform(float left, float top, float right, float bottom, const mat4* transform, SkRegion::Op op) argument
[all...]
H A DClipArea.h28 Rect transformAndCalculateBounds(const Rect& r, const Matrix4& transform);
33 TransformedRectangle(const Rect& bounds, const Matrix4& transform);
67 void set(const Rect& bounds, const Matrix4& transform);
68 bool intersectWith(const Rect& bounds, const Matrix4& transform);
95 const mat4* transform, SkRegion::Op op = SkRegion::kIntersect_Op);
96 bool clipRectWithTransform(const Rect& r, const mat4* transform,
99 bool clipPathWithTransform(const SkPath& path, const mat4* transform,
128 bool rectangleModeClipRectWithTransform(const Rect& r, const mat4* transform, SkRegion::Op op);
130 float bottom, const mat4* transform, SkRegion::Op op);
134 float right, float bottom, const mat4* transform, SkRegio
[all...]
H A DSnapshot.cpp41 transform = &mTransformRoot;
63 mTransformRoot.load(*s->transform);
64 transform = &mTransformRoot;
66 transform = s->transform;
95 return mClipArea->clipRectWithTransform(left, top, right, bottom, transform, op);
100 return mClipArea->clipPathWithTransform(path, transform, op);
109 return transform->isPerspective();
114 inverse.loadInverse(*transform);
135 // before resetting, map current light pos with inverse of current transform
[all...]
H A DPathTessellator.h53 * Populates scaleX and scaleY with the 'tessellation scale' of the transform - the effective X
60 static void extractTessellationScales(const Matrix4& transform, float* scaleX, float* scaleY);
69 * @param transform The transform the path is to be drawn with, used to drive stretch-aware path
74 const mat4& transform, VertexBuffer& vertexBuffer);
83 * @param transform The transform the points will be drawn with, used to drive stretch-aware path
88 const mat4& transform, VertexBuffer& vertexBuffer);
97 * @param transform The transform th
[all...]
H A DDamageAccumulator.h40 // Push a transform node onto the stack. This should be called prior
42 // will be affected by the transform when popTransform() is called.
43 void pushTransform(const RenderNode* transform);
44 void pushTransform(const Matrix4* transform);
46 // Pops a transform node from the stack, propagating the dirty rect
H A DCanvasState.cpp117 mSnapshot->transform->copyTo(*matrix);
121 mSnapshot->transform->translate(dx, dy, dz);
125 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f);
129 mSnapshot->transform->scale(sx, sy, 1.0f);
133 mSnapshot->transform->skew(sx, sy);
137 mSnapshot->transform->load(matrix);
141 mSnapshot->transform->load(matrix);
145 mat4 transform(matrix);
146 mSnapshot->transform->multiply(transform);
[all...]
H A DTessellationCache.h72 Description(Type type, const Matrix4& transform, const SkPaint& paint);
124 void precacheRoundRect(const Matrix4& transform, const SkPaint& paint, argument
126 getRoundRectBuffer(transform, paint, width, height, rx, ry);
128 const VertexBuffer* getRoundRect(const Matrix4& transform, const SkPaint& paint,
149 Buffer* getRectBuffer(const Matrix4& transform, const SkPaint& paint,
151 Buffer* getRoundRectBuffer(const Matrix4& transform, const SkPaint& paint,
H A DDamageAccumulator.cpp40 // When this frame is pop'd, this rect is mapped through the above transform
70 LOG_ALWAYS_FATAL("Tried to compute transform with an invalid type: %d", currentFrame->type);
90 void DamageAccumulator::pushTransform(const RenderNode* transform) { argument
93 mHead->renderNode = transform;
96 void DamageAccumulator::pushTransform(const Matrix4* transform) { argument
99 mHead->matrix4 = transform;
134 const SkMatrix* transform = props.getTransformMatrix(); local
136 if (transform && !transform->isIdentity()) {
137 transform
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3OutputStreamInterface.h33 * Set the transform on the output stream; one of the
36 virtual status_t setTransform(int transform) = 0;
H A DCamera3OutputStream.h62 * Set the transform on the output stream; one of the
65 status_t setTransform(int transform);
93 virtual status_t setTransformLocked(int transform);
/frameworks/native/services/surfaceflinger/tests/transform/
H A DAndroid.mk13 LOCAL_MODULE:= test-transform
/frameworks/av/camera/
H A DCameraUtils.cpp30 /*out*/int32_t* transform) {
33 if (transform == NULL) {
34 ALOGW("%s: null transform", __FUNCTION__);
38 *transform = 0;
52 int32_t& flags = *transform;
119 ALOGV("%s: final transform = 0x%x", __FUNCTION__, flags);
29 getRotationTransform(const CameraMetadata& staticInfo, int32_t* transform) argument
/frameworks/av/include/camera/
H A DCameraUtils.h34 * Calculate the ANativeWindow transform from the static camera
41 /*out*/int32_t* transform);
/frameworks/base/include/private/hwui/
H A DDrawGlInfo.h41 // Input: current transform matrix, in OpenGL format
42 float transform[16]; member in struct:android::uirenderer::DrawGlInfo
/frameworks/native/services/surfaceflinger/
H A DTransform.h62 // query the transform
72 // modify the transform
78 // transform data
80 vec2 transform(int x, int y) const;
81 Region transform(const Region& reg) const;
82 Rect transform(const Rect& bounds) const;
100 vec2 transform(const vec2& v) const;
101 vec3 transform(const vec3& v) const;
H A DLayer.cpp114 mCurrentState.transform.set(0, 0);
362 // a viewport clipping and a window transform. we should use floating point to fix this.
369 activeCrop = s.transform.transform(activeCrop);
371 activeCrop = s.transform.inverse().transform(activeCrop);
373 // This needs to be here as transform.transform(Rect) computes the
376 // transform.inverse().transform(transfor
688 uint32_t transform = hw->getOrientationTransform(); local
[all...]
/frameworks/base/cmds/bmgr/
H A DAndroid.mk14 $(transform-prebuilt-to-target)
/frameworks/base/cmds/ime/
H A DAndroid.mk14 $(transform-prebuilt-to-target)
/frameworks/base/cmds/input/
H A DAndroid.mk13 $(transform-prebuilt-to-target)
/frameworks/base/cmds/pm/
H A DAndroid.mk14 $(transform-prebuilt-to-target)
/frameworks/base/cmds/svc/
H A DAndroid.mk14 $(transform-prebuilt-to-target)
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraDeviceInfo.java153 * The transform matrix that should be applied to the
177 * The transform matrix that should be applied to the
188 Matrix transform = new Matrix();
189 transform.setRectToRect(surfaceDimensions, desiredBounds, Matrix.ScaleToFit.FILL);
190 return transform;
/frameworks/webview/chromium/plat_support/
H A Ddraw_gl_functor.cpp69 COMPILE_ASSERT(NELEM(aw_info.transform) == NELEM(gl_info->transform),
71 for (int i = 0; i < NELEM(aw_info.transform); ++i) {
72 aw_info.transform[i] = gl_info->transform[i];
/frameworks/av/media/libstagefright/
H A DSurfaceUtils.cpp42 int transform = 0; local
45 case 1: transform = HAL_TRANSFORM_ROT_90; break;
46 case 2: transform = HAL_TRANSFORM_ROT_180; break;
47 case 3: transform = HAL_TRANSFORM_ROT_270; break;
48 default: transform = 0; break;
52 err = native_window_set_buffers_transform(nativeWindow, transform);
/frameworks/base/libs/hwui/unit_tests/
H A DClipAreaTests.cpp95 Matrix4 transform; local
96 transform.loadIdentity();
100 area.clipPathWithTransform(path, &transform, SkRegion::kIntersect_Op);
120 Matrix4 transform; local
121 transform.loadIdentity();
123 area.clipRectWithTransform(expected, &transform, SkRegion::kReplace_Op);

Completed in 821 milliseconds

1234567