Home
last modified time | relevance | path

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

/frameworks/base/core/res/res/raw/
Dcolor_fade_frag.frag10 vec3 rgb2hsl(vec3 rgb)
22 return clamp(vec3(h, s, l), 0.0, 1.0);
25 vec3 hsl2rgb(vec3 hsl)
27 vec3 h = vec3(hsl.x * 6.0);
28 vec3 p = abs(h - vec3(3.0, 2.0, 4.0));
29 vec3 q = 2.0 - p;
31 vec3 rgb = clamp(vec3(p.x - 1.0, q.yz), 0.0, 1.0);
33 return (rgb - vec3(0.5)) * c + hsl.z;
39 vec3 hsl = rgb2hsl(color.xyz);
40 vec3 rgb = pow(hsl2rgb(vec3(hsl.x, hsl.y * saturation, hsl.z * opacity)), vec3(gamma));
/frameworks/native/services/surfaceflinger/
DTransform.h67 const vec3& operator [] (size_t i) const; // returns column i
85 vec3 transform(const vec3& v) const;
94 vec3 v[3];
95 inline const vec3& operator [] (int i) const { return v[i]; }
96 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/libs/ui/tests/
Dvec_test.cpp35 vec3& v3(v4.xyz); in TEST_F()
38 EXPECT_EQ(sizeof(vec3), sizeof(float)*3); in TEST_F()
74 vec4 v5(vec3(v2.xy, 42), 24); in TEST_F()
107 v0.xyz = vec3(1,2,3); in TEST_F()
240 vec3 east(1, 0, 0); in TEST_F()
241 vec3 north(0, 1, 0); in TEST_F()
242 vec3 up( cross(east, north) ); in TEST_F()
243 EXPECT_EQ(up, vec3(0,0,1)); in TEST_F()
248 vec3 v0(1,2,3); in TEST_F()
249 vec3 vn(normalize(v0)); in TEST_F()
/frameworks/native/services/surfaceflinger/Effects/
DDaltonizer.cpp81 const vec3& lms_r(rgb2lms[0].rgb); in update()
83 const vec3& lms_b(rgb2lms[2].rgb); in update()
85 const vec3 lms_w((rgb2lms * vec4(1)).rgb); in update()
90 const vec3 p0 = cross(lms_w, lms_b); // protanopia/deuteranopia in update()
91 const vec3 p1 = cross(lms_w, lms_r); // tritanopia in update()
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp102 m = mat4::rotate(rot90InRadians, vec3(0,0,1)) * m; in setViewportAndProjection()
105 m = mat4::rotate(rot90InRadians * 2.0f, vec3(0,0,1)) * m; in setViewportAndProjection()
108 m = mat4::rotate(rot90InRadians * 3.0f, vec3(0,0,1)) * m; in setViewportAndProjection()
/frameworks/native/include/ui/
Dvec3.h108 typedef 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()