/external/autotest/client/site_tests/graphics_SanAngeles/src/ |
D | shader.c | 92 float invDet = 1.f / det; in computeNormalMatrix() local 93 normal[0*3+0] = invDet * (m[1*4+1] * m[2*4+2] - m[2*4+1] * m[1*4+2]); in computeNormalMatrix() 94 normal[1*3+0] = invDet * -(m[0*4+1] * m[2*4+2] - m[0*4+2] * m[2*4+1]); in computeNormalMatrix() 95 normal[2*3+0] = invDet * (m[0*4+1] * m[1*4+2] - m[0*4+2] * m[1*4+1]); in computeNormalMatrix() 96 normal[0*3+1] = invDet * -(m[1*4+0] * m[2*4+2] - m[1*4+2] * m[2*4+0]); in computeNormalMatrix() 97 normal[1*3+1] = invDet * (m[0*4+0] * m[2*4+2] - m[0*4+2] * m[2*4+0]); in computeNormalMatrix() 98 normal[2*3+1] = invDet * -(m[0*4+0] * m[1*4+2] - m[1*4+0] * m[0*4+2]); in computeNormalMatrix() 99 normal[0*3+2] = invDet * (m[1*4+0] * m[2*4+1] - m[2*4+0] * m[1*4+1]); in computeNormalMatrix() 100 normal[1*3+2] = invDet * -(m[0*4+0] * m[2*4+1] - m[2*4+0] * m[0*4+1]); in computeNormalMatrix() 101 normal[2*3+2] = invDet * (m[0*4+0] * m[1*4+1] - m[1*4+0] * m[0*4+1]); in computeNormalMatrix()
|
/external/swiftshader/src/OpenGL/compiler/ |
D | Intermediate.cpp | 1316 float invDet = 1.0f / determinant; in CreateInverse() local 1326 tempConstArray[0].setFConst( invDet * m11); in CreateInverse() 1327 tempConstArray[1].setFConst(-invDet * m01); in CreateInverse() 1328 tempConstArray[2].setFConst(-invDet * m10); in CreateInverse() 1329 tempConstArray[3].setFConst( invDet * m00); in CreateInverse() 1343 …tempConstArray[0].setFConst(invDet * determinant2(m11, m12, m21, m22)); // m00 = invDet * (m11 * … in CreateInverse() 1344 …tempConstArray[1].setFConst(invDet * determinant2(m12, m10, m22, m20)); // m01 = -invDet * (m10 * … in CreateInverse() 1345 …tempConstArray[2].setFConst(invDet * determinant2(m10, m11, m20, m21)); // m02 = invDet * (m10 * … in CreateInverse() 1346 …tempConstArray[3].setFConst(invDet * determinant2(m21, m22, m01, m02)); // m10 = -invDet * (m01 * … in CreateInverse() 1347 …tempConstArray[4].setFConst(invDet * determinant2(m00, m02, m20, m22)); // m11 = invDet * (m00 * … in CreateInverse() [all …]
|
D | OutputASM.cpp | 1238 Temporary invDet(this); in visitUnary() local 1239 emitDeterminant(&invDet, arg, size); in visitUnary() 1241 Instruction *div = emit(sw::Shader::OPCODE_DIV, &invDet, &one, &invDet); in visitUnary() 1247 emit(sw::Shader::OPCODE_MUL, result, i, result, i, &invDet); in visitUnary()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowMatrix.java | 536 final float invDet = inverseDeterminant(); in invert() local 537 if (invDet == 0) { in invert() 543 dst[0] = cross_scale(src[4], src[8], src[5], src[7], invDet); in invert() 544 dst[1] = cross_scale(src[2], src[7], src[1], src[8], invDet); in invert() 545 dst[2] = cross_scale(src[1], src[5], src[2], src[4], invDet); in invert() 547 dst[3] = cross_scale(src[5], src[6], src[3], src[8], invDet); in invert() 548 dst[4] = cross_scale(src[0], src[8], src[2], src[6], invDet); in invert() 549 dst[5] = cross_scale(src[2], src[3], src[0], src[5], invDet); in invert() 551 dst[6] = cross_scale(src[3], src[7], src[4], src[6], invDet); in invert() 552 dst[7] = cross_scale(src[1], src[6], src[0], src[7], invDet); in invert() [all …]
|
/external/skia/src/core/ |
D | SkMatrix.cpp | 811 void SkMatrix::ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp) { in ComputeInv() argument 816 … dst[kMScaleX] = scross_dscale(src[kMScaleY], src[kMPersp2], src[kMTransY], src[kMPersp1], invDet); in ComputeInv() 817 … dst[kMSkewX] = scross_dscale(src[kMTransX], src[kMPersp1], src[kMSkewX], src[kMPersp2], invDet); in ComputeInv() 818 … dst[kMTransX] = scross_dscale(src[kMSkewX], src[kMTransY], src[kMTransX], src[kMScaleY], invDet); in ComputeInv() 820 … dst[kMSkewY] = scross_dscale(src[kMTransY], src[kMPersp0], src[kMSkewY], src[kMPersp2], invDet); in ComputeInv() 821 … dst[kMScaleY] = scross_dscale(src[kMScaleX], src[kMPersp2], src[kMTransX], src[kMPersp0], invDet); in ComputeInv() 822 … dst[kMTransY] = scross_dscale(src[kMTransX], src[kMSkewY], src[kMScaleX], src[kMTransY], invDet); in ComputeInv() 824 … dst[kMPersp0] = scross_dscale(src[kMSkewY], src[kMPersp1], src[kMScaleY], src[kMPersp0], invDet); in ComputeInv() 825 … dst[kMPersp1] = scross_dscale(src[kMSkewX], src[kMPersp0], src[kMScaleX], src[kMPersp1], invDet); in ComputeInv() 826 … dst[kMPersp2] = scross_dscale(src[kMScaleX], src[kMScaleY], src[kMSkewX], src[kMSkewY], invDet); in ComputeInv() [all …]
|
/external/skqp/src/core/ |
D | SkMatrix.cpp | 799 void SkMatrix::ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp) { in ComputeInv() argument 804 … dst[kMScaleX] = scross_dscale(src[kMScaleY], src[kMPersp2], src[kMTransY], src[kMPersp1], invDet); in ComputeInv() 805 … dst[kMSkewX] = scross_dscale(src[kMTransX], src[kMPersp1], src[kMSkewX], src[kMPersp2], invDet); in ComputeInv() 806 … dst[kMTransX] = scross_dscale(src[kMSkewX], src[kMTransY], src[kMTransX], src[kMScaleY], invDet); in ComputeInv() 808 … dst[kMSkewY] = scross_dscale(src[kMTransY], src[kMPersp0], src[kMSkewY], src[kMPersp2], invDet); in ComputeInv() 809 … dst[kMScaleY] = scross_dscale(src[kMScaleX], src[kMPersp2], src[kMTransX], src[kMPersp0], invDet); in ComputeInv() 810 … dst[kMTransY] = scross_dscale(src[kMTransX], src[kMSkewY], src[kMScaleX], src[kMTransY], invDet); in ComputeInv() 812 … dst[kMPersp0] = scross_dscale(src[kMSkewY], src[kMPersp1], src[kMScaleY], src[kMPersp0], invDet); in ComputeInv() 813 … dst[kMPersp1] = scross_dscale(src[kMSkewX], src[kMPersp0], src[kMScaleX], src[kMPersp1], invDet); in ComputeInv() 814 … dst[kMPersp2] = scross_dscale(src[kMScaleX], src[kMScaleY], src[kMSkewX], src[kMSkewY], invDet); in ComputeInv() [all …]
|
/external/skqp/include/core/ |
D | SkMatrix.h | 1743 static void ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp);
|
/external/skia/include/core/ |
D | SkMatrix.h | 1735 static void ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp);
|