Home
last modified time | relevance | path

Searched refs:mat4 (Results 1 – 25 of 43) 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/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()
195 mat4 GLES20RenderEngine::setupColorTransform(const mat4& colorTransform) {
196 mat4 oldTransform = mState.getColorMatrix();
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;
83 virtual mat4 setupColorTransform(const mat4& colorTransform);
DTexture.h31 mat4 mTextureMatrix;
49 const mat4& getMatrix() const;
DRenderEngine.h107 virtual mat4 setupColorTransform(const mat4& /* colorTransform */) { in setupColorTransform() argument
108 return mat4(); in setupColorTransform()
DTexture.cpp43 mTextureMatrix = mat4(matrix); in setMatrix()
63 const mat4& Texture::getMatrix() const { in getMatrix()
/frameworks/base/libs/hwui/
DProgram.cpp153 void Program::set(const mat4& projectionMatrix, const mat4& modelViewMatrix, in set()
154 const mat4& transformMatrix, bool offset) { in set()
159 mat4 p(projectionMatrix); in set()
172 mat4 t(transformMatrix); in set()
DClipArea.h147 void clipRectWithTransform(const Rect& r, const mat4* transform,
150 void clipPathWithTransform(const SkPath& path, const mat4* transform,
184 void rectangleModeClipRectWithTransform(const Rect& r, const mat4* transform, SkRegion::Op op);
188 const mat4* transform, SkRegion::Op op);
193 void regionModeClipRectWithTransform(const Rect& r, const mat4* transform,
DPathTessellator.h78 const mat4& transform, VertexBuffer& vertexBuffer);
92 const mat4& transform, VertexBuffer& vertexBuffer);
106 const mat4& transform, VertexBuffer& vertexBuffer);
DLayer.h278 inline mat4& getTexTransform() { in getTexTransform()
282 inline mat4& getTransform() { in getTransform()
417 mat4 texTransform;
422 mat4 transform;
427 mat4 cachedInvTransformInWindow;
DProgram.h352 void set(const mat4& projectionMatrix, const mat4& modelViewMatrix,
353 const mat4& transformMatrix, bool offset = false);
421 mat4 mProjection;
DMatrix.cpp510 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX]; in decomposeScale()
511 sx = copysignf(sqrtf(len), data[mat4::kScaleX]); in decomposeScale()
512 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY]; in decomposeScale()
513 sy = copysignf(sqrtf(len), data[mat4::kScaleY]); in decomposeScale()
DSnapshot.h273 mat4* transform;
332 mat4 mOrthoMatrix;
335 mat4 mTransformRoot;
DClipArea.cpp218 void ClipArea::clipRectWithTransform(const Rect& r, const mat4* transform, in clipRectWithTransform()
245 void ClipArea::clipPathWithTransform(const SkPath& path, const mat4* transform, in clipPathWithTransform()
273 const mat4* transform, SkRegion::Op op) { in rectangleModeClipRectWithTransform()
310 const mat4* transform, SkRegion::Op op) { in rectangleListModeClipRectWithTransform()
336 const mat4* transform, SkRegion::Op op) { in regionModeClipRectWithTransform()
DRenderNode.cpp656 void RenderNode::applyViewPropertyTransforms(mat4& matrix, bool true3dTransform) const { in pushLayerUpdate()
661 mat4 stat(*properties().getStaticMatrix()); in pushLayerUpdate()
664 mat4 anim(*properties().getAnimationMatrix()); in pushLayerUpdate()
677 mat4 true3dMat; in pushLayerUpdate()
711 childOp->renderNode->computeOrderingImpl(childOp, &mProjectedNodes, &mat4::identity()); in pushLayerUpdate()
718 const mat4* transformFromProjectionSurface) { in pushLayerUpdate()
745 const mat4* projectionTransform = nullptr; in pushLayerUpdate()
753 projectionTransform = &mat4::identity(); in pushLayerUpdate()
857 mat4 shadowMatrixXY(transformFromParent); in pushLayerUpdate()
861 mat4 shadowMatrixZ(transformFromParent); in pushLayerUpdate()
DSkiaShader.cpp72 static void computeScreenSpaceMatrix(mat4& screenSpace, const SkMatrix& unitMatrix, in computeScreenSpaceMatrix()
73 const SkMatrix& localMatrix, const mat4& modelViewMatrix) { in computeScreenSpaceMatrix()
74 mat4 shaderMatrix; in computeScreenSpaceMatrix()
306 mat4 transform; in tryStoreCompose()
DShadowTessellator.h78 const mat4& receiverTransform, const Vector3& lightCenter, int lightRadius,
DRenderNode.h212 void applyViewPropertyTransforms(mat4& matrix, bool true3dTransform = false) const;
276 const mat4* transformFromProjectionSurface);
DSnapshot.cpp111 mat4 inverse; in getLocalClip()
138 mat4 inverse; in resetTransform()
DDeferredDisplayList.h59 mat4 mMatrix;
/frameworks/base/core/res/res/raw/
Dcolor_fade_vert.vert1 uniform mat4 proj_matrix;
2 uniform mat4 tex_matrix;

12