Home
last modified time | relevance | path

Searched refs:SkPMColor (Results 1 – 25 of 217) sorted by relevance

123456789

/external/skia/src/opts/
DSkXfermode_opts_arm_neon.h12 void xfer32(SkPMColor dst[], const SkPMColor src[], int count,
14 void xfer16(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src,
26 extern SkPMColor srcatop_modeproc_neon(SkPMColor src, SkPMColor dst);
27 extern SkPMColor dstatop_modeproc_neon(SkPMColor src, SkPMColor dst);
28 extern SkPMColor xor_modeproc_neon(SkPMColor src, SkPMColor dst);
29 extern SkPMColor plus_modeproc_neon(SkPMColor src, SkPMColor dst);
30 extern SkPMColor modulate_modeproc_neon(SkPMColor src, SkPMColor dst);
DSkBlitRow_opts_SSE2.h13 void S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
14 const SkPMColor* SK_RESTRICT src,
17 void S32A_Opaque_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
18 const SkPMColor* SK_RESTRICT src,
21 void S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
22 const SkPMColor* SK_RESTRICT src,
25 void Color32A_D565_SSE2(uint16_t dst[], SkPMColor src, int count, int x,
32 void SkBlitLCD16Row_SSE2(SkPMColor dst[], const uint16_t src[],
33 SkColor color, int width, SkPMColor);
34 void SkBlitLCD16OpaqueRow_SSE2(SkPMColor dst[], const uint16_t src[],
[all …]
DSkMorphology_opts_SSE2.cpp25 static void SkMorph_SSE2(const SkPMColor* src, SkPMColor* dst, int radius, in SkMorph_SSE2()
33 const SkPMColor* upperSrc = src + radius * srcStrideX; in SkMorph_SSE2()
35 const SkPMColor* lp = src; in SkMorph_SSE2()
36 const SkPMColor* up = upperSrc; in SkMorph_SSE2()
37 SkPMColor* dptr = dst; in SkMorph_SSE2()
40 for (const SkPMColor* p = lp; p <= up; p += srcStrideX) { in SkMorph_SSE2()
59 void SkDilateX_SSE2(const SkPMColor* src, SkPMColor* dst, int radius, in SkDilateX_SSE2()
65 void SkErodeX_SSE2(const SkPMColor* src, SkPMColor* dst, int radius, in SkErodeX_SSE2()
71 void SkDilateY_SSE2(const SkPMColor* src, SkPMColor* dst, int radius, in SkDilateY_SSE2()
77 void SkErodeY_SSE2(const SkPMColor* src, SkPMColor* dst, int radius, in SkErodeY_SSE2()
DSkMorphology_opts_neon.cpp28 static void SkMorph_neon(const SkPMColor* src, SkPMColor* dst, int radius, in SkMorph_neon()
36 const SkPMColor* upperSrc = src + radius * srcStrideX; in SkMorph_neon()
38 const SkPMColor* lp = src; in SkMorph_neon()
39 const SkPMColor* up = upperSrc; in SkMorph_neon()
40 SkPMColor* dptr = dst; in SkMorph_neon()
43 for (const SkPMColor* p = lp; p <= up; p += srcStrideX) { in SkMorph_neon()
58 void SkDilateX_neon(const SkPMColor* src, SkPMColor* dst, int radius, in SkDilateX_neon()
64 void SkErodeX_neon(const SkPMColor* src, SkPMColor* dst, int radius, in SkErodeX_neon()
70 void SkDilateY_neon(const SkPMColor* src, SkPMColor* dst, int radius, in SkDilateY_neon()
76 void SkErodeY_neon(const SkPMColor* src, SkPMColor* dst, int radius, in SkErodeY_neon()
DSkMorphology_opts_neon.h8 void SkDilateX_neon(const SkPMColor* src, SkPMColor* dst, int radius,
10 void SkDilateY_neon(const SkPMColor* src, SkPMColor* dst, int radius,
12 void SkErodeX_neon(const SkPMColor* src, SkPMColor* dst, int radius,
14 void SkErodeY_neon(const SkPMColor* src, SkPMColor* dst, int radius,
DSkMorphology_opts_SSE2.h13 void SkDilateX_SSE2(const SkPMColor* src, SkPMColor* dst, int radius,
15 void SkDilateY_SSE2(const SkPMColor* src, SkPMColor* dst, int radius,
17 void SkErodeX_SSE2(const SkPMColor* src, SkPMColor* dst, int radius,
19 void SkErodeY_SSE2(const SkPMColor* src, SkPMColor* dst, int radius,
DSkBlurImage_opts_neon.cpp27 inline uint8x8_t load_2_pixels(const SkPMColor* src, int srcStride) { in load_2_pixels()
43 inline void store_2_pixels(uint16x8_t result16x8, SkPMColor* dst, int dstStride) { in store_2_pixels()
58 void SkDoubleRowBoxBlur_NEON(const SkPMColor** src, int srcStride, SkPMColor** dst, int kernelSize, in SkDoubleRowBoxBlur_NEON()
70 const SkPMColor* p = *src; in SkDoubleRowBoxBlur_NEON()
77 const SkPMColor* sptr = *src; in SkDoubleRowBoxBlur_NEON()
78 SkPMColor* dptr = *dst; in SkDoubleRowBoxBlur_NEON()
115 void SkBoxBlur_NEON(const SkPMColor* src, int srcStride, SkPMColor* dst, int kernelSize, in SkBoxBlur_NEON()
134 const SkPMColor* p = src; in SkBoxBlur_NEON()
140 const SkPMColor* sptr = src; in SkBoxBlur_NEON()
141 SkPMColor* dptr = dst; in SkBoxBlur_NEON()
[all …]
DSkPMFloat_none.h8 inline SkPMFloat::SkPMFloat(SkPMColor c) { in SkPMFloat()
16 inline SkPMColor SkPMFloat::trunc() const { in trunc()
20 inline SkPMColor SkPMFloat::round() const { in round()
21 SkPMColor c = SkPackARGB32(this->a()+0.5f, this->r()+0.5f, this->g()+0.5f, this->b()+0.5f); in round()
26 inline SkPMColor SkPMFloat::roundClamp() const { in roundClamp()
35 SkPMColor c = SkPackARGB32(a+0.5f, r+0.5f, g+0.5f, b+0.5f); in roundClamp()
40 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], in From4PMColors()
50 SkPMColor colors[4]) { in RoundTo4PMColors()
59 SkPMColor colors[4]) { in RoundClampTo4PMColors()
DSkPMFloat_neon.h15 inline SkPMFloat::SkPMFloat(SkPMColor c) { in SkPMFloat()
24 inline SkPMColor SkPMFloat::trunc() const { in trunc()
28 SkPMColor c = vget_lane_u32((uint32x2_t)fix8, 0); in trunc()
33 inline SkPMColor SkPMFloat::round() const { in round()
37 inline SkPMColor SkPMFloat::roundClamp() const { in roundClamp()
42 SkPMColor c = vget_lane_u32((uint32x2_t)fix8, 0); in roundClamp()
48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], in From4PMColors()
58 SkPMColor colors[4]) { in RoundTo4PMColors()
67 SkPMColor colors[4]) { in RoundClampTo4PMColors()
DSkPMFloat_SSE2.h15 inline SkPMFloat::SkPMFloat(SkPMColor c) { in SkPMFloat()
24 inline SkPMColor SkPMFloat::round() const { in round()
28 inline SkPMColor SkPMFloat::roundClamp() const { in roundClamp()
33 SkPMColor c = _mm_cvtsi128_si32(fix8); in roundClamp()
38 inline SkPMColor SkPMFloat::trunc() const { in trunc()
43 SkPMColor c = _mm_cvtsi128_si32(fix8); in trunc()
48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], in From4PMColors()
59 SkPMColor colors[4]) { in RoundTo4PMColors()
66 SkPMColor colors[4]) { in RoundClampTo4PMColors()
DSkBitmapProcState_filter_neon.h26 SkPMColor a00, SkPMColor a01, in Filter_32_opaque_neon()
27 SkPMColor a10, SkPMColor a11, in Filter_32_opaque_neon()
28 SkPMColor *dst) { in Filter_32_opaque_neon()
60 SkPMColor a00, SkPMColor a01, in Filter_32_alpha_neon()
61 SkPMColor a10, SkPMColor a11, in Filter_32_alpha_neon()
62 SkPMColor *dst, in Filter_32_alpha_neon()
DSkPMFloat_SSSE3.h16 inline SkPMFloat::SkPMFloat(SkPMColor c) { in SkPMFloat()
25 inline SkPMColor SkPMFloat::trunc() const { in trunc()
29 SkPMColor c = _mm_cvtsi128_si32(fix8); in trunc()
34 inline SkPMColor SkPMFloat::round() const { in round()
38 inline SkPMColor SkPMFloat::roundClamp() const { in roundClamp()
43 SkPMColor c = _mm_cvtsi128_si32(fix8); in roundClamp()
48 inline void SkPMFloat::From4PMColors(const SkPMColor colors[4], in From4PMColors()
59 SkPMColor colors[4]) { in RoundTo4PMColors()
69 SkPMColor colors[4]) { in RoundClampTo4PMColors()
/external/skia/src/core/
DSkXfermode.cpp69 static SkPMColor clear_modeproc(SkPMColor src, SkPMColor dst) { in clear_modeproc()
74 static SkPMColor src_modeproc(SkPMColor src, SkPMColor dst) { in src_modeproc()
79 static SkPMColor dst_modeproc(SkPMColor src, SkPMColor dst) { in dst_modeproc()
84 static SkPMColor srcover_modeproc(SkPMColor src, SkPMColor dst) { in srcover_modeproc()
97 static SkPMColor dstover_modeproc(SkPMColor src, SkPMColor dst) { in dstover_modeproc()
104 static SkPMColor srcin_modeproc(SkPMColor src, SkPMColor dst) { in srcin_modeproc()
109 static SkPMColor dstin_modeproc(SkPMColor src, SkPMColor dst) { in dstin_modeproc()
114 static SkPMColor srcout_modeproc(SkPMColor src, SkPMColor dst) { in srcout_modeproc()
119 static SkPMColor dstout_modeproc(SkPMColor src, SkPMColor dst) { in dstout_modeproc()
124 static SkPMColor srcatop_modeproc(SkPMColor src, SkPMColor dst) { in srcatop_modeproc()
[all …]
DSkBitmapProcState_filter.h22 SkPMColor a00, SkPMColor a01, in Filter_32_opaque()
23 SkPMColor a10, SkPMColor a11, in Filter_32_opaque()
24 SkPMColor* dstColor) { in Filter_32_opaque()
50 SkPMColor a00, SkPMColor a01, in Filter_32_alpha()
51 SkPMColor a10, SkPMColor a11, in Filter_32_alpha()
52 SkPMColor* dstColor, in Filter_32_alpha()
84 SkPMColor color0, in Filter_32_opaque()
85 SkPMColor color1, in Filter_32_opaque()
86 SkPMColor* dstColor) { in Filter_32_opaque()
104 SkPMColor color0, in Filter_32_alpha()
[all …]
DSkBlitRow_D32.cpp15 static void S32_Opaque_BlitRow32(SkPMColor* SK_RESTRICT dst, in S32_Opaque_BlitRow32()
16 const SkPMColor* SK_RESTRICT src, in S32_Opaque_BlitRow32()
22 static void S32_Blend_BlitRow32(SkPMColor* SK_RESTRICT dst, in S32_Blend_BlitRow32()
23 const SkPMColor* SK_RESTRICT src, in S32_Blend_BlitRow32()
37 const SkPMColor* SK_RESTRICT srcEnd = src + count; in S32_Blend_BlitRow32()
54 static void S32A_Opaque_BlitRow32(SkPMColor* SK_RESTRICT dst, in S32A_Opaque_BlitRow32()
55 const SkPMColor* SK_RESTRICT src, in S32A_Opaque_BlitRow32()
66 const SkPMColor* SK_RESTRICT srcEnd = src + count; in S32A_Opaque_BlitRow32()
83 static void S32A_Blend_BlitRow32(SkPMColor* SK_RESTRICT dst, in S32A_Blend_BlitRow32()
84 const SkPMColor* SK_RESTRICT src, in S32A_Blend_BlitRow32()
[all …]
DSkBlitMask_D32.cpp15 SkPMColor pmc = SkPreMultiplyColor(color); in D32_A8_Color()
18 SkPMColor* SK_RESTRICT device = (SkPMColor *)dst; in D32_A8_Color()
36 SkPMColor pmc = SkPreMultiplyColor(color); in D32_A8_Opaque()
37 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; in D32_A8_Opaque()
57 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; in D32_A8_Black()
91 SkPMColor* dstRow = (SkPMColor*)dst; in D32_LCD16_Proc()
93 SkPMColor opaqueDst; in D32_LCD16_Proc()
108 dstRow = (SkPMColor*)((char*)dstRow + dstRB); in D32_LCD16_Proc()
166 static void BW_RowProc_Blend(SkPMColor* SK_RESTRICT dst, in BW_RowProc_Blend()
168 const SkPMColor* SK_RESTRICT src, int count) { in BW_RowProc_Blend()
[all …]
DSkBlitRow_D16.cpp16 const SkPMColor* SK_RESTRICT src, int count, in S32_D565_Opaque()
22 SkPMColor c = *src++; in S32_D565_Opaque()
30 const SkPMColor* SK_RESTRICT src, int count, in S32_D565_Blend()
37 SkPMColor c = *src++; in S32_D565_Blend()
49 const SkPMColor* SK_RESTRICT src, int count, in S32A_D565_Opaque()
55 SkPMColor c = *src++; in S32A_D565_Opaque()
67 const SkPMColor* SK_RESTRICT src, int count, in S32A_D565_Blend()
73 SkPMColor sc = *src++; in S32A_D565_Blend()
77 SkPMColor res = SkBlendARGB32(sc, SkPixel16ToPixel32(dc), alpha); in S32A_D565_Blend()
88 const SkPMColor* SK_RESTRICT src, in S32_D565_Opaque_Dither()
[all …]
DSk4px.h18 Sk4px(SkPMColor); // Duplicate 4x: argb -> argb argb argb argb
30 static Sk4px Load4(const SkPMColor[4]); // PMColor[4] -> ARGB argb XYZW xyzw
31 static Sk4px Load2(const SkPMColor[2]); // PMColor[2] -> ARGB argb ???? ????
32 static Sk4px Load1(const SkPMColor[1]); // PMColor[1] -> ARGB ???? ???? ????
38 void store4(SkPMColor[4]) const;
39 void store2(SkPMColor[2]) const;
40 void store1(SkPMColor[1]) const;
71 static void MapSrc(int count, SkPMColor* dst, const SkPMColor* src, Fn fn) { in MapSrc()
101 static void MapDstSrc(int count, SkPMColor* dst, const SkPMColor* src, Fn fn) { in MapDstSrc()
130 int count, SkPMColor* dst, const SkPMColor* src, const SkAlpha* a, Fn fn) { in MapDstSrcAlpha()
DSkPMFloat.h20 static SkPMFloat FromPMColor(SkPMColor c) { return SkPMFloat(c); } in FromPMColor()
24 static void From4PMColors(const SkPMColor[4], SkPMFloat*, SkPMFloat*, SkPMFloat*, SkPMFloat*);
28 explicit SkPMFloat(SkPMColor);
46 SkPMColor round() const; // Assumes all values in [0, 255]. Some implementations may clamp.
47 SkPMColor roundClamp() const; // Will clamp all values to [0, 255].
51 SkPMColor trunc() const;
55 const SkPMFloat&, const SkPMFloat&, const SkPMFloat&, const SkPMFloat&, SkPMColor[4]);
57 const SkPMFloat&, const SkPMFloat&, const SkPMFloat&, const SkPMFloat&, SkPMColor[4]);
DSkColorTable.cpp16 void SkColorTable::init(const SkPMColor colors[], int count) { in init()
20 fColors = reinterpret_cast<SkPMColor*>(sk_malloc_throw(count * sizeof(SkPMColor))); in init()
22 memcpy(fColors, colors, count * sizeof(SkPMColor)); in init()
25 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { in SkColorTable()
44 const SkPMColor* fColors;
72 size_t allocSize = fCount * sizeof(SkPMColor); in SkColorTable()
75 fColors = (SkPMColor*)sk_malloc_throw(allocSize); in SkColorTable()
/external/skia/src/codec/
DSkSwizzler.cpp26 int bitsPerPixel, int y, const SkPMColor ctable[]) { in swizzle_small_index_to_index()
49 int bitsPerPixel, int y, const SkPMColor ctable[]) { in swizzle_small_index_to_n32()
51 SkPMColor* SK_RESTRICT dst = (SkPMColor*) dstRow; in swizzle_small_index_to_n32()
61 SkPMColor c = ctable[index]; in swizzle_small_index_to_n32()
75 int bytesPerPixel, int y, const SkPMColor ctable[]) { in swizzle_index_to_index()
91 int bytesPerPixel, int y, const SkPMColor ctable[]) { in swizzle_index_to_n32()
93 SkPMColor* SK_RESTRICT dst = (SkPMColor*)dstRow; in swizzle_index_to_n32()
96 SkPMColor c = ctable[src[x]]; in swizzle_index_to_n32()
105 int bytesPerPixel, int y, const SkPMColor ctable[]) { in swizzle_index_to_n32_skipZ()
107 SkPMColor* SK_RESTRICT dst = (SkPMColor*)dstRow; in swizzle_index_to_n32_skipZ()
[all …]
DSkMaskSwizzler.cpp17 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_n32_opaque()
33 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_n32_unpremul()
52 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_n32_premul()
70 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask24_to_n32_opaque()
85 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask24_to_n32_unpremul()
103 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask24_to_n32_premul()
122 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask32_to_n32_opaque()
138 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask32_to_n32_unpremul()
157 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask32_to_n32_premul()
/external/skia/src/images/
DSkScaledBitmapSampler.cpp19 int width, int deltaSrc, int, const SkPMColor[]) { in Sample_Gray_D8888() argument
20 SkPMColor* SK_RESTRICT dst = (SkPMColor*)dstRow; in Sample_Gray_D8888()
36 int width, int deltaSrc, int, const SkPMColor[]) { in Sample_RGBx_D8888() argument
37 SkPMColor* SK_RESTRICT dst = (SkPMColor*)dstRow; in Sample_RGBx_D8888()
53 int width, int deltaSrc, int, const SkPMColor[]) { in Sample_RGBA_D8888() argument
54 SkPMColor* SK_RESTRICT dst = (SkPMColor*)dstRow; in Sample_RGBA_D8888()
68 const SkPMColor[]) { in Sample_RGBA_D8888_Unpremul() argument
83 const SkPMColor[]) { in Sample_RGBA_D8888_SkipZ() argument
84 SkPMColor* SK_RESTRICT dst = (SkPMColor*)dstRow; in Sample_RGBA_D8888_SkipZ()
116 int width, int deltaSrc, int, const SkPMColor[]) { in Sample_Gray_D565() argument
[all …]
/external/skia/include/core/
DSkColorPriv.h129 static inline SkPMColor SkSwizzle_RGBA_to_PMColor(uint32_t c) { in SkSwizzle_RGBA_to_PMColor()
137 static inline SkPMColor SkSwizzle_BGRA_to_PMColor(uint32_t c) { in SkSwizzle_BGRA_to_PMColor()
361 SkPMColor pm_color_value = (color_value); \
376 static inline SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB32()
386 static inline uint32_t SkPackPMColor_as_RGBA(SkPMColor c) { in SkPackPMColor_as_RGBA()
391 static inline uint32_t SkPackPMColor_as_BGRA(SkPMColor c) { in SkPackPMColor_as_BGRA()
403 static inline SkPMColor SkFourByteInterp256(SkPMColor src, SkPMColor dst, in SkFourByteInterp256()
419 static inline SkPMColor SkFourByteInterp(SkPMColor src, SkPMColor dst, in SkFourByteInterp()
460 return SkPMColor( in SkUnsplay()
465 static inline SkPMColor SkFastFourByteInterp256_32(SkPMColor src, SkPMColor dst, unsigned scale) { in SkFastFourByteInterp256_32()
[all …]
/external/skia/src/effects/
DSkLerpXfermode.cpp34 void SkLerpXfermode::xfer32(SkPMColor dst[], const SkPMColor src[], int count, in xfer32()
42 SkPMColor dstC = dst[i]; in xfer32()
43 SkPMColor resC = SkFastFourByteInterp256(src[i], dstC, scale); in xfer32()
57 void SkLerpXfermode::xfer16(uint16_t dst[], const SkPMColor src[], int count, in xfer16()
65 SkPMColor dstC = SkPixel16ToPixel32(dst[i]); in xfer16()
66 SkPMColor resC = SkFastFourByteInterp256(src[i], dstC, scale); in xfer16()
75 SkPMColor dstC = SkPixel16ToPixel32(dst[i]); in xfer16()
76 SkPMColor resC = SkFastFourByteInterp256(src[i], dstC, scale); in xfer16()
82 void SkLerpXfermode::xferA8(SkAlpha dst[], const SkPMColor src[], int count, in xferA8()

123456789