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.rscript42 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/base/core/java/com/android/internal/graphics/cam/
DFrame.java132 float[] xyz = whitepoint; in make() local
133 float rW = (xyz[0] * matrix[0][0]) + (xyz[1] * matrix[0][1]) + (xyz[2] * matrix[0][2]); in make()
134 float gW = (xyz[0] * matrix[1][0]) + (xyz[1] * matrix[1][1]) + (xyz[2] * matrix[1][2]); in make()
135 float bW = (xyz[0] * matrix[2][0]) + (xyz[1] * matrix[2][1]) + (xyz[2] * matrix[2][2]); in make()
DCam.java154 float[] xyz = CamUtils.xyzFromInt(argb); in fromIntInFrame() local
158 float rT = (xyz[0] * matrix[0][0]) + (xyz[1] * matrix[0][1]) + (xyz[2] * matrix[0][2]); in fromIntInFrame()
159 float gT = (xyz[0] * matrix[1][0]) + (xyz[1] * matrix[1][1]) + (xyz[2] * matrix[1][2]); in fromIntInFrame()
160 float bT = (xyz[0] * matrix[2][0]) + (xyz[1] * matrix[2][1]) + (xyz[2] * matrix[2][2]); in fromIntInFrame()
/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/base/libs/hwui/utils/
DColor.cpp342 float3 xyz = colorSpace.rgbToXYZ(rgb); in sRGBToLab() local
344 xyz = adaptation(BRADFORD, srcXYZ, ILLUMINANT_D50_XYZ) * xyz; in sRGBToLab()
345 return LabColorSpace::fromXyz(xyz); in sRGBToLab()
350 float3 xyz = LabColorSpace::toXyz(lab); in LabToSRGB() local
352 xyz = adaptation(BRADFORD, ILLUMINANT_D50_XYZ, dstXYZ) * xyz; in LabToSRGB()
353 float3 rgb = colorSpace.xyzToRGB(xyz); in LabToSRGB()
/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.cpp89 half3 h3(f4.xyz); in TEST_F()
93 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/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()
/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/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dhealing.rscript88 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.rscript91 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/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dhealing.rscript40 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.rscript51 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/tests/java_api/SampleTest/src/com/android/rs/sample/
Dsample.rscript40 out->xyz = convert_uchar3(rsSample(sourceAlloc, allocSampler, uv * 2.0f).xyz * 255.0f);
/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/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold_half.rscript84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, (half) 0.f, (half) 255.f));
Dthreshold.rscript84 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/src/com/android/rs/image/
Dthreshold.rscript84 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.rscript84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
/frameworks/layoutlib/bridge/src/android/graphics/
DColorSpace_Rgb_Delegate.java49 float e, float f, float g, float[] xyz) { in nativeCreate() argument
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java1099 float[] xyz = new float[mModel.getComponentCount()]; in fromXyz() local
1100 xyz[0] = x; in fromXyz()
1101 xyz[1] = y; in fromXyz()
1102 xyz[2] = z; in fromXyz()
1103 return fromXyz(xyz); in fromXyz()
1338 float[] xyz = whitePoint.length == 3 ? in adapt() local
1341 xyYToXyz(rgb.getWhitePoint()), xyz); in adapt()
1363 float[] xyz = xyYToXyz(desired); in adaptToIlluminantD50() local
1365 xyYToXyz(origWhitePoint), xyz); in adaptToIlluminantD50()
2302 float e, float f, float g, float[] xyz); in nativeCreate() argument
[all …]
/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()

12