HomeSort by relevance Sort by last modified time
    Searched refs:SkNx_cast (Results 1 - 21 of 21) sorted by null

  /external/skia/src/opts/
SkColorCubeFilter_opts.h 62 Sk4f sum = SkNx_cast<float>(Sk4b::Load(&lutColor00)) * g0b0;
63 sum = sum + SkNx_cast<float>(Sk4b::Load(&lutColor01)) * g0b1;
64 sum = sum + SkNx_cast<float>(Sk4b::Load(&lutColor10)) * g1b0;
65 sum = sum + SkNx_cast<float>(Sk4b::Load(&lutColor11)) * g1b1;
77 SkNx_cast<uint8_t>(color).store(dstBytes);
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) {
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) {
SkXfermode_opts.h 302 return SkNx_cast<float>(Sk4b::Load(&c)) * Sk4f(1.0f/255);
307 SkNx_cast<uint8_t>(f * Sk4f(255) + Sk4f(0.5f)).store(&c);
  /external/skia/src/core/
SkPM4fPriv.h 23 SkNx_cast<uint8_t>(f4).store((uint8_t*)&b4);
28 return SkNx_cast<float>(Sk4b::Load((const uint8_t*)&b4));
SkNx.h 162 // Sk4f fs = SkNx_cast<float>(bs); // Cast each byte to a float.
163 // Sk4h hs = SkNx_cast<uint16_t>(fs); // Cast each float to uint16_t.
165 static inline SkNx<2,D> SkNx_cast(const SkNx<2,S>& src) {
170 static inline SkNx<4,D> SkNx_cast(const SkNx<4,S>& src) {
175 static inline SkNx<8,D> SkNx_cast(const SkNx<8,S>& src) {
181 static inline SkNx<16,D> SkNx_cast(const SkNx<16,S>& src) {
209 SkNx_cast<uint8_t>(a).store(p+ 0);
210 SkNx_cast<uint8_t>(b).store(p+ 4);
211 SkNx_cast<uint8_t>(c).store(p+ 8);
212 SkNx_cast<uint8_t>(d).store(p+12)
    [all...]
SkSpanProcs.cpp 25 (SkNx_cast<float>(Sk4b::Load(&addr[i])) * Sk4f(1.0f/255)).store(span[i].fVec);
35 srgb_to_linear(SkNx_cast<float>(Sk4b::Load(&addr[i])) * Sk4f(1.0f/255)).store(span[i].fVec);
SkColor.cpp 110 Sk4f value = SkNx_cast<float>(Sk4b::Load(&c));
157 Sk4f value = SkNx_shuffle<3,2,1,0>(SkNx_cast<float>(Sk4b::Load(&c)));
SkColorFilter.cpp 40 SkNx_cast<uint8_t>(Sk4f::Load(span[i].fVec) * Sk4f(255) + Sk4f(0.5f)).store(&tmp[i]);
SkLinearBitmapPipeline.cpp 485 Sk4i XIs = SkNx_cast<int, float>(xs);
486 Sk4i YIs = SkNx_cast<int, float>(ys);
501 Sk4i XIs = SkNx_cast<int, float>(xs);
502 Sk4i YIs = SkNx_cast<int, float>(ys);
515 Sk4f pixel = SkNx_cast<float, uint8_t>(bytePixel);
SkXfermode4f.cpp 166 Sk4f aa4 = SkNx_cast<float>(Sk4b::Load(aa)) * Sk4f(1/255.f);
179 Sk4f aa4 = SkNx_cast<float>(Sk4b::Load(aa)) * Sk4f(1/255.0f);
384 return SkNx_cast<float>(rgbi) * Sk4f(1.0f/31, 1.0f/63, 1.0f/31, 0);
SkColorMatrixFilterRowMajor255.cpp 82 SkNx_cast<uint8_t>(x * Sk4f(255) + Sk4f(0.5f)).store(&c);
128 return SkNx_cast<float>(Sk4b::Load(&c)) * Sk4f(1.0f/255);
SkMipMap.cpp 26 return SkNx_cast<uint16_t>(Sk4b::Load(&x));
30 SkNx_cast<uint8_t>(x).store(&r);
SkXfermodeU64.cpp 38 return SkNx_cast<float>(Sk4h::Load(&value));
44 SkNx_cast<uint16_t>(x4 + Sk4f(0.5f)).store(&value);
SkBitmap.cpp 612 SkNx_cast<uint8_t>(p4 * Sk4f(255) + Sk4f(0.5f)).store(&c);
    [all...]
  /external/skia/bench/
Sk4fBench.cpp 34 fs = SkNx_cast<float>(SkNx_cast<T>(fs));
  /external/skia/tests/
SkNxTest.cpp 243 Sk4i i = SkNx_cast<int>(f);
249 f = SkNx_cast<float>(i);
262 auto f4 = SkNx_cast<float>(h4);
271 auto h4 = SkNx_cast<uint16_t>(f4);
287 auto f4 = SkNx_cast<float>(u4_0);
288 auto u4_1 = SkNx_cast<uint16_t>(f4);
  /external/skia/src/effects/gradients/
Sk4fGradientBase.cpp 39 const Sk4f c4f0 = SkNx_cast<float>(Sk4b::Load(&c0)) * componentScale;
40 const Sk4f c4f1 = SkNx_cast<float>(Sk4b::Load(&c1)) * componentScale;
SkRadialGradient.cpp 137 SkNx_cast<uint8_t>(dist).store(fi);
149 SkNx_cast<uint8_t>(dist).store(fi);
SkLinearGradient.cpp 159 rec[i].fColor = SkNx_cast<float>(Sk4b::Load(&c)) * scale;
171 rec[i].fColor = SkNx_cast<float>(Sk4b::Load(&pmc));
540 SkNx_cast<uint8_t>(x).store(&c);
Sk4fLinearGradient.cpp 21 SkNx_cast<uint8_t>(c).store(&pmc);

Completed in 632 milliseconds