Home
last modified time | relevance | path

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

12345678910

/external/skia/src/opts/
DSkBlitRow_opts_SSE2.h13 void S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
14 const SkPMColor* SK_RESTRICT src,
17 void S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
18 const SkPMColor* SK_RESTRICT src,
21 void Color32A_D565_SSE2(uint16_t dst[], SkPMColor src, int count, int x,
24 void SkBlitLCD16Row_SSE2(SkPMColor dst[], const uint16_t src[],
25 SkColor color, int width, SkPMColor);
26 void SkBlitLCD16OpaqueRow_SSE2(SkPMColor dst[], const uint16_t src[],
27 SkColor color, int width, SkPMColor opaqueDst);
30 const SkPMColor* SK_RESTRICT src, int count,
[all …]
DSkMorphologyImageFilter_opts.h20 static void morph(const SkPMColor* src, SkPMColor* dst, in morph()
27 const SkPMColor* upperSrc = src + radius * srcStrideX; in morph()
29 const SkPMColor* lp = src; in morph()
30 const SkPMColor* up = upperSrc; in morph()
31 SkPMColor* dptr = dst; in morph()
35 for (const SkPMColor* p = lp; p <= up; p += srcStrideX) { in morph()
53 static void morph(const SkPMColor* src, SkPMColor* dst, in morph()
60 const SkPMColor* upperSrc = src + radius * srcStrideX; in morph()
62 const SkPMColor* lp = src; in morph()
63 const SkPMColor* up = upperSrc; in morph()
[all …]
DSkBitmapProcState_filter_neon.h24 SkPMColor a00, SkPMColor a01, in Filter_32_opaque_neon()
25 SkPMColor a10, SkPMColor a11, in Filter_32_opaque_neon()
26 SkPMColor *dst) { in Filter_32_opaque_neon()
58 SkPMColor a00, SkPMColor a01, in Filter_32_alpha_neon()
59 SkPMColor a10, SkPMColor a11, in Filter_32_alpha_neon()
60 SkPMColor *dst, in Filter_32_alpha_neon()
DSkBlitMask_opts.h24 SkPMColor pmc = SkPreMultiplyColor(color); in D32_A8_Opaque_Color_neon()
25 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; in D32_A8_Opaque_Color_neon()
84 static void blit_mask_d32_a8_general(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_general()
91 static void blit_mask_d32_a8_opaque(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_opaque()
98 static void blit_mask_d32_a8_black(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_black()
101 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; in blit_mask_d32_a8_black()
134 static void blit_mask_d32_a8_general(SkPMColor* dst, size_t dstRB,
153 static void blit_mask_d32_a8_opaque(SkPMColor* dst, size_t dstRB,
173 static void blit_mask_d32_a8_black(SkPMColor* dst, size_t dstRB,
192 static void blit_mask_d32_a8(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8()
DSkBlitRow_opts_SSE2.cpp20 void S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, in S32_Blend_BlitRow32_SSE2()
21 const SkPMColor* SK_RESTRICT src, in S32_Blend_BlitRow32_SSE2()
53 src = reinterpret_cast<const SkPMColor*>(s); in S32_Blend_BlitRow32_SSE2()
54 dst = reinterpret_cast<SkPMColor*>(d); in S32_Blend_BlitRow32_SSE2()
65 void S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, in S32A_Blend_BlitRow32_SSE2()
66 const SkPMColor* SK_RESTRICT src, in S32A_Blend_BlitRow32_SSE2()
94 src = reinterpret_cast<const SkPMColor*>(s); in S32A_Blend_BlitRow32_SSE2()
95 dst = reinterpret_cast<SkPMColor*>(d); in S32A_Blend_BlitRow32_SSE2()
106 void Color32A_D565_SSE2(uint16_t dst[], SkPMColor src, int count, int x, int y) { in Color32A_D565_SSE2()
373 void SkBlitLCD16Row_SSE2(SkPMColor dst[], const uint16_t mask[], in SkBlitLCD16Row_SSE2() argument
[all …]
DSkBlurImageFilter_opts.h25 static inline __m128i expand(SkPMColor p) { in expand()
29 static inline SkPMColor repack(__m128i p) { in repack()
45 static inline SkPMColor repack(__m128i p) { in repack()
91 static int box_blur_double(const SkPMColor** src, int srcStride, const SkIRect& srcBounds, in box_blur_double()
92 SkPMColor** dst, int kernelSize, in box_blur_double()
95 auto load_2_pixels = [&](const SkPMColor* s) { in box_blur_double()
123 const SkPMColor* lptr = *src; in box_blur_double()
124 const SkPMColor* rptr = *src; in box_blur_double()
125 SkPMColor* dptr = *dst; in box_blur_double()
174 static inline uint16x4_t expand(SkPMColor p) { in expand()
[all …]
DSkBlitMask_opts_arm_neon.h14 extern void SkBlitLCD16OpaqueRow_neon(SkPMColor dst[], const uint16_t src[],
16 SkPMColor opaqueDst);
18 extern void SkBlitLCD16Row_neon(SkPMColor dst[], const uint16_t src[],
19 SkColor color, int width, SkPMColor);
/external/skia/src/codec/
DSkSwizzler.cpp16 const SkPMColor ctable[]) { in copy()
25 const SkPMColor ctable[]) { in sample1()
35 const SkPMColor ctable[]) { in sample2()
45 const SkPMColor ctable[]) { in sample4()
55 const SkPMColor ctable[]) { in sample6()
66 const SkPMColor ctable[]) { in sample8()
85 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_grayscale() argument
110 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_index() argument
131 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_n32() argument
132 SkPMColor* SK_RESTRICT dst = (SkPMColor*) dstRow; in swizzle_bit_to_n32()
[all …]
DSkMaskSwizzler.cpp18 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_rgba_opaque()
35 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_bgra_opaque()
52 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_rgba_unpremul()
70 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_bgra_unpremul()
88 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_rgba_premul()
106 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask16_to_bgra_premul()
143 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask24_to_rgba_opaque()
160 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask24_to_bgra_opaque()
177 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask24_to_rgba_unpremul()
195 SkPMColor* dstPtr = (SkPMColor*) dstRow; in swizzle_mask24_to_bgra_unpremul()
[all …]
DSkSwizzler.h39 static SkSwizzler* CreateSwizzler(const SkEncodedInfo& encodedInfo, const SkPMColor* ctable,
104 const SkPMColor ctable[]);
110 const SkPMColor ctable[]);
114 int deltaSrc, int offset, const SkPMColor ctable[]);
124 const SkPMColor* fColorTable; // Unowned pointer
210 SkSwizzler(RowProc fastProc, RowProc proc, const SkPMColor* ctable, int srcOffset,
/external/skia/src/core/
DSkBitmapProcState_filter.h21 SkPMColor a00, SkPMColor a01, in Filter_32_opaque()
22 SkPMColor a10, SkPMColor a11, in Filter_32_opaque()
23 SkPMColor* dstColor) { in Filter_32_opaque()
49 SkPMColor a00, SkPMColor a01, in Filter_32_alpha()
50 SkPMColor a10, SkPMColor a11, in Filter_32_alpha()
51 SkPMColor* dstColor, in Filter_32_alpha()
83 SkPMColor color0, in Filter_32_opaque()
84 SkPMColor color1, in Filter_32_opaque()
85 SkPMColor* dstColor) { in Filter_32_opaque()
103 SkPMColor color0, in Filter_32_alpha()
[all …]
DSkBlitRow_D32.cpp16 static void S32_Opaque_BlitRow32(SkPMColor* SK_RESTRICT dst, in S32_Opaque_BlitRow32()
17 const SkPMColor* SK_RESTRICT src, in S32_Opaque_BlitRow32()
23 static void S32_Blend_BlitRow32(SkPMColor* SK_RESTRICT dst, in S32_Blend_BlitRow32()
24 const SkPMColor* SK_RESTRICT src, in S32_Blend_BlitRow32()
38 const SkPMColor* SK_RESTRICT srcEnd = src + count; in S32_Blend_BlitRow32()
57 static void S32A_Blend_BlitRow32(SkPMColor* SK_RESTRICT dst, in S32A_Blend_BlitRow32()
58 const SkPMColor* SK_RESTRICT src, in S32A_Blend_BlitRow32()
69 const SkPMColor* SK_RESTRICT srcEnd = src + count; in S32A_Blend_BlitRow32()
113 void SkBlitRow::Color32(SkPMColor dst[], const SkPMColor src[], int count, SkPMColor color) { in Color32()
115 case 0: memmove(dst, src, count * sizeof(SkPMColor)); return; in Color32()
DSkOpts.h29 …typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkPMColor*, int, int, int…
32 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int);
35 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t, SkColor, int, int);
36 extern void (*blit_row_color32)(SkPMColor*, const SkPMColor*, int, SkPMColor);
37 extern void (*blit_row_s32a_opaque)(SkPMColor*, const SkPMColor*, int, U8CPU);
DSkXfermode.cpp362 static SkPMColor clear_modeproc(SkPMColor src, SkPMColor dst) { in clear_modeproc()
367 static SkPMColor src_modeproc(SkPMColor src, SkPMColor dst) { in src_modeproc()
372 static SkPMColor dst_modeproc(SkPMColor src, SkPMColor dst) { in dst_modeproc()
377 static SkPMColor srcover_modeproc(SkPMColor src, SkPMColor dst) { in srcover_modeproc()
390 static SkPMColor dstover_modeproc(SkPMColor src, SkPMColor dst) { in dstover_modeproc()
397 static SkPMColor srcin_modeproc(SkPMColor src, SkPMColor dst) { in srcin_modeproc()
402 static SkPMColor dstin_modeproc(SkPMColor src, SkPMColor dst) { in dstin_modeproc()
407 static SkPMColor srcout_modeproc(SkPMColor src, SkPMColor dst) { in srcout_modeproc()
412 static SkPMColor dstout_modeproc(SkPMColor src, SkPMColor dst) { in dstout_modeproc()
417 static SkPMColor srcatop_modeproc(SkPMColor src, SkPMColor dst) { in srcatop_modeproc()
[all …]
DSkColorTable.cpp15 void SkColorTable::init(const SkPMColor colors[], int count) { in init()
19 fColors = reinterpret_cast<SkPMColor*>(sk_malloc_throw(count * sizeof(SkPMColor))); in init()
21 memcpy(fColors, colors, count * sizeof(SkPMColor)); in init()
24 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { in SkColorTable()
34 SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc) in SkColorTable()
68 size_t allocSize = fCount * sizeof(SkPMColor);
71 fColors = (SkPMColor*)sk_malloc_throw(allocSize);
103 const size_t allocSize = count * sizeof(SkPMColor); in Create()
104 std::unique_ptr<SkPMColor> colors((SkPMColor*)sk_malloc_throw(allocSize)); in Create()
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 …]
DSkBlitMask_D32.cpp30 SkPMColor* dstRow = (SkPMColor*)dst; in D32_LCD16_Proc()
32 SkPMColor opaqueDst; in D32_LCD16_Proc()
47 dstRow = (SkPMColor*)((char*)dstRow + dstRB); in D32_LCD16_Proc()
80SkPMColor* SK_RESTRICT dst, const void* maskIn, const SkPMColor* SK_RESTRICT src, int count) { in BW_RowProc_Blend()
109SkPMColor* SK_RESTRICT dst, const void* maskIn, const SkPMColor* SK_RESTRICT src, int count) { in BW_RowProc_Opaque()
138SkPMColor* SK_RESTRICT dst, const void* maskIn, const SkPMColor* SK_RESTRICT src, int count) { in A8_RowProc_Blend()
157SkPMColor* SK_RESTRICT dst, const void* maskIn, const SkPMColor* SK_RESTRICT src, int count) { in A8_RowProc_Opaque()
192SkPMColor* SK_RESTRICT dst, const void* maskIn, const SkPMColor* SK_RESTRICT src, int count) { in LCD16_RowProc_Blend()
200 SkPMColor s = src[i]; in LCD16_RowProc_Blend()
201 SkPMColor d = dst[i]; in LCD16_RowProc_Blend()
[all …]
DSk4px.h26 static Sk4px DupPMColor(SkPMColor c); // argb -> argb argb argb argb
39 static Sk4px Load4(const SkPMColor[4]); // PMColor[4] -> ARGB argb XYZW xyzw
40 static Sk4px Load2(const SkPMColor[2]); // PMColor[2] -> ARGB argb ???? ????
41 static Sk4px Load1(const SkPMColor[1]); // PMColor[1] -> ARGB ???? ???? ????
47 void store4(SkPMColor[4]) const;
48 void store2(SkPMColor[2]) const;
49 void store1(SkPMColor[1]) const;
101 static void MapSrc(int n, SkPMColor* dst, const SkPMColor* src, const Fn& fn) { in MapSrc()
133 static void MapDstSrc(int n, SkPMColor* dst, const SkPMColor* src, const Fn& fn) { in MapDstSrc()
163 static void MapDstAlpha(int n, SkPMColor* dst, const SkAlpha* a, const Fn& fn) { in MapDstAlpha()
[all …]
DSkBlitRow.h35 typedef void (*Proc16)(uint16_t dst[], const SkPMColor src[], int count,
45 typedef void (*ColorProc16)(uint16_t dst[], SkPMColor src, int count, int x, int y);
63 typedef void (*Proc32)(uint32_t dst[], const SkPMColor src[], int count, U8CPU alpha);
71 static void Color32(SkPMColor dst[], const SkPMColor src[], int count, SkPMColor color);
DSkSpriteBlitter_ARGB32.cpp96 fBuffer = new SkPMColor[width]; in setup()
104 SkPMColor* fBuffer;
129 const SkPMColor* tmp = src; in blitRect()
151 static void fillbuffer(SkPMColor* SK_RESTRICT dst, in fillbuffer()
167 SkPMColor* SK_RESTRICT dst = fDst.writable_addr32(x, y); in blitRect()
171 SkPMColor* SK_RESTRICT buffer = fBuffer; in blitRect()
187 dst = (SkPMColor* SK_RESTRICT)((char*)dst + dstRB); in blitRect()
198 static void src_row(SkPMColor* SK_RESTRICT dst, in src_row()
213 SkPMColor* SK_RESTRICT dst = fDst.writable_addr32(x, y); in blitRect()
220 dst = (SkPMColor* SK_RESTRICT)((char*)dst + dstRB); in blitRect()
[all …]
/external/skia/src/images/
DSkImageEncoderFns.h32 int width, int bpp, const SkPMColor* colors);
38 int width, int bpp, const SkPMColor*) { in transform_scanline_memcpy() argument
44 const SkPMColor* colors) { in transform_scanline_index8_opaque()
56 const SkPMColor* colors) { in transform_scanline_index8_unpremul()
66 int width, int, const SkPMColor* colors) { in transform_scanline_gray()
82 int width, int, const SkPMColor*) { in transform_scanline_565() argument
97 int width, int, const SkPMColor*) { in transform_scanline_RGBX() argument
98 const uint32_t* srcP = (const SkPMColor*)src; in transform_scanline_RGBX()
112 int width, int, const SkPMColor*) { in transform_scanline_BGRX() argument
113 const uint32_t* srcP = (const SkPMColor*)src; in transform_scanline_BGRX()
[all …]
/external/skia/include/core/
DSkColorPriv.h134 static inline SkPMColor SkSwizzle_RGBA_to_PMColor(uint32_t c) { in SkSwizzle_RGBA_to_PMColor()
142 static inline SkPMColor SkSwizzle_BGRA_to_PMColor(uint32_t c) { in SkSwizzle_BGRA_to_PMColor()
378 SkPMColor pm_color_value = (color_value); \
389 static inline bool SkPMColorValid(SkPMColor c) { in SkPMColorValid()
405 static inline SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkPackARGB32()
415 static inline uint32_t SkPackPMColor_as_RGBA(SkPMColor c) { in SkPackPMColor_as_RGBA()
420 static inline uint32_t SkPackPMColor_as_BGRA(SkPMColor c) { in SkPackPMColor_as_BGRA()
432 static inline SkPMColor SkFourByteInterp256(SkPMColor src, SkPMColor dst, in SkFourByteInterp256()
448 static inline SkPMColor SkFourByteInterp(SkPMColor src, SkPMColor dst, in SkFourByteInterp()
489 return SkPMColor( in SkUnsplay()
[all …]
DSkColorTable.h29 SkColorTable(const SkPMColor colors[], int count);
39 SkPMColor operator[](int index) const {
46 const SkPMColor* readColors() const { return fColors; } in readColors()
62 SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc);
64 SkPMColor* fColors;
69 void init(const SkPMColor* colors, int count);
74 void dangerous_overwriteColors(const SkPMColor newColors[], int count) { in dangerous_overwriteColors()
79 memcpy(fColors, newColors, count * sizeof(SkPMColor)); in dangerous_overwriteColors()
/external/skia/src/effects/
DSkOverdrawColorFilter.h26 static sk_sp<SkOverdrawColorFilter> Make(const SkPMColor colors[kNumColors]) { in Make()
34 void filterSpan(const SkPMColor src[], int count, SkPMColor dst[]) const override;
45 SkOverdrawColorFilter(const SkPMColor colors[kNumColors]) { in SkOverdrawColorFilter()
46 memcpy(fColors, colors, kNumColors * sizeof(SkPMColor)); in SkOverdrawColorFilter()
49 SkPMColor fColors[kNumColors];
/external/skia/gm/
Dtexdata.cpp30 static void fill_in_pixels(SkPMColor* pixels) { in fill_in_pixels()
31 const SkPMColor gray = SkPackARGB32(0x40, 0x40, 0x40, 0x40); in fill_in_pixels()
32 const SkPMColor white = SkPackARGB32(0xff, 0xff, 0xff, 0xff); in fill_in_pixels()
33 const SkPMColor black = SkPackARGB32(0x00, 0x00, 0x00, 0x00); in fill_in_pixels()
81 SkAutoTArray<SkPMColor> gTextureData((2 * S) * (2 * S));
82 const SkPMColor red = SkPackARGB32(0x80, 0x80, 0x00, 0x00);
83 const SkPMColor blue = SkPackARGB32(0x80, 0x00, 0x00, 0x80);
84 const SkPMColor green = SkPackARGB32(0x80, 0x00, 0x80, 0x00);

12345678910