/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | nbody.rscript | 42 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/ |
D | rs_matrix.c | 354 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/ |
D | Color.cpp | 191 float3 xyz = colorSpace.rgbToXYZ(rgb); in sRGBToLab() local 193 xyz = adaptation(BRADFORD, srcXYZ, ILLUMINANT_D50_XYZ) * xyz; in sRGBToLab() 194 return LabColorSpace::fromXyz(xyz); in sRGBToLab() 199 float3 xyz = LabColorSpace::toXyz(lab); in LabToSRGB() local 201 xyz = adaptation(BRADFORD, ILLUMINANT_D50_XYZ, dstXYZ) * xyz; in LabToSRGB() 202 float3 rgb = colorSpace.xyzToRGB(xyz); in LabToSRGB()
|
/frameworks/native/libs/math/tests/ |
D | quat_test.cpp | 71 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()
|
D | half_test.cpp | 88 half3 h3(f4.xyz); in TEST_F() 92 EXPECT_EQ(f4.xyz, h3); in TEST_F()
|
D | vec_test.cpp | 33 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/ |
D | rs_matrix.spec | 93 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/ |
D | TQuatHelpers.h | 211 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()
|
D | mat4.h | 293 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/script_api/include/ |
D | rs_matrix.rsh | 102 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/ |
D | rsCpuIntrinsicBlend.cpp | 266 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/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | healing.rscript | 88 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;
|
D | find_region.rscript | 91 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/ |
D | healing.rscript | 40 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;
|
D | find_region.rscript | 51 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/ |
D | sample.rscript | 40 out->xyz = convert_uchar3(rsSample(sourceAlloc, allocSampler, uv * 2.0f).xyz * 255.0f);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | threshold_half.rscript | 84 blurredPixel += i.xyz * gaussian[gi++]; 90 blurredPixel += i.xyz * gaussian[gi++]; 94 out.xyz = convert_uchar3(clamp(blurredPixel, (half) 0.f, (half) 255.f));
|
D | threshold.rscript | 84 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/ |
D | threshold.rscript | 84 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/ |
D | threshold.rscript | 84 blurredPixel += i.xyz * gaussian[gi++]; 90 blurredPixel += i.xyz * gaussian[gi++]; 94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
|
/frameworks/native/services/sensorservice/ |
D | Fusion.cpp | 477 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/layoutlib/bridge/src/android/graphics/ |
D | ColorSpace_Rgb_Delegate.java | 49 float e, float f, float g, float[] xyz) { in nativeCreate() argument
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | ColorSpace.h | 170 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/ |
D | ColorSpace.h | 170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept { in xyzToRGB() argument 171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper); in xyzToRGB()
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorSpace.java | 1098 float[] xyz = new float[mModel.getComponentCount()]; in fromXyz() local 1099 xyz[0] = x; in fromXyz() 1100 xyz[1] = y; in fromXyz() 1101 xyz[2] = z; in fromXyz() 1102 return fromXyz(xyz); in fromXyz() 1337 float[] xyz = whitePoint.length == 3 ? in adapt() local 1340 xyYToXyz(rgb.getWhitePoint()), xyz); in adapt() 1362 float[] xyz = xyYToXyz(desired); in adaptToIlluminantD50() local 1364 xyYToXyz(origWhitePoint), xyz); in adaptToIlluminantD50() 2366 float e, float f, float g, float[] xyz); in nativeCreate() argument [all …]
|