Home
last modified time | relevance | path

Searched refs:float3 (Results 1 – 25 of 135) sorted by relevance

123456

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rscript29 static float pillDistance(float3 p1, float3 p2, float3 img) {
37 static short pill(float3 p1, float3 p2, float rad, short max, float3 img) {
41 static short cogPill(float3 p1, float3 p2, float rad, short max, float3 img) {
42 float3 vec = (p1 + p2) / 2 - img;
48 static float cylinderDistance(float3 p1, float3 p2, float3 img) {
57 static short cylinder(float3 p1, float3 p2, float rad, short max, float3 img) {
61 static short cogCylinder(float3 p1, float3 p2, float rad, short max, float3 img) {
62 float3 vec = (p1 + p2) / 2 - img;
68 static float distanceCircle(float3 center, float radius, float3 normal,
69 float3 img) {
[all …]
Dmandelbulb.rscript26 static float3 nylander(float3 p, int n) {
27 float3 out;
42 static float3 nylander3(float3 p) {
43 float3 out = (float3){0.f, 0.f, 0.f};
58 float3 c = (float3) {(float) x, (float) y, (float) z};
62 float3 p = c;
/frameworks/native/libs/ui/include_vndk/ui/
DColorSpace.h153 constexpr float3 fromLinear(const float3& v) const noexcept { in fromLinear()
161 constexpr float3 toLinear(const float3& v) const noexcept { in toLinear()
170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept { in xyzToRGB()
179 constexpr float3 rgbToXYZ(const float3& rgb) const noexcept { in rgbToXYZ()
222 static constexpr float2 xyY(const float3& XYZ) { in xyY()
223 return XYZ.xy / dot(XYZ, float3{1}); in xyY()
229 static constexpr float3 XYZ(const float3& xyY) { in XYZ()
230 return float3{(xyY.x * xyY.z) / xyY.y, xyY.z, ((1 - xyY.x - xyY.y) * xyY.z) / xyY.y}; in XYZ()
253 static std::unique_ptr<float3[]> createLUT(uint32_t size, const ColorSpace& src,
287 constexpr float3 transform(const float3& v) const noexcept { in transform()
[all …]
/frameworks/native/libs/ui/include_types/ui/
DColorSpace.h153 constexpr float3 fromLinear(const float3& v) const noexcept { in fromLinear()
161 constexpr float3 toLinear(const float3& v) const noexcept { in toLinear()
170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept { in xyzToRGB()
179 constexpr float3 rgbToXYZ(const float3& rgb) const noexcept { in rgbToXYZ()
222 static constexpr float2 xyY(const float3& XYZ) { in xyY()
223 return XYZ.xy / dot(XYZ, float3{1}); in xyY()
229 static constexpr float3 XYZ(const float3& xyY) { in XYZ()
230 return float3{(xyY.x * xyY.z) / xyY.y, xyY.z, ((1 - xyY.x - xyY.y) * xyY.z) / xyY.y}; in XYZ()
253 static std::unique_ptr<float3[]> createLUT(uint32_t size, const ColorSpace& src,
287 constexpr float3 transform(const float3& v) const noexcept { in transform()
[all …]
/frameworks/native/libs/ui/tests/
Dcolorspace_test.cpp142 float3 c(ColorSpace::BT2020().rgbToXYZ(float3{0, 1, 0})); in TEST_F()
145 float3 sRGB(ColorSpace::sRGB().xyzToRGB(c)); in TEST_F()
146 EXPECT_TRUE(sRGB > float3{0.0} && sRGB < float3{1.0}); in TEST_F()
149 float3 extendedSRGB(ColorSpace::linearExtendedSRGB().xyzToRGB(c)); in TEST_F()
157 EXPECT_TRUE(all(lessThan(abs(r - float3{0.8912f, 0.4962f, 0.1164f}), float3{1e-4f}))); in TEST_F()
162 EXPECT_TRUE(all(lessThan(abs(r - float3{0.70226f, 0.2757f, 0.1036f}), float3{1e-4f}))); in TEST_F()
171 EXPECT_TRUE(all(lessThan(abs(r - float3{0.8912f, 0.4962f, 0.1164f}), float3{1e-4f}))); in TEST_F()
175 EXPECT_TRUE(all(lessThan(abs(r - float3{1.0f, 1.0f, 0.5290f}), float3{1e-4f}))); in TEST_F()
179 EXPECT_TRUE(all(lessThan(abs(r - float3{1.0f, 1.0f, 1.0f}), float3{1e-4f}))); in TEST_F()
/frameworks/base/libs/hwui/utils/
DHostColorSpace.cpp87 float3 r(rgbToXYZ * float3{1, 0, 0}); in computePrimaries()
88 float3 g(rgbToXYZ * float3{0, 1, 0}); in computePrimaries()
89 float3 b(rgbToXYZ * float3{0, 0, 1}); in computePrimaries()
91 return {{r.xy / dot(r, float3{1}), in computePrimaries()
92 g.xy / dot(g, float3{1}), in computePrimaries()
93 b.xy / dot(b, float3{1})}}; in computePrimaries()
97 float3 w(rgbToXYZ * float3{1}); in computeWhitePoint()
98 return w.xy / dot(w, float3{1}); in computeWhitePoint()
228 float3{RYRy * R.x, RY, RYRy * (1 - R.x - R.y)}, in computeXYZMatrix()
229 float3{GYGy * G.x, GY, GYGy * (1 - G.x - G.y)}, in computeXYZMatrix()
[all …]
DColor.cpp274 static const float3 ILLUMINANT_D50_XYZ = {0.964212f, 1.0f, 0.825188f};
276 float3{ 0.8951f, -0.7502f, 0.0389f},
277 float3{ 0.2664f, 1.7135f, -0.0685f},
278 float3{-0.1614f, 0.0367f, 1.0296f}
281 static mat3 adaptation(const mat3& matrix, const float3& srcWhitePoint, const float3& dstWhitePoint… in adaptation()
282 float3 srcLMS = matrix * srcWhitePoint; in adaptation()
283 float3 dstLMS = matrix * dstWhitePoint; in adaptation()
294 float3 toXyz(const Lab& lab) { in toXyz()
295 float3 v { lab.L, lab.a, lab.b }; in toXyz()
314 Lab fromXyz(const float3& v) { in fromXyz()
[all …]
/frameworks/native/libs/ui/
DColorSpace.cpp86 float3 r(rgbToXYZ * float3{1, 0, 0}); in computePrimaries()
87 float3 g(rgbToXYZ * float3{0, 1, 0}); in computePrimaries()
88 float3 b(rgbToXYZ * float3{0, 0, 1}); in computePrimaries()
90 return {{r.xy / dot(r, float3{1}), in computePrimaries()
91 g.xy / dot(g, float3{1}), in computePrimaries()
92 b.xy / dot(b, float3{1})}}; in computePrimaries()
96 float3 w(rgbToXYZ * float3{1}); in computeWhitePoint()
97 return w.xy / dot(w, float3{1}); in computeWhitePoint()
227 float3{RYRy * R.x, RY, RYRy * (1 - R.x - R.y)}, in computeXYZMatrix()
228 float3{GYGy * G.x, GY, GYGy * (1 - G.x - G.y)}, in computeXYZMatrix()
[all …]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dhealing.rscript25 float3 __attribute__((kernel)) laplacian(uint32_t x, uint32_t y) {
26 float3 out = 4 * rsGetElementAt_float3(src, x, y);
35 AllocationF32_3 laplace; // float3
36 AllocationF32_3 dest1; // float3
37 AllocationF32_3 dest2; // float3
39 float3 __attribute__((kernel)) convert_to_f(uchar4 in) {
42 float3 __attribute__((kernel)) copy(float3 in) { return in; }
44 float3 __attribute__((kernel)) copyMasked(uchar in, uint32_t x, uint32_t y) {
48 uchar4 __attribute__((kernel)) convert_to_uc(float3 in) {
61 float3 __attribute__((kernel)) solve1(uchar in, uint32_t x, uint32_t y) {
[all …]
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dhealing.rscript73 float3 __attribute__((kernel)) laplacian( uint32_t x, uint32_t y) {
74 float3 out = 4 * rsGetElementAt_float3(src, x, y);
83 AllocationF32_3 laplace; // float3
84 AllocationF32_3 dest1; // float3
85 AllocationF32_3 dest2; // float3
87 float3 __attribute__((kernel)) convert_to_f(uchar4 in) {
91 float3 __attribute__((kernel)) copyMasked(uchar in, uint32_t x, uint32_t y) {
95 uchar4 __attribute__((kernel)) convert_to_uc(float3 in) {
108 float3 __attribute__((kernel)) solve1(uchar in, uint32_t x, uint32_t y) {
110 float3 k = rsGetElementAt_float3(dest1, x - 1, y);
[all …]
/frameworks/compile/slang/tests/P_all_api_12/
Dall12.rscript2372 *(float3*)buf28 = acos(*(float3*)buf29);
2376 *(float3*)buf36 = acosh(*(float3*)buf37);
2380 *(float3*)buf44 = acospi(*(float3*)buf45);
2384 *(float3*)buf52 = asin(*(float3*)buf53);
2388 *(float3*)buf60 = asinh(*(float3*)buf61);
2392 *(float3*)buf68 = asinpi(*(float3*)buf69);
2396 *(float3*)buf76 = atan(*(float3*)buf77);
2400 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
2404 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
2408 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_15/
Dall15.rscript2442 *(float3*)buf28 = acos(*(float3*)buf29);
2446 *(float3*)buf36 = acosh(*(float3*)buf37);
2450 *(float3*)buf44 = acospi(*(float3*)buf45);
2454 *(float3*)buf52 = asin(*(float3*)buf53);
2458 *(float3*)buf60 = asinh(*(float3*)buf61);
2462 *(float3*)buf68 = asinpi(*(float3*)buf69);
2466 *(float3*)buf76 = atan(*(float3*)buf77);
2470 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
2474 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
2478 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_11/
Dall11.rscript2372 *(float3*)buf28 = acos(*(float3*)buf29);
2376 *(float3*)buf36 = acosh(*(float3*)buf37);
2380 *(float3*)buf44 = acospi(*(float3*)buf45);
2384 *(float3*)buf52 = asin(*(float3*)buf53);
2388 *(float3*)buf60 = asinh(*(float3*)buf61);
2392 *(float3*)buf68 = asinpi(*(float3*)buf69);
2396 *(float3*)buf76 = atan(*(float3*)buf77);
2400 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
2404 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
2408 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_13/
Dall13.rscript2372 *(float3*)buf28 = acos(*(float3*)buf29);
2376 *(float3*)buf36 = acosh(*(float3*)buf37);
2380 *(float3*)buf44 = acospi(*(float3*)buf45);
2384 *(float3*)buf52 = asin(*(float3*)buf53);
2388 *(float3*)buf60 = asinh(*(float3*)buf61);
2392 *(float3*)buf68 = asinpi(*(float3*)buf69);
2396 *(float3*)buf76 = atan(*(float3*)buf77);
2400 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
2404 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
2408 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_14/
Dall14.rscript2442 *(float3*)buf28 = acos(*(float3*)buf29);
2446 *(float3*)buf36 = acosh(*(float3*)buf37);
2450 *(float3*)buf44 = acospi(*(float3*)buf45);
2454 *(float3*)buf52 = asin(*(float3*)buf53);
2458 *(float3*)buf60 = asinh(*(float3*)buf61);
2462 *(float3*)buf68 = asinpi(*(float3*)buf69);
2466 *(float3*)buf76 = atan(*(float3*)buf77);
2470 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
2474 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
2478 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_17/
Dall17.rscript2642 *(float3*)buf28 = acos(*(float3*)buf29);
2646 *(float3*)buf36 = acosh(*(float3*)buf37);
2650 *(float3*)buf44 = acospi(*(float3*)buf45);
2654 *(float3*)buf52 = asin(*(float3*)buf53);
2658 *(float3*)buf60 = asinh(*(float3*)buf61);
2662 *(float3*)buf68 = asinpi(*(float3*)buf69);
2666 *(float3*)buf76 = atan(*(float3*)buf77);
2670 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
2674 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
2678 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_21/
Dall21.rscript4088 *(float3*)buf28 = acos(*(float3*)buf29);
4092 *(float3*)buf36 = acosh(*(float3*)buf37);
4096 *(float3*)buf44 = acospi(*(float3*)buf45);
4100 *(float3*)buf52 = asin(*(float3*)buf53);
4104 *(float3*)buf60 = asinh(*(float3*)buf61);
4108 *(float3*)buf68 = asinpi(*(float3*)buf69);
4112 *(float3*)buf76 = atan(*(float3*)buf77);
4116 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
4120 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
4124 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_16/
Dall16.rscript2534 *(float3*)buf28 = acos(*(float3*)buf29);
2538 *(float3*)buf36 = acosh(*(float3*)buf37);
2542 *(float3*)buf44 = acospi(*(float3*)buf45);
2546 *(float3*)buf52 = asin(*(float3*)buf53);
2550 *(float3*)buf60 = asinh(*(float3*)buf61);
2554 *(float3*)buf68 = asinpi(*(float3*)buf69);
2558 *(float3*)buf76 = atan(*(float3*)buf77);
2562 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
2566 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
2570 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_18/
Dall18.rscript3201 *(float3*)buf28 = acos(*(float3*)buf29);
3205 *(float3*)buf36 = acosh(*(float3*)buf37);
3209 *(float3*)buf44 = acospi(*(float3*)buf45);
3213 *(float3*)buf52 = asin(*(float3*)buf53);
3217 *(float3*)buf60 = asinh(*(float3*)buf61);
3221 *(float3*)buf68 = asinpi(*(float3*)buf69);
3225 *(float3*)buf76 = atan(*(float3*)buf77);
3229 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
3233 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
3237 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/rs/driver/runtime/
Drs_cl.c5 extern float3 __attribute__((overloadable)) convert_float3(int3 c);
9 extern int3 __attribute__((overloadable)) convert_int3(float3 c);
15 extern float3 __attribute__((overloadable)) fmin(float3 v, float v2);
20 extern float3 __attribute__((overloadable)) fmax(float3 v, float v2);
32 extern float3 __attribute__((overloadable)) fnc(float3 v) { \
33 float3 r; \
55 extern int3 __attribute__((overloadable)) fnc(float3 v) { \
78 extern float3 __attribute__((overloadable)) fnc(float3 v1, float3 v2) { \
79 float3 r; \
101 extern float3 __attribute__((overloadable)) fnc(float3 v1, float v2) { \
[all …]
/frameworks/compile/slang/tests/P_float3/
Dfloat3.rscript4 float3 f;
5 float3 f1[1];
8 float3 f;
9 float3 f1[1];
/frameworks/compile/slang/tests/P_all_api_19/
Dall19.rscript3425 *(float3*)buf28 = acos(*(float3*)buf29);
3429 *(float3*)buf36 = acosh(*(float3*)buf37);
3433 *(float3*)buf44 = acospi(*(float3*)buf45);
3437 *(float3*)buf52 = asin(*(float3*)buf53);
3441 *(float3*)buf60 = asinh(*(float3*)buf61);
3445 *(float3*)buf68 = asinpi(*(float3*)buf69);
3449 *(float3*)buf76 = atan(*(float3*)buf77);
3453 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
3457 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
3461 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_20/
Dall20.rscript3444 *(float3*)buf28 = acos(*(float3*)buf29);
3448 *(float3*)buf36 = acosh(*(float3*)buf37);
3452 *(float3*)buf44 = acospi(*(float3*)buf45);
3456 *(float3*)buf52 = asin(*(float3*)buf53);
3460 *(float3*)buf60 = asinh(*(float3*)buf61);
3464 *(float3*)buf68 = asinpi(*(float3*)buf69);
3468 *(float3*)buf76 = atan(*(float3*)buf77);
3472 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
3476 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
3480 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_22/
Dall22.rscript4808 *(float3*)buf28 = acos(*(float3*)buf29);
4812 *(float3*)buf36 = acosh(*(float3*)buf37);
4816 *(float3*)buf44 = acospi(*(float3*)buf45);
4820 *(float3*)buf52 = asin(*(float3*)buf53);
4824 *(float3*)buf60 = asinh(*(float3*)buf61);
4828 *(float3*)buf68 = asinpi(*(float3*)buf69);
4832 *(float3*)buf76 = atan(*(float3*)buf77);
4836 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
4840 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
4844 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]
/frameworks/compile/slang/tests/P_all_api_23/
Dall23.rscript4738 *(float3*)buf28 = acos(*(float3*)buf29);
4742 *(float3*)buf36 = acosh(*(float3*)buf37);
4746 *(float3*)buf44 = acospi(*(float3*)buf45);
4750 *(float3*)buf52 = asin(*(float3*)buf53);
4754 *(float3*)buf60 = asinh(*(float3*)buf61);
4758 *(float3*)buf68 = asinpi(*(float3*)buf69);
4762 *(float3*)buf76 = atan(*(float3*)buf77);
4766 *(float3*)buf86 = atan2(*(float3*)buf87, *(float3*)buf88);
4770 *(float3*)buf98 = atan2pi(*(float3*)buf99, *(float3*)buf100);
4774 *(float3*)buf108 = atanh(*(float3*)buf109);
[all …]

123456