Home
last modified time | relevance | path

Searched refs:vec3 (Results 1 – 20 of 20) 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/libs/ui/include/ui/
DTransform.h67 const vec3& operator [] (size_t i) const; // returns column i
90 vec3 transform(const vec3& v) const;
103 vec3 v[3];
104 inline const vec3& operator [] (size_t i) const { return v[i]; }
105 inline vec3& operator [] (size_t i) { return v[i]; }
/frameworks/native/libs/ui/include_vndk/ui/
DTransform.h67 const vec3& operator [] (size_t i) const; // returns column i
90 vec3 transform(const vec3& v) const;
103 vec3 v[3];
104 inline const vec3& operator [] (size_t i) const { return v[i]; }
105 inline vec3& operator [] (size_t i) { return v[i]; }
/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/packages/SystemUI/res/raw/
Dimage_wallpaper_fragment_shader.glsl20 vec3 luminosity(vec3 color) {
22 return vec3(lum);
25 vec4 transform(vec3 diffuse) {
27 vec3 lum = luminosity(diffuse);
55 vec3 remaps = smoothstep(lower, 1., diffuse);
/frameworks/base/core/res/res/raw/
Dcolor_fade_frag.frag12 vec3 rgb = pow(color.rgb * opacity, vec3(gamma));
/frameworks/native/libs/ui/
DTransform.cpp87 const vec3& Transform::operator [] (size_t i) const { in operator []()
110 vec3& v(mMatrix[i]); in reset()
189 vec3 Transform::transform(const vec3& v) const { in transform()
190 vec3 r; in transform()
/frameworks/native/services/surfaceflinger/tests/
DBufferGeneratorShader.h347 static const android::vec3 SPHERICAL_HARMONICS[4] =
DBufferGenerator.cpp260 void bindVec3(GLint location, const vec3* v, uint32_t count) const { in bindVec3()
DTransaction_test.cpp1884 const ubyte3 expected((vec3(color) * alpha + vec3(1.0f, 0.0f, 0.0f) * (1.0f - alpha)) * 255.0f); in TEST_P()
1910 const ubyte3 expected((vec3(color) * alpha + vec3(1.0f, 0.0f, 0.0f) * (1.0f - alpha)) * 255.0f); in TEST_P()
3080 .setColorTransform(colorLayer, matrix, vec3()).apply(); in TEST_P()
3134 .setColorTransform(parentLayer, matrix, vec3()) in TEST_P()
3194 .setColorTransform(parentLayer, matrixParent, vec3()) in TEST_P()
3195 .setColorTransform(colorLayer, matrixChild, vec3()) in TEST_P()
/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/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/libs/renderengine/gl/
DGLESRenderEngine.cpp1093 m = mat4::rotate(rot90InRadians, vec3(0, 0, 1)) * m; in setViewportAndProjection()
1096 m = mat4::rotate(rot90InRadians * 2.0f, vec3(0, 0, 1)) * m; in setViewportAndProjection()
1099 m = mat4::rotate(rot90InRadians * 3.0f, vec3(0, 0, 1)) * m; in setViewportAndProjection()
/frameworks/native/libs/gui/include/gui/
DSurfaceComposerClient.h446 const vec3& translation);
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp1139 const sp<SurfaceControl>& sc, const mat3& matrix, const vec3& translation) { in setColorTransform()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp6042 rotMatrix = mat4::rotate(rot90InRadians, vec3(0, 0, 1)); in renderScreenImplLocked()
6046 rotMatrix = mat4::rotate(rot90InRadians * 2.0f, vec3(0, 0, 1)); in renderScreenImplLocked()
6051 rotMatrix = mat4::rotate(rot90InRadians * 3.0f, vec3(0, 0, 1)); in renderScreenImplLocked()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp516 vec3 translation(floatTranslation[0], floatTranslation[1], floatTranslation[2]); in nativeSetColorTransform()