Home
last modified time | relevance | path

Searched refs:float2 (Results 1 – 25 of 126) sorted by relevance

123456

/frameworks/native/libs/ui/
DColorSpace.cpp85 static constexpr std::array<float2, 3> computePrimaries(const mat3& rgbToXYZ) { in computePrimaries()
95 static constexpr float2 computeWhitePoint(const mat3& rgbToXYZ) { in computeWhitePoint()
150 const std::array<float2, 3>& primaries, in ColorSpace() argument
151 const float2& whitePoint, in ColorSpace()
167 const std::array<float2, 3>& primaries, in ColorSpace() argument
168 const float2& whitePoint, in ColorSpace()
184 const std::array<float2, 3>& primaries, in ColorSpace() argument
185 const float2& whitePoint, in ColorSpace()
200 const std::array<float2, 3>& primaries, const float2& whitePoint) { in computeXYZMatrix() argument
201 const float2& R = primaries[0]; in computeXYZMatrix()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rs29 static float2 slope[12]; constant
31 static float2 p1[12]; constant
32 static float2 p2[12]; variable
33 static float2 p3[12]; constant
35 float2 d12[12];
36 float2 d23[12];
37 float2 d31[12];
99 float2 __attribute__ ((kernel)) render_z(uint32_t x, uint32_t y) {
100 float2 out = (float2) {FLOAT_MAX,-FLOAT_MAX};
101 float2 loc;
[all …]
/frameworks/native/libs/ui/include/ui/
DColorSpace.h107 const std::array<float2, 3>& primaries,
108 const float2& whitePoint,
125 const std::array<float2, 3>& primaries,
126 const float2& whitePoint,
141 const std::array<float2, 3>& primaries,
142 const float2& whitePoint,
207 constexpr const std::array<float2, 3>& getPrimaries() const noexcept { in getPrimaries()
211 constexpr const float2& getWhitePoint() const noexcept { in getWhitePoint()
222 static constexpr float2 xyY(const float3& XYZ) { in xyY()
258 const std::array<float2, 3>& primaries, const float2& whitePoint);
[all …]
/frameworks/compile/slang/tests/P_all_api_16/
Dall16.rs2533 *(float2*)buf26 = acos(*(float2*)buf27);
2537 *(float2*)buf34 = acosh(*(float2*)buf35);
2541 *(float2*)buf42 = acospi(*(float2*)buf43);
2545 *(float2*)buf50 = asin(*(float2*)buf51);
2549 *(float2*)buf58 = asinh(*(float2*)buf59);
2553 *(float2*)buf66 = asinpi(*(float2*)buf67);
2557 *(float2*)buf74 = atan(*(float2*)buf75);
2561 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
2565 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
2569 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_11/
Dall11.rs2371 *(float2*)buf26 = acos(*(float2*)buf27);
2375 *(float2*)buf34 = acosh(*(float2*)buf35);
2379 *(float2*)buf42 = acospi(*(float2*)buf43);
2383 *(float2*)buf50 = asin(*(float2*)buf51);
2387 *(float2*)buf58 = asinh(*(float2*)buf59);
2391 *(float2*)buf66 = asinpi(*(float2*)buf67);
2395 *(float2*)buf74 = atan(*(float2*)buf75);
2399 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
2403 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
2407 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_14/
Dall14.rs2441 *(float2*)buf26 = acos(*(float2*)buf27);
2445 *(float2*)buf34 = acosh(*(float2*)buf35);
2449 *(float2*)buf42 = acospi(*(float2*)buf43);
2453 *(float2*)buf50 = asin(*(float2*)buf51);
2457 *(float2*)buf58 = asinh(*(float2*)buf59);
2461 *(float2*)buf66 = asinpi(*(float2*)buf67);
2465 *(float2*)buf74 = atan(*(float2*)buf75);
2469 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
2473 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
2477 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_15/
Dall15.rs2441 *(float2*)buf26 = acos(*(float2*)buf27);
2445 *(float2*)buf34 = acosh(*(float2*)buf35);
2449 *(float2*)buf42 = acospi(*(float2*)buf43);
2453 *(float2*)buf50 = asin(*(float2*)buf51);
2457 *(float2*)buf58 = asinh(*(float2*)buf59);
2461 *(float2*)buf66 = asinpi(*(float2*)buf67);
2465 *(float2*)buf74 = atan(*(float2*)buf75);
2469 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
2473 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
2477 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_12/
Dall12.rs2371 *(float2*)buf26 = acos(*(float2*)buf27);
2375 *(float2*)buf34 = acosh(*(float2*)buf35);
2379 *(float2*)buf42 = acospi(*(float2*)buf43);
2383 *(float2*)buf50 = asin(*(float2*)buf51);
2387 *(float2*)buf58 = asinh(*(float2*)buf59);
2391 *(float2*)buf66 = asinpi(*(float2*)buf67);
2395 *(float2*)buf74 = atan(*(float2*)buf75);
2399 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
2403 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
2407 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_13/
Dall13.rs2371 *(float2*)buf26 = acos(*(float2*)buf27);
2375 *(float2*)buf34 = acosh(*(float2*)buf35);
2379 *(float2*)buf42 = acospi(*(float2*)buf43);
2383 *(float2*)buf50 = asin(*(float2*)buf51);
2387 *(float2*)buf58 = asinh(*(float2*)buf59);
2391 *(float2*)buf66 = asinpi(*(float2*)buf67);
2395 *(float2*)buf74 = atan(*(float2*)buf75);
2399 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
2403 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
2407 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_17/
Dall17.rs2641 *(float2*)buf26 = acos(*(float2*)buf27);
2645 *(float2*)buf34 = acosh(*(float2*)buf35);
2649 *(float2*)buf42 = acospi(*(float2*)buf43);
2653 *(float2*)buf50 = asin(*(float2*)buf51);
2657 *(float2*)buf58 = asinh(*(float2*)buf59);
2661 *(float2*)buf66 = asinpi(*(float2*)buf67);
2665 *(float2*)buf74 = atan(*(float2*)buf75);
2669 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
2673 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
2677 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_21/
Dall21.rs4087 *(float2*)buf26 = acos(*(float2*)buf27);
4091 *(float2*)buf34 = acosh(*(float2*)buf35);
4095 *(float2*)buf42 = acospi(*(float2*)buf43);
4099 *(float2*)buf50 = asin(*(float2*)buf51);
4103 *(float2*)buf58 = asinh(*(float2*)buf59);
4107 *(float2*)buf66 = asinpi(*(float2*)buf67);
4111 *(float2*)buf74 = atan(*(float2*)buf75);
4115 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
4119 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
4123 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
Dball_physics.rs6 float2 gGravityVector = {0.f, 9.8f};
8 float2 gMinPos = {0.f, 0.f};
9 float2 gMaxPos = {1280.f, 700.f};
11 static float2 touchPos[10]; variable
32 float2 fv = 0;
34 float2 pos = ball->position;
58 float2 bcptr = rsGetElementAt_float2(gGridCache, bg->cacheIdx + cidx);
59 float2 vec = bcptr - pos;
60 float2 vec2 = vec * vec;
78 float2 vec = touchPos[i] - ball->position;
[all …]
/frameworks/rs/driver/runtime/
Drs_cl.c4 extern float2 __attribute__((overloadable)) convert_float2(int2 c);
8 extern int2 __attribute__((overloadable)) convert_int2(float2 c);
14 extern float2 __attribute__((overloadable)) fmin(float2 v, float v2);
19 extern float2 __attribute__((overloadable)) fmax(float2 v, float v2);
26 extern float2 __attribute__((overloadable)) fnc(float2 v) { \
27 float2 r; \
49 extern int2 __attribute__((overloadable)) fnc(float2 v) { \
72 extern float2 __attribute__((overloadable)) fnc(float2 v1, float2 v2) { \
73 float2 r; \
95 extern float2 __attribute__((overloadable)) fnc(float2 v1, float v2) { \
[all …]
/frameworks/compile/slang/tests/P_all_api_18/
Dall18.rs3200 *(float2*)buf26 = acos(*(float2*)buf27);
3204 *(float2*)buf34 = acosh(*(float2*)buf35);
3208 *(float2*)buf42 = acospi(*(float2*)buf43);
3212 *(float2*)buf50 = asin(*(float2*)buf51);
3216 *(float2*)buf58 = asinh(*(float2*)buf59);
3220 *(float2*)buf66 = asinpi(*(float2*)buf67);
3224 *(float2*)buf74 = atan(*(float2*)buf75);
3228 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
3232 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
3236 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_23/
Dall23.rs4737 *(float2*)buf26 = acos(*(float2*)buf27);
4741 *(float2*)buf34 = acosh(*(float2*)buf35);
4745 *(float2*)buf42 = acospi(*(float2*)buf43);
4749 *(float2*)buf50 = asin(*(float2*)buf51);
4753 *(float2*)buf58 = asinh(*(float2*)buf59);
4757 *(float2*)buf66 = asinpi(*(float2*)buf67);
4761 *(float2*)buf74 = atan(*(float2*)buf75);
4765 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
4769 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
4773 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_19/
Dall19.rs3424 *(float2*)buf26 = acos(*(float2*)buf27);
3428 *(float2*)buf34 = acosh(*(float2*)buf35);
3432 *(float2*)buf42 = acospi(*(float2*)buf43);
3436 *(float2*)buf50 = asin(*(float2*)buf51);
3440 *(float2*)buf58 = asinh(*(float2*)buf59);
3444 *(float2*)buf66 = asinpi(*(float2*)buf67);
3448 *(float2*)buf74 = atan(*(float2*)buf75);
3452 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
3456 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
3460 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_20/
Dall20.rs3443 *(float2*)buf26 = acos(*(float2*)buf27);
3447 *(float2*)buf34 = acosh(*(float2*)buf35);
3451 *(float2*)buf42 = acospi(*(float2*)buf43);
3455 *(float2*)buf50 = asin(*(float2*)buf51);
3459 *(float2*)buf58 = asinh(*(float2*)buf59);
3463 *(float2*)buf66 = asinpi(*(float2*)buf67);
3467 *(float2*)buf74 = atan(*(float2*)buf75);
3471 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
3475 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
3479 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/compile/slang/tests/P_all_api_22/
Dall22.rs4807 *(float2*)buf26 = acos(*(float2*)buf27);
4811 *(float2*)buf34 = acosh(*(float2*)buf35);
4815 *(float2*)buf42 = acospi(*(float2*)buf43);
4819 *(float2*)buf50 = asin(*(float2*)buf51);
4823 *(float2*)buf58 = asinh(*(float2*)buf59);
4827 *(float2*)buf66 = asinpi(*(float2*)buf67);
4831 *(float2*)buf74 = atan(*(float2*)buf75);
4835 *(float2*)buf83 = atan2(*(float2*)buf84, *(float2*)buf85);
4839 *(float2*)buf95 = atan2pi(*(float2*)buf96, *(float2*)buf97);
4843 *(float2*)buf106 = atanh(*(float2*)buf107);
[all …]
/frameworks/rs/script_api/include/
Drs_math.rsh209 extern float2 __attribute__((const, overloadable))
210 acos(float2 v);
248 extern float2 __attribute__((const, overloadable))
249 acosh(float2 v);
289 extern float2 __attribute__((const, overloadable))
290 acospi(float2 v);
328 extern float2 __attribute__((const, overloadable))
329 asin(float2 v);
367 extern float2 __attribute__((const, overloadable))
368 asinh(float2 v);
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicResize.cpp76 static float2 cubicInterpolate(float2 p0,float2 p1,float2 p2,float2 p3, float x) { in cubicInterpolate()
131 float2 p0 = cubicInterpolate(convert_float2(yp0[xs0]), in OneBiCubic()
136 float2 p1 = cubicInterpolate(convert_float2(yp1[xs0]), in OneBiCubic()
141 float2 p2 = cubicInterpolate(convert_float2(yp2[xs0]), in OneBiCubic()
146 float2 p3 = cubicInterpolate(convert_float2(yp3[xs0]), in OneBiCubic()
151 float2 p = cubicInterpolate(p0, p1, p2, p3, yf); in OneBiCubic()
260 static float2 OneBiCubic(const float2 *yp0, const float2 *yp1, const float2 *yp2, const float2 *yp3, in OneBiCubic()
270 float2 p0 = cubicInterpolate(yp0[xs0], yp0[xs1], in OneBiCubic()
272 float2 p1 = cubicInterpolate(yp1[xs0], yp1[xs1], in OneBiCubic()
274 float2 p2 = cubicInterpolate(yp2[xs0], yp2[xs1], in OneBiCubic()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dclamp.rs24 float2 src2 = { 2.0f, 2.0f};
25 float2 min2 = { 0.5f, -3.0f};
26 float2 max2 = { 1.0f, 9.0f};
28 float2 res2 = clamp(src2, min2, max2);
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dclamp.rs6 float2 src2 = { 2.0f, 2.0f};
7 float2 min2 = { 0.5f, -3.0f};
8 float2 max2 = { 1.0f, 9.0f};
10 float2 res2 = clamp(src2, min2, max2);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dclamp.rs22 float2 src2 = { 2.0f, 2.0f};
23 float2 min2 = { 0.5f, -3.0f};
24 float2 max2 = { 1.0f, 9.0f};
26 float2 res2 = clamp(src2, min2, max2);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dfisheye_approx.rsh20 static float2 center, neg_center, inv_dimensions, axis_scale;
31 axis_scale = (float2)1.f;
47 const float2 inCoord = {(float)x, (float)y};
48 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
49 const float2 scaledCoord = axis_scale * coord;
54 const float2 new_coord = mad(coord, scalar, center);
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dfisheye_approx_f.rsh20 static float2 center, neg_center, inv_dimensions, axis_scale;
33 axis_scale = (float2)1.f;
49 const float2 inCoord = {(float)x, (float)y};
50 const float2 coord = mad(inCoord, inv_dimensions, neg_center);
51 const float2 scaledCoord = axis_scale * coord;
56 const float2 new_coord = mad(coord, scalar, center);

123456