Home
last modified time | relevance | path

Searched refs:vec3 (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/libs/math/tests/
Dvec_test.cpp33 vec3& v3(v4.xyz); in TEST_F()
36 EXPECT_EQ(sizeof(vec3), sizeof(float)*3); in TEST_F()
72 vec4 v5(vec3(v2.xy, 42), 24); in TEST_F()
106 v0.xyz = vec3(1, 2, 3); in TEST_F()
238 vec3 east(1, 0, 0); in TEST_F()
239 vec3 north(0, 1, 0); in TEST_F()
240 vec3 up(cross(east, north)); in TEST_F()
241 EXPECT_EQ(up, vec3(0, 0, 1)); in TEST_F()
246 vec3 v0(1, 2, 3); in TEST_F()
247 vec3 vn(normalize(v0)); in TEST_F()
[all …]
Dmat_test.cpp202 mat3 m2(vec3(2)); in TEST_F()
213 mat3 m2(vec3(2)); in TEST_F()
236 EXPECT_EQ(mat3(vec3(-1, 0, 0), in TEST_F()
237 vec3(0, -1, 0), in TEST_F()
238 vec3(0, 0, -1)), m0); in TEST_F()
249 mat3 m1(vec3(1, 2, 3), vec3(4, 5, 6), vec3(7, 8, 9)); in TEST_F()
250 mat3 m2(vec3(1, 4, 7), vec3(2, 5, 8), vec3(3, 6, 9)); in TEST_F()
253 EXPECT_EQ(vec3(1, 5, 9), diag(m1)); in TEST_F()
257 mat3 m3(vec3(4, 3, 0), vec3(3, 2, 0), vec3(0, 0, 1)); in TEST_F()
/frameworks/native/services/surfaceflinger/
DTransform.h71 const vec3& operator [] (size_t i) const; // returns column i
91 vec3 transform(const vec3& v) const;
100 vec3 v[3];
101 inline const vec3& operator [] (int i) const { return v[i]; }
102 inline vec3& operator [] (int i) { return v[i]; }
DTransform.cpp86 const vec3& Transform::operator [] (size_t i) const { in operator []()
101 vec3& v(mMatrix[i]); in reset()
180 vec3 Transform::transform(const vec3& v) const { in transform()
181 vec3 r; in transform()
/frameworks/native/services/surfaceflinger/Effects/
DDaltonizer.cpp79 const vec3& lms_r(rgb2lms[0].rgb); in update()
81 const vec3& lms_b(rgb2lms[2].rgb); in update()
83 const vec3 lms_w((rgb2lms * vec4(1)).rgb); in update()
88 const vec3 p0 = cross(lms_w, lms_b); // protanopia/deuteranopia in update()
89 const vec3 p1 = cross(lms_w, lms_r); // tritanopia in update()
/frameworks/base/core/res/res/raw/
Dcolor_fade_frag.frag12 vec3 rgb = pow(color.rgb * opacity, vec3(gamma));
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dtypes.h29 using vec3 = vec3f; variable
Dnumeric.h160 inline mat4 TranslationMatrix(const vec3& translation) { in TranslationMatrix()
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp192 m = mat4::rotate(rot90InRadians, vec3(0, 0, 1)) * m; in setViewportAndProjection()
195 m = mat4::rotate(rot90InRadians * 2.0f, vec3(0, 0, 1)) * m; in setViewportAndProjection()
198 m = mat4::rotate(rot90InRadians * 3.0f, vec3(0, 0, 1)) * m; in setViewportAndProjection()
/frameworks/native/libs/math/include/math/
Dvec3.h118 typedef details::TVec3<float> vec3; typedef
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dvlc_encode.cpp2544 Int vec1, vec2, vec3; in find_pmvs() local
2574 vec3 = 3 ; in find_pmvs()
2586 vec3 = 3 ; in find_pmvs()
2598 vec3 = 3 ; in find_pmvs()
2610 vec3 = 2 ; in find_pmvs()
2622 vec3 = 2 ; in find_pmvs()
2705 p3x = motdata[yin3*nMBPerRow+xin3][vec3].x; in find_pmvs()
2706 p3y = motdata[yin3*nMBPerRow+xin3][vec3].y; in find_pmvs()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp998 const ubyte3 expected((vec3(color) * alpha + vec3(1.0f, 0.0f, 0.0f) * (1.0f - alpha)) * 255.0f); in TEST_F()
1023 const ubyte3 expected((vec3(color) * alpha + vec3(1.0f, 0.0f, 0.0f) * (1.0f - alpha)) * 255.0f); in TEST_F()