/external/skia/src/opts/ |
D | SkColorCubeFilter_opts.h | 62 Sk4f sum = SkNx_cast<float>(Sk4b::Load(&lutColor00)) * g0b0; in color_cube_filter_span() 63 sum = sum + SkNx_cast<float>(Sk4b::Load(&lutColor01)) * g0b1; in color_cube_filter_span() 64 sum = sum + SkNx_cast<float>(Sk4b::Load(&lutColor10)) * g1b0; in color_cube_filter_span() 65 sum = sum + SkNx_cast<float>(Sk4b::Load(&lutColor11)) * g1b1; in color_cube_filter_span() 77 SkNx_cast<uint8_t>(color).store(dstBytes); in color_cube_filter_span()
|
D | SkNx_sse.h | 291 template<> /*static*/ inline Sk4f SkNx_cast<float, int>(const Sk4i& src) { 295 template <> /*static*/ inline Sk4i SkNx_cast<int, float>(const Sk4f& src) { 299 template<> /*static*/ inline Sk4h SkNx_cast<uint16_t, float>(const Sk4f& src) { 313 template<> /*static*/ inline Sk4b SkNx_cast<uint8_t, float>(const Sk4f& src) { 324 template<> /*static*/ inline Sk4f SkNx_cast<float, uint8_t>(const Sk4b& src) { 335 template<> /*static*/ inline Sk4f SkNx_cast<float, uint16_t>(const Sk4h& src) { 349 template<> /*static*/ inline Sk4h SkNx_cast<uint16_t, uint8_t>(const Sk4b& src) { 353 template<> /*static*/ inline Sk4b SkNx_cast<uint8_t, uint16_t>(const Sk4h& src) {
|
D | SkNx_neon.h | 363 template<> inline Sk4h SkNx_cast<uint16_t, float>(const Sk4f& src) { 367 template<> inline Sk4f SkNx_cast<float, uint16_t>(const Sk4h& src) { 371 template<> inline Sk4b SkNx_cast<uint8_t, float>(const Sk4f& src) { 377 template<> inline Sk4f SkNx_cast<float, uint8_t>(const Sk4b& src) { 391 template<> inline Sk4h SkNx_cast<uint16_t, uint8_t>(const Sk4b& src) { 395 template<> inline Sk4b SkNx_cast<uint8_t, uint16_t>(const Sk4h& src) {
|
D | SkXfermode_opts.h | 302 return SkNx_cast<float>(Sk4b::Load(&c)) * Sk4f(1.0f/255); in Load() 307 SkNx_cast<uint8_t>(f * Sk4f(255) + Sk4f(0.5f)).store(&c); in Round()
|
/external/skia/src/core/ |
D | SkNx.h | 165 static inline SkNx<2,D> SkNx_cast(const SkNx<2,S>& src) { in SkNx_cast() function 170 static inline SkNx<4,D> SkNx_cast(const SkNx<4,S>& src) { in SkNx_cast() function 175 static inline SkNx<8,D> SkNx_cast(const SkNx<8,S>& src) { in SkNx_cast() function 181 static inline SkNx<16,D> SkNx_cast(const SkNx<16,S>& src) { in SkNx_cast() function 209 SkNx_cast<uint8_t>(a).store(p+ 0); in Sk4f_ToBytes() 210 SkNx_cast<uint8_t>(b).store(p+ 4); in Sk4f_ToBytes() 211 SkNx_cast<uint8_t>(c).store(p+ 8); in Sk4f_ToBytes() 212 SkNx_cast<uint8_t>(d).store(p+12); in Sk4f_ToBytes()
|
D | SkPM4fPriv.h | 23 SkNx_cast<uint8_t>(f4).store((uint8_t*)&b4); in to_4b() 28 return SkNx_cast<float>(Sk4b::Load((const uint8_t*)&b4)); in to_4f()
|
D | SkSpanProcs.cpp | 25 (SkNx_cast<float>(Sk4b::Load(&addr[i])) * Sk4f(1.0f/255)).store(span[i].fVec); in load_l32() 35 srgb_to_linear(SkNx_cast<float>(Sk4b::Load(&addr[i])) * Sk4f(1.0f/255)).store(span[i].fVec); in load_s32()
|
D | SkColor.cpp | 110 Sk4f value = SkNx_cast<float>(Sk4b::Load(&c)); in FromPMColor() 157 Sk4f value = SkNx_shuffle<3,2,1,0>(SkNx_cast<float>(Sk4b::Load(&c))); in FromColor()
|
D | SkLinearBitmapPipeline.cpp | 485 Sk4i XIs = SkNx_cast<int, float>(xs); in getFewPixels() 486 Sk4i YIs = SkNx_cast<int, float>(ys); in getFewPixels() 501 Sk4i XIs = SkNx_cast<int, float>(xs); in get4Pixels() 502 Sk4i YIs = SkNx_cast<int, float>(ys); in get4Pixels() 515 Sk4f pixel = SkNx_cast<float, uint8_t>(bytePixel); in getPixel()
|
D | SkXfermodeU64.cpp | 38 return SkNx_cast<float>(Sk4h::Load(&value)); in load_from_u16() 44 SkNx_cast<uint16_t>(x4 + Sk4f(0.5f)).store(&value); in store_to_u16()
|
D | SkXfermode4f.cpp | 166 Sk4f aa4 = SkNx_cast<float>(Sk4b::Load(aa)) * Sk4f(1/255.f); in src_1() 179 Sk4f aa4 = SkNx_cast<float>(Sk4b::Load(aa)) * Sk4f(1/255.0f); in src_1() 384 return SkNx_cast<float>(rgbi) * Sk4f(1.0f/31, 1.0f/63, 1.0f/31, 0); in lcd16_to_unit_4f()
|
D | SkColorMatrixFilterRowMajor255.cpp | 82 SkNx_cast<uint8_t>(x * Sk4f(255) + Sk4f(0.5f)).store(&c); in round() 128 return SkNx_cast<float>(Sk4b::Load(&c)) * Sk4f(1.0f/255); in To4f()
|
D | SkMipMap.cpp | 26 return SkNx_cast<uint16_t>(Sk4b::Load(&x)); in Expand() 30 SkNx_cast<uint8_t>(x).store(&r); in Compact()
|
D | SkColorFilter.cpp | 40 SkNx_cast<uint8_t>(Sk4f::Load(span[i].fVec) * Sk4f(255) + Sk4f(0.5f)).store(&tmp[i]); in filterSpan4f()
|
D | SkBitmap.cpp | 612 SkNx_cast<uint8_t>(p4 * Sk4f(255) + Sk4f(0.5f)).store(&c); in getColor()
|
/external/skia/tests/ |
D | SkNxTest.cpp | 243 Sk4i i = SkNx_cast<int>(f); in DEF_TEST() 249 f = SkNx_cast<float>(i); in DEF_TEST() 262 auto f4 = SkNx_cast<float>(h4); in DEF_TEST() 271 auto h4 = SkNx_cast<uint16_t>(f4); in DEF_TEST() 287 auto f4 = SkNx_cast<float>(u4_0); in DEF_TEST() 288 auto u4_1 = SkNx_cast<uint16_t>(f4); in DEF_TEST()
|
/external/skia/bench/ |
D | Sk4fBench.cpp | 34 fs = SkNx_cast<float>(SkNx_cast<T>(fs)); in onDraw()
|
/external/skia/src/effects/gradients/ |
D | Sk4fGradientBase.cpp | 39 const Sk4f c4f0 = SkNx_cast<float>(Sk4b::Load(&c0)) * componentScale; in Interval() 40 const Sk4f c4f1 = SkNx_cast<float>(Sk4b::Load(&c1)) * componentScale; in Interval()
|
D | SkRadialGradient.cpp | 137 SkNx_cast<uint8_t>(dist).store(fi); in shadeSpan_radial_clamp2() 149 SkNx_cast<uint8_t>(dist).store(fi); in shadeSpan_radial_clamp2()
|
D | SkLinearGradient.cpp | 159 rec[i].fColor = SkNx_cast<float>(Sk4b::Load(&c)) * scale; in LinearGradientContext() 171 rec[i].fColor = SkNx_cast<float>(Sk4b::Load(&pmc)); in LinearGradientContext() 540 SkNx_cast<uint8_t>(x).store(&c); in trunc_from_255()
|
D | Sk4fLinearGradient.cpp | 21 SkNx_cast<uint8_t>(c).store(&pmc); in trunc_from_255()
|