Home
last modified time | relevance | path

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

123

/frameworks/native/services/surfaceflinger/Effects/
DDaltonizer.cpp36 const mat4& Daltonizer::operator()() { in operator ()()
46 mColorTransform = mat4(); in update()
51 const mat4 rgb2xyz( 0.4124, 0.2126, 0.0193, 0, in update()
57 const mat4 xyz2lms( 0.7328,-0.7036, 0.0030, 0, in update()
63 const mat4 rgb2lms(xyz2lms*rgb2xyz); in update()
66 const mat4 lms2rgb(inverse(rgb2lms)); in update()
95 const mat4 lms2lmsp( 0.0000, 0.0000, 0.0000, 0, in update()
101 const mat4 lms2lmsd( 1.0000, -p0.x / p0.y, 0.0000, 0, in update()
107 const mat4 lms2lmst( 1.0000, 0.0000, -p1.x / p1.z, 0, in update()
119 const mat4 errp( 1.0, 0.7, 0.7, 0, in update()
[all …]
DDaltonizer.h42 const mat4& operator()();
50 mat4 mColorTransform;
/frameworks/native/libs/renderengine/include/renderengine/
DLayerSettings.h51 mat4 textureTransform = mat4();
71 mat4 positionTransform = mat4();
115 mat4 colorTransform = mat4();
DDisplaySettings.h42 mat4 globalTransform = mat4();
53 mat4 colorTransform = mat4();
DTexture.h44 const mat4& getMatrix() const;
55 mat4 mTextureMatrix;
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.h114 void setColorTransform(const mat4& colorTransform) override;
182 mat4 mSrgbToXyz;
183 mat4 mDisplayP3ToXyz;
184 mat4 mBt2020ToXyz;
185 mat4 mXyzToSrgb;
186 mat4 mXyzToDisplayP3;
187 mat4 mXyzToBt2020;
188 mat4 mSrgbToDisplayP3;
189 mat4 mSrgbToBt2020;
190 mat4 mDisplayP3ToSrgb;
[all …]
DProgram.cpp75 glUniformMatrix4fv(mProjectionMatrixLoc, 1, GL_FALSE, mat4().asArray()); in Program()
129 mat4 inputTransformMatrix = desc.inputTransformMatrix; in setUniforms()
135 mat4 outputTransformMatrix = desc.colorMatrix * desc.outputTransformMatrix; in setUniforms()
/frameworks/native/libs/math/tests/
Dmat_test.cpp37 mat4 m0; in TEST_F()
42 mat4 m0; in TEST_F()
43 mat4 m1(2); in TEST_F()
52 mat4 m0; in TEST_F()
70 mat4 m1(2); in TEST_F()
71 mat4 m2(vec4(2)); in TEST_F()
72 mat4 m3(m2); in TEST_F()
78 mat4 m4(vec4(1), vec4(2), vec4(3), vec4(4)); in TEST_F()
83 mat4 m0; in TEST_F()
84 mat4 m1(2); in TEST_F()
[all …]
/frameworks/native/libs/gui/
DGLConsumerUtils.cpp31 static const mat4 mtxFlipH( in computeTransformMatrix()
37 static const mat4 mtxFlipV( in computeTransformMatrix()
43 static const mat4 mtxRot90( in computeTransformMatrix()
50 mat4 xform; in computeTransformMatrix()
107 mat4 crop( in computeTransformMatrix()
/frameworks/native/libs/renderengine/include/renderengine/private/
DDescription.h76 mat4 projectionMatrix;
79 mat4 colorMatrix;
80 mat4 inputTransformMatrix;
81 mat4 outputTransformMatrix;
/frameworks/native/libs/renderengine/
DDescription.cpp41 const mat4 identity; in hasInputTransformMatrix()
46 const mat4 identity; in hasOutputTransformMatrix()
51 const mat4 identity; in hasColorMatrix()
DTexture.cpp40 mTextureMatrix = mat4(matrix); in setMatrix()
60 const mat4& Texture::getMatrix() const { in getMatrix()
/frameworks/native/services/surfaceflinger/
DBufferLayer.cpp116 static constexpr mat4 inverseOrientation(uint32_t transform) { in inverseOrientation()
117 const mat4 flipH(-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1); in inverseOrientation()
118 const mat4 flipV(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1); in inverseOrientation()
119 const mat4 rot90(0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1); in inverseOrientation()
120 mat4 tr; in inverseOrientation()
192 mat4 tr = inverseOrientation(transform); in prepareClientLayer()
210 const mat4 texTransform(mat4(static_cast<const float*>(textureMatrix)) * tr); in prepareClientLayer()
232 mat4 tr = mat4::translate(vec4(.5, .5, 0, 1)) * mat4::scale(vec4(1, -1, 1, 1)) * in prepareClientLayer()
233 mat4::translate(vec4(-.5, -.5, 0, 1)) * in prepareClientLayer()
234 mat4::translate(vec4(translateX, translateY, 0, 1)) * in prepareClientLayer()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DSkiaDisplayListTests.cpp248 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST() local
249 mat4.translate(translate.fWidth, translate.fHeight); in RENDERTHREAD_SKIA_PIPELINE_TEST()
250 damageAccumulator.pushTransform(&mat4); in RENDERTHREAD_SKIA_PIPELINE_TEST()
289 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST() local
290 mat4.loadRotate(180); in RENDERTHREAD_SKIA_PIPELINE_TEST()
291 damageAccumulator.pushTransform(&mat4); in RENDERTHREAD_SKIA_PIPELINE_TEST()
310 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST() local
311 mat4.translate(50, 50); in RENDERTHREAD_SKIA_PIPELINE_TEST()
312 damageAccumulator.pushTransform(&mat4); in RENDERTHREAD_SKIA_PIPELINE_TEST()
/frameworks/base/core/res/res/raw/
Dcolor_fade_vert.vert1 uniform mat4 proj_matrix;
2 uniform mat4 tex_matrix;
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dmatrix_helpers.h11 inline mat4 MakeMat4(float m00, float m01, float m02, float m03, float m10, in MakeMat4()
20 return mat4(matrix); in MakeMat4()
/frameworks/base/libs/hwui/surfacetexture/
DSurfaceTexture.cpp36 static const mat4 mtxIdentity;
291 static const mat4 mtxFlipH(-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1); in computeTransformMatrix()
292 static const mat4 mtxFlipV(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1); in computeTransformMatrix()
293 static const mat4 mtxRot90(0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1); in computeTransformMatrix()
295 mat4 xform; in computeTransformMatrix()
349 mat4 crop(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1); in computeTransformMatrix()
494 uirenderer::mat4(mCurrentTransformMatrix).copyTo(transformMatrix); in dequeueImage()
/frameworks/base/libs/hwui/pipeline/skia/
DGLFunctorDrawable.cpp95 SkMatrix44 mat4(canvas->getTotalMatrix()); in onDraw() local
121 mat4.preTranslate(-clipBounds.fLeft, -clipBounds.fTop, 0); in onDraw()
129 mat4.preTranslate(-surfaceBounds.fLeft, -surfaceBounds.fTop, 0); in onDraw()
140 mat4.asColMajorf(&info.transform[0]); in onDraw()
DReorderBarrierDrawables.cpp171 mat4 hwuiMatrix(caster->getRecordedMatrix()); in drawShadow()
200 mat4 zMatrix; in drawShadow()
202 zParams = SkPoint3::Make(zMatrix[2], zMatrix[6], zMatrix[mat4::kTranslateZ]); in drawShadow()
DVkFunctorDrawable.cpp65 SkMatrix44 mat4(mMatrix); in draw() local
75 mat4.asColMajorf(&params.transform[0]); in draw()
/frameworks/base/libs/hwui/
DMatrix.cpp514 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX]; in decomposeScale()
515 sx = copysignf(sqrtf(len), data[mat4::kScaleX]); in decomposeScale()
516 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY]; in decomposeScale()
517 sy = copysignf(sqrtf(len), data[mat4::kScaleY]); in decomposeScale()
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp167 void fillBufferCheckers(mat4 transform);
370 void RenderEngineTest::fillBufferCheckers(mat4 transform) { in fillBufferCheckers()
406 fillBufferCheckers<SourceVariant>(mat4()); in fillBufferCheckersRotate0()
422 mat4 matrix = mat4(0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 1); in fillBufferCheckersRotate90()
439 mat4 matrix = mat4(-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 2, 2, 0, 1); in fillBufferCheckersRotate180()
456 mat4 matrix = mat4(0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 1); in fillBufferCheckersRotate270()
483 layer.geometry.positionTransform = mat4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1); in fillBufferWithLayerTransform()
518 settings.colorTransform = mat4::scale(vec4(1, 0, 0, 1)); in fillBufferWithColorTransform()
520 layer.colorTransform = mat4(1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); in fillBufferWithColorTransform()
646 layer.source.buffer.textureTransform = mat4::scale(vec4(0.2, 0.2, 1, 1)); in fillRedBufferTextureTransform()
[all …]
/frameworks/native/libs/renderengine/include/renderengine/mock/
DRenderEngine.h66 MOCK_METHOD1(setColorTransform, void(const mat4&));
67 MOCK_METHOD1(setSaturationMatrix, void(const mat4&));
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp170 const mat4 identity; in TEST_F()
181 const mat4 nonIdentityHalf = mat4() * 0.5; in TEST_F()
192 const mat4 nonIdentityQuarter = mat4() * 0.25; in TEST_F()
DDisplayTest.cpp116 const mat4 identity; in TEST_F()
127 const mat4 nonIdentity = mat4() * 2; in TEST_F()

123