/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/ |
H A D | ColorUtilsTest.java | 172 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/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | find_region.rs | 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;
|
H A D | healing.rs | 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;
|
/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/ |
H A D | sample.rs | 40 out->xyz = convert_uchar3(rsSample(sourceAlloc, allocSampler, uv * 2.0f).xyz * 255.0f);
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | vr.rs | 47 s = rsMatrixMultiply(&matrix4, (float3) {0.5f, 0.5f, 0.5f}).xyz;
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | levels.rsh | 32 out.xyz = convert_uchar3(pixel);
|
H A D | threshold.rs | 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_jb/src/com/android/rs/image/ |
H A D | levels.rsh | 32 out.xyz = convert_uchar3(pixel);
|
H A D | threshold.rs | 84 blurredPixel += i.xyz * gaussian[gi++]; 90 blurredPixel += i.xyz * gaussian[gi++]; 94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f));
|
H A D | threshold_half.rs | 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));
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicBlend.cpp | 266 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/rs/driver/runtime/ |
H A D | rs_cl.c | 1310 t.xyz = v; 1311 return native_exp2(t).xyz;
|
H A D | rs_matrix.c | 354 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...] |
H A D | rs_sample.c | 368 result.xyz = getElementAt565(p, iPixel); 370 result.xyz = getElementAt3(p, iPixel); 374 result.xyz = getElementAt1(p, iPixel); 406 result.xyz = getElementAt565(p, stride, iPixel.x, iPixel.y); 408 result.xyz = getElementAt3(p, stride, iPixel.x, iPixel.y);
|
/frameworks/rs/script_api/include/ |
H A 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) [all...] |
/frameworks/rs/script_api/ |
H A 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) [all...] |
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
H A D | canny.rs | 92 ushort3 v = convert_ushort3(rsGetElementAt_uchar4(a, x, y).xyz);
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | find_region.rs | 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;
|
H A D | healing.rs | 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;
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | levels.rsh | 32 out.xyz = convert_uchar3(pixel);
|
H A D | threshold.rs | 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/include/ui/ |
H A D | ColorSpace.h | 170 constexpr float3 xyzToRGB(const float3& xyz) const noexcept { 171 return apply(fromLinear(mXYZtoRGB * xyz), mClamper);
|
/frameworks/native/libs/math/include/math/ |
H A D | TQuatHelpers.h | 96 // 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...] |
H A D | mat4.h | 293 return r.xyz / r.w; 299 return { vertice.xyz / vertice.w, 1 }; 306 return TMat33<T>(m_value[0].xyz, m_value[1].xyz, m_value[2].xyz);
|
H A D | quat.h | 68 TVec3<T> xyz; member in union:android::details::TQuaternion::__anon1646
|