Home
last modified time | relevance | path

Searched refs:xyz (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
Dnbody.rs42 v.xyz *= INITAL_DIR;
44 v.xyz = cross(point.xyz, v.xyz);
60 float3 dir = mass.xyz - in.xyz;
61 float dist = distance(mass.xyz, in.xyz);
72 out.xyz = mad(acc, half_dt, mad(v.xyz, dt, in.xyz));
73 v.xyz += acc;
78 normv.xyz = normalize(v.xyz) * TSIZE * 2.f;
85 p.xyz = out.xyz;
/frameworks/rs/driver/runtime/
Drs_matrix.c354 float len = length(left->xyz); in rsExtractFrustumPlanes()
356 len = length(right->xyz); in rsExtractFrustumPlanes()
358 len = length(top->xyz); in rsExtractFrustumPlanes()
360 len = length(bottom->xyz); in rsExtractFrustumPlanes()
362 len = length(near->xyz); in rsExtractFrustumPlanes()
364 len = length(far->xyz); in rsExtractFrustumPlanes()
371 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; in rsIsSphereInFrustum()
375 distToCenter = dot(right->xyz, sphere->xyz) + right->w; in rsIsSphereInFrustum()
379 distToCenter = dot(top->xyz, sphere->xyz) + top->w; in rsIsSphereInFrustum()
383 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w; in rsIsSphereInFrustum()
[all …]
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
DColorUtilsTest.java172 verifyColorToXYZ(entry.rgb, entry.xyz); in testColorToXYZ()
186 verifyLABToXYZ(entry.lab, entry.xyz); in testLABToXYZ()
193 verifyXYZToColor(entry.xyz, entry.rgb); in testXYZToColor()
298 private static void verifyXYZToColor(double[] xyz, int expected) { in verifyXYZToColor() argument
299 final int result = ColorUtils.XYZToColor(xyz[0], xyz[1], xyz[2]); in verifyXYZToColor()
319 final double[] xyz = new double[3]; field in ColorUtilsTest.TestEntry
339 xyz[0] = x; in setXyz()
340 xyz[1] = y; in setXyz()
341 xyz[2] = z; in setXyz()
/frameworks/native/libs/math/tests/
Dquat_test.cpp71 quatd q4(q3.xyz, 42); in TEST_F()
123 q0.xyz = double3(1, 2, 3); in TEST_F()
291 quatd ab_other(a.w * b.xyz + b.w * a.xyz + cross(a.xyz, b.xyz), in TEST_F()
292 (a.w * b.w) - dot(a.xyz, b.xyz)); in TEST_F()
Dhalf_test.cpp88 half3 h3(f4.xyz); in TEST_F()
92 EXPECT_EQ(f4.xyz, h3); in TEST_F()
Dvec_test.cpp33 vec3& v3(v4.xyz); in TEST_F()
66 vec4 v4(v3.xyz, 42); in TEST_F()
106 v0.xyz = vec3(1, 2, 3); in TEST_F()
/frameworks/rs/script_api/
Drs_matrix.spec93 float len = length(left->xyz);
95 len = length(right->xyz);
97 len = length(top->xyz);
99 len = length(bottom->xyz);
101 len = length(near->xyz);
103 len = length(far->xyz);
137 float distToCenter = dot(left->xyz, sphere->xyz) + left->w;
141 distToCenter = dot(right->xyz, sphere->xyz) + right->w;
145 distToCenter = dot(top->xyz, sphere->xyz) + top->w;
149 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w;
[all …]
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dhealing.rs88 return convert_float3(in.xyz);
141 return convert_float3(rsGetElementAt_uchar4(image, in.x, in.y).xyz);
148 float3 orig = convert_float3(rsGetElementAt_uchar4(image, coord.x + x, coord.y + y).xyz);
149 float3 candidate = rsGetElementAt_float3(border, i).xyz;
Dfind_region.rs91 return convert_float3(rsGetElementAt_uchar4(image, in.x, in.y).xyz);
146 float3 orig = convert_float3(rsGetElementAt_uchar4(image, coord.x + dx, coord.y + dy).xyz);
147 float3 candidate = rsGetElementAt_float3(border_values, i).xyz;
/frameworks/native/libs/math/include/math/
DTQuatHelpers.h211 return q.xyz; in imaginary()
216 return QUATERNION<T>(q.xyz, 0); in unreal()
226 const T nq(norm(q.xyz)); in exp()
227 return std::exp(q.w)*QUATERNION<T>((sin(nq)/nq)*q.xyz, cos(nq)); in exp()
233 return QUATERNION<T>((std::acos(q.w/nq)/norm(q.xyz))*q.xyz, log(nq)); in log()
241 return std::pow(nq, a) * QUATERNION<T>(normalize(q.xyz) * std::sin(theta), std::cos(theta)); in pow()
Dmat4.h293 return r.xyz / r.w; in project()
299 return { vertice.xyz / vertice.w, 1 }; in project()
306 return TMat33<T>(m_value[0].xyz, m_value[1].xyz, m_value[2].xyz); in upperLeft()
/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/
Dsample.rs40 out->xyz = convert_uchar3(rsSample(sourceAlloc, allocSampler, uv * 2.0f).xyz * 255.0f);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dthreshold.rs84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dthreshold.rs84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold.rs84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
Dthreshold_half.rs84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, (half) 0.f, (half) 255.f));
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dhealing.rs40 return convert_float3(in.xyz);
93 return convert_float3(rsGetElementAt_uchar4(image, in.x, in.y).xyz);
101 rsGetElementAt_uchar4(image, coord.x + x, coord.y + y).xyz);
102 float3 candidate = rsGetElementAt_float3(border, i).xyz;
Dfind_region.rs51 return convert_float3(rsGetElementAt_uchar4(mImage, in.x, in.y).xyz);
98 convert_float3(rsGetElementAt_uchar4(mImage, coord.x, coord.y).xyz);
99 float3 candidate = rsGetElementAt_float3(mBorderValues, i).xyz;
/frameworks/rs/script_api/include/
Drs_matrix.rsh102 float len = length(left->xyz);
104 len = length(right->xyz);
106 len = length(top->xyz);
108 len = length(bottom->xyz);
110 len = length(near->xyz);
112 len = length(far->xyz);
141 float distToCenter = dot(left->xyz, sphere->xyz) + left->w;
145 distToCenter = dot(right->xyz, sphere->xyz) + right->w;
149 distToCenter = dot(top->xyz, sphere->xyz) + top->w;
153 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w;
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlend.cpp266 out_s.xyz = ((in_s.xyz * out_s.w) + in kernel()
267 (out_s.xyz * ((short3)255 - (short3)in_s.w))) >> (short3)8; in kernel()
286 out_s.xyz = ((out_s.xyz * in_s.w) + in kernel()
287 (in_s.xyz * ((short3)255 - (short3)out_s.w))) >> (short3)8; in kernel()
/frameworks/native/services/sensorservice/
DFusion.cpp477 O[0].xyz = O33[0]; O[0].w = -psi.x; in predict()
478 O[1].xyz = O33[1]; O[1].w = -psi.y; in predict()
479 O[2].xyz = O33[2]; O[2].w = -psi.z; in predict()
480 O[3].xyz = psi; O[3].w = k2; in predict()
/frameworks/native/libs/ui/include_vndk/ui/
DColorSpace.h170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept { in xyzToRGB() argument
171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper); in xyzToRGB()
/frameworks/native/libs/ui/include/ui/
DColorSpace.h170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept { in xyzToRGB() argument
171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper); in xyzToRGB()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp1293 jfloat* xyz = env->GetFloatArrayElements(xyzArray, NULL); in Bitmap_getColorSpace() local
1294 xyz[0] = xyzMatrix.getFloat(0, 0); in Bitmap_getColorSpace()
1295 xyz[1] = xyzMatrix.getFloat(1, 0); in Bitmap_getColorSpace()
1296 xyz[2] = xyzMatrix.getFloat(2, 0); in Bitmap_getColorSpace()
1297 xyz[3] = xyzMatrix.getFloat(0, 1); in Bitmap_getColorSpace()
1298 xyz[4] = xyzMatrix.getFloat(1, 1); in Bitmap_getColorSpace()
1299 xyz[5] = xyzMatrix.getFloat(2, 1); in Bitmap_getColorSpace()
1300 xyz[6] = xyzMatrix.getFloat(0, 2); in Bitmap_getColorSpace()
1301 xyz[7] = xyzMatrix.getFloat(1, 2); in Bitmap_getColorSpace()
1302 xyz[8] = xyzMatrix.getFloat(2, 2); in Bitmap_getColorSpace()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java1092 float[] xyz = new float[mModel.getComponentCount()]; in fromXyz() local
1093 xyz[0] = x; in fromXyz()
1094 xyz[1] = y; in fromXyz()
1095 xyz[2] = z; in fromXyz()
1096 return fromXyz(xyz); in fromXyz()
1331 float[] xyz = whitePoint.length == 3 ? in adapt() local
1334 xyYToXyz(rgb.getWhitePoint()), xyz); in adapt()
3578 float[] xyz = mTransformSource.toXyz(v); in transform() local
3580 xyz[0] *= mTransform[0]; in transform()
3581 xyz[1] *= mTransform[1]; in transform()
[all …]

12