Searched refs:xyz (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/
H A Dsample.rs40 out->xyz = convert_uchar3(rsSample(sourceAlloc, allocSampler, uv * 2.0f).xyz * 255.0f);
/frameworks/rs/script_api/include/
H A 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)
[all...]
/frameworks/rs/driver/runtime/
H A Drs_matrix.c354 float len = length(left->xyz);
356 len = length(right->xyz);
358 len = length(top->xyz);
360 len = length(bottom->xyz);
362 len = length(near->xyz);
364 len = length(far->xyz);
371 float distToCenter = dot(left->xyz, sphere->xyz) + left->w;
375 distToCenter = dot(right->xyz, sphere->xyz)
[all...]
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
H A DColorUtilsTest.java172 verifyColorToXYZ(entry.rgb, entry.xyz);
186 verifyLABToXYZ(entry.lab, entry.xyz);
193 verifyXYZToColor(entry.xyz, entry.rgb);
298 private static void verifyXYZToColor(double[] xyz, int expected) { argument
299 final int result = ColorUtils.XYZToColor(xyz[0], xyz[1], xyz[2]);
319 final double[] xyz = new double[3]; field in class:ColorUtilsTest.TestEntry
339 xyz[0] = x;
340 xyz[
[all...]
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A 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;
H A 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/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A Dthreshold.rs84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
H A Dlevels.rsh32 out.xyz = convert_uchar3(pixel);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A Dthreshold.rs84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
H A Dlevels.rsh32 out.xyz = convert_uchar3(pixel);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A Dthreshold.rs84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
H A 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));
H A Dlevels.rsh32 out.xyz = convert_uchar3(pixel);
/frameworks/native/libs/math/include/math/
H A DTQuatHelpers.h96 // q.w*r.w - dot(q.xyz, r.xyz),
97 // q.w*r.xyz + r.w*q.xyz + cross(q.xyz, r.xyz));
110 // TVec3<T> t = 2 * cross(q.xyz, v)
111 // return v + (q.w * t) + cross(q.xyz, t)
211 return q.xyz;
216 return QUATERNION<T>(q.xyz,
[all...]
/frameworks/native/libs/math/tests/
H A Dhalf_test.cpp88 half3 h3(f4.xyz);
92 EXPECT_EQ(f4.xyz, h3);
H A Dquat_test.cpp71 quatd q4(q3.xyz, 42);
123 q0.xyz = double3(1, 2, 3);
291 quatd ab_other(a.w * b.xyz + b.w * a.xyz + cross(a.xyz, b.xyz),
292 (a.w * b.w) - dot(a.xyz, b.xyz));
H A Dvec_test.cpp33 vec3& v3(v4.xyz);
66 vec4 v4(v3.xyz, 42);
106 v0.xyz = vec3(1, 2, 3);
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A 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;
H A 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/
H A 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)
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlend.cpp266 out_s.xyz = ((in_s.xyz * out_s.w) +
267 (out_s.xyz * ((short3)255 - (short3)in_s.w))) >> (short3)8;
286 out_s.xyz = ((out_s.xyz * in_s.w) +
287 (in_s.xyz * ((short3)255 - (short3)out_s.w))) >> (short3)8;
/frameworks/native/services/sensorservice/
H A DFusion.cpp420 // F = | [q.xyz]x |
421 // | -q.xyz |
477 O[0].xyz = O33[0]; O[0].w = -psi.x;
478 O[1].xyz = O33[1]; O[1].w = -psi.y;
479 O[2].xyz = O33[2]; O[2].w = -psi.z;
480 O[3].xyz = psi; O[3].w = k2;
/frameworks/native/include/ui/
H A DColorSpace.h170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept {
171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper);
/frameworks/native/libs/ui/include/ui/
H A DColorSpace.h170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept {
171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper);
/frameworks/native/libs/ui/include_vndk/ui/
H A DColorSpace.h170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept {
171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper);

Completed in 126 milliseconds

12