Home
last modified time | relevance | path

Searched refs:invDet (Results 1 – 8 of 8) sorted by relevance

/external/autotest/client/site_tests/graphics_SanAngeles/src/
Dshader.c92 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/
DIntermediate.cpp1316 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 …]
DOutputASM.cpp1231 Temporary invDet(this); in visitUnary() local
1232 emitDeterminant(&invDet, arg, size); in visitUnary()
1234 Instruction *div = emit(sw::Shader::OPCODE_DIV, &invDet, &one, &invDet); in visitUnary()
1240 emit(sw::Shader::OPCODE_MUL, result, i, result, i, &invDet); in visitUnary()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMatrix.java464 final float invDet = inverseDeterminant(); in invert() local
465 if (invDet == 0) { in invert()
471 dst[0] = cross_scale(src[4], src[8], src[5], src[7], invDet); in invert()
472 dst[1] = cross_scale(src[2], src[7], src[1], src[8], invDet); in invert()
473 dst[2] = cross_scale(src[1], src[5], src[2], src[4], invDet); in invert()
475 dst[3] = cross_scale(src[5], src[6], src[3], src[8], invDet); in invert()
476 dst[4] = cross_scale(src[0], src[8], src[2], src[6], invDet); in invert()
477 dst[5] = cross_scale(src[2], src[3], src[0], src[5], invDet); in invert()
479 dst[6] = cross_scale(src[3], src[7], src[4], src[6], invDet); in invert()
480 dst[7] = cross_scale(src[1], src[6], src[0], src[7], invDet); in invert()
[all …]
/external/skia/src/core/
DSkMatrix.cpp798 void SkMatrix::ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp) { in ComputeInv() argument
803 … dst[kMScaleX] = scross_dscale(src[kMScaleY], src[kMPersp2], src[kMTransY], src[kMPersp1], invDet); in ComputeInv()
804 … dst[kMSkewX] = scross_dscale(src[kMTransX], src[kMPersp1], src[kMSkewX], src[kMPersp2], invDet); in ComputeInv()
805 … dst[kMTransX] = scross_dscale(src[kMSkewX], src[kMTransY], src[kMTransX], src[kMScaleY], invDet); in ComputeInv()
807 … dst[kMSkewY] = scross_dscale(src[kMTransY], src[kMPersp0], src[kMSkewY], src[kMPersp2], invDet); in ComputeInv()
808 … dst[kMScaleY] = scross_dscale(src[kMScaleX], src[kMPersp2], src[kMTransX], src[kMPersp0], invDet); in ComputeInv()
809 … dst[kMTransY] = scross_dscale(src[kMTransX], src[kMSkewY], src[kMScaleX], src[kMTransY], invDet); in ComputeInv()
811 … dst[kMPersp0] = scross_dscale(src[kMSkewY], src[kMPersp1], src[kMScaleY], src[kMPersp0], invDet); in ComputeInv()
812 … dst[kMPersp1] = scross_dscale(src[kMSkewX], src[kMPersp0], src[kMScaleX], src[kMPersp1], invDet); in ComputeInv()
813 … dst[kMPersp2] = scross_dscale(src[kMScaleX], src[kMScaleY], src[kMSkewX], src[kMSkewY], invDet); in ComputeInv()
[all …]
/external/skqp/src/core/
DSkMatrix.cpp797 void SkMatrix::ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp) { in ComputeInv() argument
802 … dst[kMScaleX] = scross_dscale(src[kMScaleY], src[kMPersp2], src[kMTransY], src[kMPersp1], invDet); in ComputeInv()
803 … dst[kMSkewX] = scross_dscale(src[kMTransX], src[kMPersp1], src[kMSkewX], src[kMPersp2], invDet); in ComputeInv()
804 … dst[kMTransX] = scross_dscale(src[kMSkewX], src[kMTransY], src[kMTransX], src[kMScaleY], invDet); in ComputeInv()
806 … dst[kMSkewY] = scross_dscale(src[kMTransY], src[kMPersp0], src[kMSkewY], src[kMPersp2], invDet); in ComputeInv()
807 … dst[kMScaleY] = scross_dscale(src[kMScaleX], src[kMPersp2], src[kMTransX], src[kMPersp0], invDet); in ComputeInv()
808 … dst[kMTransY] = scross_dscale(src[kMTransX], src[kMSkewY], src[kMScaleX], src[kMTransY], invDet); in ComputeInv()
810 … dst[kMPersp0] = scross_dscale(src[kMSkewY], src[kMPersp1], src[kMScaleY], src[kMPersp0], invDet); in ComputeInv()
811 … dst[kMPersp1] = scross_dscale(src[kMSkewX], src[kMPersp0], src[kMScaleX], src[kMPersp1], invDet); in ComputeInv()
812 … dst[kMPersp2] = scross_dscale(src[kMScaleX], src[kMScaleY], src[kMSkewX], src[kMSkewY], invDet); in ComputeInv()
[all …]
/external/skia/include/core/
DSkMatrix.h1756 static void ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp);
/external/skqp/include/core/
DSkMatrix.h1756 static void ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp);