/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | bugdroid.rs | 29 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 …]
|
D | mandelbulb.rs | 42 static float3 nylander3(float3 p) { constant 43 float3 out = (float3){0.f, 0.f, 0.f}; 58 float3 c = (float3) {(float) x, (float) y, (float) z}; 62 float3 p = c;
|
D | vr.rs | 25 float3 s; 26 float3 dx; 27 float3 dy; 28 float3 dz; 33 static float3 mLight; variable 47 s = rsMatrixMultiply(&matrix4, (float3) {0.5f, 0.5f, 0.5f}).xyz; 48 dx = rsMatrixMultiply(&matrix3, (float3) {1.f, 0.f, 0.f}); 49 dy = rsMatrixMultiply(&matrix3, (float3) {0.f, 1.f, 0.f}); 50 dz = rsMatrixMultiply(&matrix3, (float3) {0.f, 0.f, 1.f}); 58 float3 mLightRelitvePos = (float3) {0.f, 0.7071f, -0.7071f}; // light relitve to camera [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | ColorSpace.h | 153 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/ui/ |
D | ColorSpace.h | 153 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/ |
D | colorspace_test.cpp | 142 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/ |
D | Color.cpp | 123 static const float3 ILLUMINANT_D50_XYZ = {0.964212f, 1.0f, 0.825188f}; 125 float3{ 0.8951f, -0.7502f, 0.0389f}, 126 float3{ 0.2664f, 1.7135f, -0.0685f}, 127 float3{-0.1614f, 0.0367f, 1.0296f} 130 static mat3 adaptation(const mat3& matrix, const float3& srcWhitePoint, const float3& dstWhitePoint… in adaptation() 131 float3 srcLMS = matrix * srcWhitePoint; in adaptation() 132 float3 dstLMS = matrix * dstWhitePoint; in adaptation() 143 float3 toXyz(const Lab& lab) { in toXyz() 144 float3 v { lab.L, lab.a, lab.b }; in toXyz() 163 Lab fromXyz(const float3& v) { in fromXyz() [all …]
|
/frameworks/native/libs/ui/ |
D | ColorSpace.cpp | 86 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/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | healing.rs | 73 float3 __attribute__((kernel)) laplacian( uint32_t x, uint32_t y) { 74 float3 out = 4 * rsGetElementAt_float3(src, x, y); 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); 122 float3 __attribute__((kernel)) solve2(uchar in, uint32_t x, uint32_t y) { 124 float3 k = rsGetElementAt_float3(dest2, x - 1, y); 140 float3 __attribute__((kernel))extractBorder(int2 in) { [all …]
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | healing.rs | 25 float3 __attribute__((kernel)) laplacian(uint32_t x, uint32_t y) { 26 float3 out = 4 * rsGetElementAt_float3(src, x, y); 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) { 63 float3 k = rsGetElementAt_float3(dest1, x - 1, y); 74 float3 __attribute__((kernel)) solve2(uchar in, uint32_t x, uint32_t y) { 76 float3 k = rsGetElementAt_float3(dest2, x - 1, y); [all …]
|
/frameworks/compile/slang/tests/P_all_api_14/ |
D | all14.rs | 2442 *(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_12/ |
D | all12.rs | 2372 *(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/ |
D | all13.rs | 2372 *(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/ |
D | all15.rs | 2442 *(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_16/ |
D | all16.rs | 2534 *(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_11/ |
D | all11.rs | 2372 *(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_17/ |
D | all17.rs | 2642 *(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/ |
D | all21.rs | 4088 *(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_float3/ |
D | float3.rs | 4 float3 f; 5 float3 f1[1]; 8 float3 f; field 9 float3 f1[1];
|
/frameworks/compile/slang/tests/P_all_api_18/ |
D | all18.rs | 3201 *(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/ |
D | rs_cl.c | 5 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_all_api_23/ |
D | all23.rs | 4738 *(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 …]
|
/frameworks/compile/slang/tests/P_all_api_19/ |
D | all19.rs | 3425 *(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/ |
D | all20.rs | 3444 *(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/ |
D | all22.rs | 4808 *(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 …]
|