Home
last modified time | relevance | path

Searched refs:mat4 (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/native/libs/ui/tests/
Dmat_test.cpp33 mat4 m0; in TEST_F()
34 EXPECT_EQ(sizeof(mat4), sizeof(float)*16); in TEST_F()
38 mat4 m0; in TEST_F()
39 mat4 m1(2); in TEST_F()
48 mat4 m0; in TEST_F()
66 mat4 m1(2); in TEST_F()
67 mat4 m2(vec4(2)); in TEST_F()
68 mat4 m3(m2); in TEST_F()
74 mat4 m4(vec4(1), vec4(2), vec4(3), vec4(4)); in TEST_F()
78 mat4 m0; in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/Effects/
DDaltonizer.cpp43 const mat4& Daltonizer::operator()() { in operator ()()
53 const mat4 rgb2xyz( 0.4124, 0.2126, 0.0193, 0, in update()
59 const mat4 xyz2lms( 0.7328,-0.7036, 0.0030, 0, in update()
65 const mat4 rgb2lms(xyz2lms*rgb2xyz); in update()
68 const mat4 lms2rgb(inverse(rgb2lms)); in update()
97 const mat4 lms2lmsp( 0.0000, 0.0000, 0.0000, 0, in update()
103 const mat4 lms2lmsd( 1.0000, -p0.x / p0.y, 0.0000, 0, in update()
109 const mat4 lms2lmst( 1.0000, 0.0000, -p1.x / p1.z, 0, in update()
121 const mat4 errp( 1.0, 0.7, 0.7, 0, in update()
127 const mat4 errd( 1.0, 0.0, 0.0, 0, in update()
[all …]
DDaltonizer.h47 const mat4& operator()();
55 mat4 mColorTransform;
/frameworks/base/libs/hwui/
DClipArea.h95 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, SkRegion::Op op);
136 const mat4* transform, SkRegion::Op op);
141 bool regionModeClipRectWithTransform(const Rect& r, const mat4* transform,
144 float bottom, const mat4* transform, SkRegion::Op op);
DClipArea.cpp216 float bottom, const mat4* transform, SkRegion::Op op) { in clipRectWithTransform()
221 bool ClipArea::clipRectWithTransform(const Rect& r, const mat4* transform, in clipRectWithTransform()
241 bool ClipArea::clipPathWithTransform(const SkPath& path, const mat4* transform, in clipPathWithTransform()
264 const mat4* transform, SkRegion::Op op) { in rectangleModeClipRectWithTransform()
290 float right, float bottom, const mat4* transform, SkRegion::Op op) { in rectangleModeClipRectWithTransform()
311 const mat4* transform, SkRegion::Op op) { in rectangleListModeClipRectWithTransform()
321 float right, float bottom, const mat4* transform, SkRegion::Op op) { in rectangleListModeClipRectWithTransform()
345 const mat4* transform, SkRegion::Op op) { in regionModeClipRectWithTransform()
355 float right, float bottom, const mat4* transform, SkRegion::Op op) { in regionModeClipRectWithTransform()
DProgram.cpp156 void Program::set(const mat4& projectionMatrix, const mat4& modelViewMatrix, in set()
157 const mat4& transformMatrix, bool offset) { in set()
162 mat4 p(projectionMatrix); in set()
175 mat4 t(transformMatrix); in set()
DPathTessellator.h74 const mat4& transform, VertexBuffer& vertexBuffer);
88 const mat4& transform, VertexBuffer& vertexBuffer);
102 const mat4& transform, VertexBuffer& vertexBuffer);
DLayer.h275 inline mat4& getTexTransform() { in getTexTransform()
279 inline mat4& getTransform() { in getTransform()
414 mat4 texTransform;
419 mat4 transform;
424 mat4 cachedInvTransformInWindow;
DProgram.h361 void set(const mat4& projectionMatrix, const mat4& modelViewMatrix,
362 const mat4& transformMatrix, bool offset = false);
430 mat4 mProjection;
DMatrix.cpp508 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX]; in decomposeScale()
509 sx = copysignf(sqrtf(len), data[mat4::kScaleX]); in decomposeScale()
510 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY]; in decomposeScale()
511 sy = copysignf(sqrtf(len), data[mat4::kScaleY]); in decomposeScale()
DSnapshot.h268 mat4* transform;
323 mat4 mOrthoMatrix;
326 mat4 mTransformRoot;
DRenderNode.cpp471 void RenderNode::applyViewPropertyTransforms(mat4& matrix, bool true3dTransform) const { in applyViewPropertyTransforms()
476 mat4 stat(*properties().getStaticMatrix()); in applyViewPropertyTransforms()
479 mat4 anim(*properties().getAnimationMatrix()); in applyViewPropertyTransforms()
492 mat4 true3dMat; in applyViewPropertyTransforms()
527 properties().getOutline().getPath(), &mProjectedNodes, &mat4::identity()); in computeOrdering()
535 const mat4* transformFromProjectionSurface) { in computeOrderingImpl()
563 const mat4* projectionTransform = nullptr; in computeOrderingImpl()
572 projectionTransform = &mat4::identity(); in computeOrderingImpl()
674 mat4 shadowMatrixXY(transformFromParent); in issueDrawShadowOperation()
678 mat4 shadowMatrixZ(transformFromParent); in issueDrawShadowOperation()
DSkiaShader.cpp67 static void computeScreenSpaceMatrix(mat4& screenSpace, const SkMatrix& unitMatrix, in computeScreenSpaceMatrix()
68 const SkMatrix& localMatrix, const mat4& modelViewMatrix) { in computeScreenSpaceMatrix()
69 mat4 shaderMatrix; in computeScreenSpaceMatrix()
301 mat4 transform; in tryStoreCompose()
DRenderNode.h178 void applyViewPropertyTransforms(mat4& matrix, bool true3dTransform = false) const;
198 const mat4* transformFromProjectionSurface);
DShadowTessellator.h78 const mat4& receiverTransform, const Vector3& lightCenter, int lightRadius,
DSnapshot.cpp113 mat4 inverse; in getLocalClip()
137 mat4 inverse; in resetTransform()
/frameworks/native/services/surfaceflinger/RenderEngine/
DDescription.h52 mat4 mProjectionMatrix;
55 mat4 mColorMatrix;
67 void setProjectionMatrix(const mat4& mtx);
68 void setColorMatrix(const mat4& mtx);
69 const mat4& getColorMatrix() const;
DGLES20RenderEngine.cpp89 mat4 m; in setViewportAndProjection()
91 m = mat4::ortho(l, r, t, b, 0, 1); in setViewportAndProjection()
93 m = mat4::ortho(l, r, b, t, 0, 1); in setViewportAndProjection()
102 m = mat4::rotate(rot90InRadians, vec3(0,0,1)) * m; in setViewportAndProjection()
105 m = mat4::rotate(rot90InRadians * 2.0f, vec3(0,0,1)) * m; in setViewportAndProjection()
108 m = mat4::rotate(rot90InRadians * 3.0f, vec3(0,0,1)) * m; in setViewportAndProjection()
172 mat4 GLES20RenderEngine::setupColorTransform(const mat4& colorTransform) { in setupColorTransform()
173 mat4 oldTransform = mState.getColorMatrix(); in setupColorTransform()
DDescription.cpp80 void Description::setProjectionMatrix(const mat4& mtx) { in setProjectionMatrix()
85 void Description::setColorMatrix(const mat4& mtx) { in setColorMatrix()
86 const mat4 identity; in setColorMatrix()
91 const mat4& Description::getColorMatrix() const { in getColorMatrix()
DGLES20RenderEngine.h51 mat4 colorTransform;
75 virtual mat4 setupColorTransform(const mat4& colorTransform);
DTexture.h31 mat4 mTextureMatrix;
49 const mat4& getMatrix() const;
DRenderEngine.h102 virtual mat4 setupColorTransform(const mat4& /* colorTransform */) { in setupColorTransform() argument
103 return mat4(); in setupColorTransform()
DTexture.cpp43 mTextureMatrix = mat4(matrix); in setMatrix()
63 const mat4& Texture::getMatrix() const { in getMatrix()
/frameworks/base/core/res/res/raw/
Dcolor_fade_vert.vert1 uniform mat4 proj_matrix;
2 uniform mat4 tex_matrix;
/frameworks/base/tests/RenderScriptTests/MiscSamples/res/raw/
Dshaderarrayv.glsl13 mat4 model0 = UNI_model[0];

12