/frameworks/native/services/surfaceflinger/Effects/ |
D | Daltonizer.cpp | 40 const mat4& Daltonizer::operator()() { in operator ()() 50 mColorTransform = mat4(); in update() 55 const mat4 rgb2xyz( 0.4124, 0.2126, 0.0193, 0, in update() 61 const mat4 xyz2lms( 0.7328,-0.7036, 0.0030, 0, in update() 67 const mat4 rgb2lms(xyz2lms*rgb2xyz); in update() 70 const mat4 lms2rgb(inverse(rgb2lms)); in update() 99 const mat4 lms2lmsp( 0.0000, 0.0000, 0.0000, 0, in update() 105 const mat4 lms2lmsd( 1.0000, -p0.x / p0.y, 0.0000, 0, in update() 111 const mat4 lms2lmst( 1.0000, 0.0000, -p1.x / p1.z, 0, in update() 123 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/shaders/tests/ |
D | shaders_test.cpp | 54 mat4 colorTransform = mat4::scale(vec4(.9, .9, .9, 1.)); in TEST_F() 59 EXPECT_THAT(uniforms, Contains(UniformEq("in_rgbToXyz", buildUniformValue<mat4>(mat4())))); in TEST_F() 61 Contains(UniformEq("in_xyzToRgb", buildUniformValue<mat4>(colorTransform)))); in TEST_F() 73 shaders::buildLinearEffectUniforms(effect, mat4(), 1.f, 1.f, 1.f, nullptr, in TEST_F() 78 buildUniformValue<mat4>(mat4(inputColorSpace.getRGBtoXYZ()))))); in TEST_F() 81 buildUniformValue<mat4>(mat4(outputColorSpace.getXYZtoRGB()))))); in TEST_F() 91 shaders::buildLinearEffectUniforms(effect, mat4(), 1.f, 1.f, 1.f, nullptr, in TEST_F() 94 EXPECT_THAT(uniforms, Contains(UniformEq("in_rgbToXyz", buildUniformValue<mat4>(mat4())))); in TEST_F() 95 EXPECT_THAT(uniforms, Contains(UniformEq("in_xyzToRgb", buildUniformValue<mat4>(mat4())))); in TEST_F()
|
/frameworks/native/libs/renderengine/include/renderengine/private/ |
D | Description.h | 79 mat4 projectionMatrix; 82 mat4 colorMatrix; 84 mat4 displayColorMatrix; 85 mat4 inputTransformMatrix; 86 mat4 outputTransformMatrix;
|
/frameworks/native/libs/renderengine/gl/ |
D | GLESRenderEngine.h | 178 void setColorTransform(const mat4& colorTransform); 179 void setDisplayColorTransform(const mat4& colorTransform); 206 mat4 mSrgbToXyz; 207 mat4 mDisplayP3ToXyz; 208 mat4 mBt2020ToXyz; 209 mat4 mXyzToSrgb; 210 mat4 mXyzToDisplayP3; 211 mat4 mXyzToBt2020; 212 mat4 mSrgbToDisplayP3; 213 mat4 mSrgbToBt2020; [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/av/media/libstagefright/renderfright/gl/ |
D | GLESRenderEngine.h | 167 void setColorTransform(const mat4& colorTransform); 194 mat4 mSrgbToXyz; 195 mat4 mDisplayP3ToXyz; 196 mat4 mBt2020ToXyz; 197 mat4 mXyzToSrgb; 198 mat4 mXyzToDisplayP3; 199 mat4 mXyzToBt2020; 200 mat4 mSrgbToDisplayP3; 201 mat4 mSrgbToBt2020; 202 mat4 mDisplayP3ToSrgb; [all …]
|
/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/av/media/libstagefright/renderfright/include/renderengine/private/ |
D | Description.h | 78 mat4 projectionMatrix; 81 mat4 colorMatrix; 82 mat4 inputTransformMatrix; 83 mat4 outputTransformMatrix;
|
/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() 56 const mat4 identity; in hasDisplayColorMatrix()
|
D | Texture.cpp | 40 mTextureMatrix = mat4(matrix); in setMatrix() 60 const mat4& Texture::getMatrix() const { in getMatrix()
|
/frameworks/native/libs/shaders/ |
D | shaders.cpp | 468 const LinearEffect& linearEffect, const mat4& colorTransform, float maxDisplayLuminance, in buildLinearEffectUniforms() 478 uniforms.push_back({.name = "in_rgbToXyz", .value = buildUniformValue<mat4>(mat4())}); in buildLinearEffectUniforms() 480 {.name = "in_xyzToRgb", .value = buildUniformValue<mat4>(colorTransform)}); in buildLinearEffectUniforms() 485 .value = buildUniformValue<mat4>(mat4(inputColorSpace.getRGBtoXYZ()))}); in buildLinearEffectUniforms() 487 .value = buildUniformValue<mat4>( in buildLinearEffectUniforms() 488 colorTransform * mat4(outputColorSpace.getXYZtoRGB()))}); in buildLinearEffectUniforms()
|
/frameworks/av/media/libstagefright/renderfright/ |
D | Description.cpp | 41 const mat4 identity; in hasInputTransformMatrix() 46 const mat4 identity; in hasOutputTransformMatrix() 51 const mat4 identity; in hasColorMatrix()
|
/frameworks/av/media/libstagefright/renderfright/include/renderengine/ |
D | LayerSettings.h | 53 mat4 textureTransform = mat4(); 75 mat4 positionTransform = mat4(); 146 mat4 colorTransform = mat4();
|
D | Texture.h | 44 const mat4& getMatrix() const; 55 mat4 mTextureMatrix;
|
/frameworks/native/libs/renderengine/include/renderengine/ |
D | LayerSettings.h | 57 mat4 textureTransform = mat4(); 79 mat4 positionTransform = mat4(); 153 mat4 colorTransform = mat4(); 170 mat4 blurRegionTransform = mat4();
|
D | PrintMatrix.h | 26 inline void PrintMatrix(const mat4& matrix, ::std::ostream* os) { in PrintMatrix() 27 if (matrix == mat4()) { in PrintMatrix()
|
D | Texture.h | 44 const mat4& getMatrix() const; 55 mat4 mTextureMatrix;
|
/frameworks/native/services/surfaceflinger/ |
D | BufferLayer.cpp | 131 static constexpr mat4 inverseOrientation(uint32_t transform) { in inverseOrientation() 132 const mat4 flipH(-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1); in inverseOrientation() 133 const mat4 flipV(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1); in inverseOrientation() 134 const mat4 rot90(0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1); in inverseOrientation() 135 mat4 tr; in inverseOrientation() 219 mat4 tr = inverseOrientation(transform); in prepareClientComposition() 237 const mat4 texTransform(mat4(static_cast<const float*>(textureMatrix)) * tr); in prepareClientComposition() 259 mat4 tr = mat4::translate(vec4(.5, .5, 0, 1)) * mat4::scale(vec4(1, -1, 1, 1)) * in prepareClientComposition() 260 mat4::translate(vec4(-.5, -.5, 0, 1)) * in prepareClientComposition() 261 mat4::translate(vec4(translateX, translateY, 0, 1)) * in prepareClientComposition() [all …]
|
D | LayerProtoHelper.cpp | 209 void LayerProtoHelper::writeToProto(const mat4 matrix, ColorTransformProto* colorTransformProto) { in writeToProto() 210 for (int i = 0; i < mat4::ROW_SIZE; i++) { in writeToProto() 211 for (int j = 0; j < mat4::COL_SIZE; j++) { in writeToProto() 217 void LayerProtoHelper::readFromProto(const ColorTransformProto& colorTransformProto, mat4& matrix) { in readFromProto() 218 for (int i = 0; i < mat4::ROW_SIZE; i++) { in readFromProto() 219 for (int j = 0; j < mat4::COL_SIZE; j++) { in readFromProto() 220 matrix[i][j] = colorTransformProto.val(i * mat4::COL_SIZE + j); in readFromProto()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaDisplayListTests.cpp | 246 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST() local 247 mat4.translate(translate.fWidth, translate.fHeight); in RENDERTHREAD_SKIA_PIPELINE_TEST() 248 damageAccumulator.pushTransform(&mat4); in RENDERTHREAD_SKIA_PIPELINE_TEST() 287 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST() local 288 mat4.loadRotate(180); in RENDERTHREAD_SKIA_PIPELINE_TEST() 289 damageAccumulator.pushTransform(&mat4); in RENDERTHREAD_SKIA_PIPELINE_TEST() 308 Matrix4 mat4; in RENDERTHREAD_SKIA_PIPELINE_TEST() local 309 mat4.translate(50, 50); in RENDERTHREAD_SKIA_PIPELINE_TEST() 310 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/pipeline/skia/ |
D | GLFunctorDrawable.cpp | 84 SkM44 mat4(canvas->getLocalToDevice()); in onDraw() local 110 mat4.preTranslate(-clipBounds.fLeft, -clipBounds.fTop); in onDraw() 118 mat4.preTranslate(-surfaceBounds.fLeft, -surfaceBounds.fTop); in onDraw() 129 mat4.getColMajor(&info.transform[0]); in onDraw()
|
/frameworks/av/media/libstagefright/ |
D | FrameCaptureLayer.cpp | 122 mat4 tr = mat4::translate(vec4(.5, .5, 0, 1)) * mat4::scale(vec4(1, -1, 1, 1)) * in getLayerSettings() 123 mat4::translate(vec4(-.5, -.5, 0, 1)); in getLayerSettings() 126 mat4(static_cast<const float*>(textureMatrix)) * tr; in getLayerSettings()
|