/frameworks/native/services/surfaceflinger/Effects/ |
D | Daltonizer.cpp | 36 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 …]
|
D | Daltonizer.h | 42 const mat4& operator()(); 50 mat4 mColorTransform;
|
/frameworks/native/libs/renderengine/include/renderengine/ |
D | LayerSettings.h | 51 mat4 textureTransform = mat4(); 71 mat4 positionTransform = mat4(); 115 mat4 colorTransform = mat4();
|
D | DisplaySettings.h | 42 mat4 globalTransform = mat4(); 53 mat4 colorTransform = mat4();
|
D | Texture.h | 44 const mat4& getMatrix() const; 55 mat4 mTextureMatrix;
|
/frameworks/native/libs/renderengine/gl/ |
D | GLESRenderEngine.h | 122 void setColorTransform(const mat4& colorTransform) override; 193 mat4 mSrgbToXyz; 194 mat4 mDisplayP3ToXyz; 195 mat4 mBt2020ToXyz; 196 mat4 mXyzToSrgb; 197 mat4 mXyzToDisplayP3; 198 mat4 mXyzToBt2020; 199 mat4 mSrgbToDisplayP3; 200 mat4 mSrgbToBt2020; 201 mat4 mDisplayP3ToSrgb; [all …]
|
D | Program.cpp | 75 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/ |
D | mat_test.cpp | 37 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/ |
D | GLConsumerUtils.cpp | 31 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/ |
D | Description.h | 76 mat4 projectionMatrix; 79 mat4 colorMatrix; 80 mat4 inputTransformMatrix; 81 mat4 outputTransformMatrix;
|
/frameworks/native/services/surfaceflinger/ |
D | BufferLayer.cpp | 116 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/native/libs/renderengine/ |
D | Description.cpp | 41 const mat4 identity; in hasInputTransformMatrix() 46 const mat4 identity; in hasOutputTransformMatrix() 51 const mat4 identity; in hasColorMatrix()
|
D | Texture.cpp | 40 mTextureMatrix = mat4(matrix); in setMatrix() 60 const mat4& Texture::getMatrix() const { in getMatrix()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaDisplayListTests.cpp | 248 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/ |
D | color_fade_vert.vert | 1 uniform mat4 proj_matrix; 2 uniform mat4 tex_matrix;
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | matrix_helpers.h | 11 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/ |
D | SurfaceTexture.cpp | 36 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/ |
D | GLFunctorDrawable.cpp | 95 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()
|
D | ReorderBarrierDrawables.cpp | 171 mat4 hwuiMatrix(caster->getRecordedMatrix()); in drawShadow() 200 mat4 zMatrix; in drawShadow() 202 zParams = SkPoint3::Make(zMatrix[2], zMatrix[6], zMatrix[mat4::kTranslateZ]); in drawShadow()
|
D | VkFunctorDrawable.cpp | 65 SkMatrix44 mat4(mMatrix); in draw() local 75 mat4.asColMajorf(¶ms.transform[0]); in draw()
|
/frameworks/base/libs/hwui/ |
D | Matrix.cpp | 514 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/ |
D | RenderEngineTest.cpp | 169 void fillBufferCheckers(mat4 transform); 372 void RenderEngineTest::fillBufferCheckers(mat4 transform) { in fillBufferCheckers() 408 fillBufferCheckers<SourceVariant>(mat4()); in fillBufferCheckersRotate0() 424 mat4 matrix = mat4(0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 1); in fillBufferCheckersRotate90() 441 mat4 matrix = mat4(-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 2, 2, 0, 1); in fillBufferCheckersRotate180() 458 mat4 matrix = mat4(0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 1); in fillBufferCheckersRotate270() 485 layer.geometry.positionTransform = mat4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1); in fillBufferWithLayerTransform() 520 settings.colorTransform = mat4::scale(vec4(1, 0, 0, 1)); in fillBufferWithColorTransform() 522 layer.colorTransform = mat4(1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); in fillBufferWithColorTransform() 648 layer.source.buffer.textureTransform = mat4::scale(vec4(0.2, 0.2, 1, 1)); in fillRedBufferTextureTransform() [all …]
|
/frameworks/native/libs/renderengine/include/renderengine/mock/ |
D | RenderEngine.h | 66 MOCK_METHOD1(setColorTransform, void(const mat4&)); 67 MOCK_METHOD1(setSaturationMatrix, void(const mat4&));
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputTest.cpp | 170 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()
|
D | DisplayTest.cpp | 116 const mat4 identity; in TEST_F() 127 const mat4 nonIdentity = mat4() * 2; in TEST_F()
|