Home
last modified time | relevance | path

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

12345678910>>...12

/external/skia/src/codec/
DSkSwizzler.cpp20 const SkPMColor ctable[]) { in copy()
29 const SkPMColor ctable[]) { in sample1()
39 const SkPMColor ctable[]) { in sample2()
49 const SkPMColor ctable[]) { in sample4()
59 const SkPMColor ctable[]) { in sample6()
70 const SkPMColor ctable[]) { in sample8()
89 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_grayscale() argument
114 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_n32() argument
115 SkPMColor* SK_RESTRICT dst = (SkPMColor*) dstRow; in swizzle_bit_to_n32()
137 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_565() argument
[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.h36 const SkPMColor* ctable, const SkImageInfo& dstInfo, const SkCodec::Options&,
107 const SkPMColor ctable[]);
113 const SkPMColor ctable[]);
117 int deltaSrc, int offset, const SkPMColor ctable[]);
127 const SkPMColor* fColorTable; // Unowned pointer
213 SkSwizzler(RowProc fastProc, RowProc proc, const SkPMColor* ctable, int srcOffset,
216 RowProc proc, const SkPMColor* ctable, int srcBPP, int dstBPP,
DSkColorTable.cpp11 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { in SkColorTable()
16 fColors = reinterpret_cast<SkPMColor*>(sk_malloc_throw(count * sizeof(SkPMColor))); in SkColorTable()
18 memcpy(fColors, colors, count * sizeof(SkPMColor)); in SkColorTable()
/external/skqp/src/codec/
DSkSwizzler.cpp20 const SkPMColor ctable[]) { in copy()
29 const SkPMColor ctable[]) { in sample1()
39 const SkPMColor ctable[]) { in sample2()
49 const SkPMColor ctable[]) { in sample4()
59 const SkPMColor ctable[]) { in sample6()
70 const SkPMColor ctable[]) { in sample8()
89 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_grayscale() argument
114 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_n32() argument
115 SkPMColor* SK_RESTRICT dst = (SkPMColor*) dstRow; in swizzle_bit_to_n32()
137 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { in swizzle_bit_to_565() argument
[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.h36 const SkPMColor* ctable, const SkImageInfo& dstInfo, const SkCodec::Options&,
107 const SkPMColor ctable[]);
113 const SkPMColor ctable[]);
117 int deltaSrc, int offset, const SkPMColor ctable[]);
127 const SkPMColor* fColorTable; // Unowned pointer
213 SkSwizzler(RowProc fastProc, RowProc proc, const SkPMColor* ctable, int srcOffset,
216 RowProc proc, const SkPMColor* ctable, int srcBPP, int dstBPP,
DSkColorTable.cpp11 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { in SkColorTable()
16 fColors = reinterpret_cast<SkPMColor*>(sk_malloc_throw(count * sizeof(SkPMColor))); in SkColorTable()
18 memcpy(fColors, colors, count * sizeof(SkPMColor)); in SkColorTable()
/external/skqp/include/private/
DSkColorData.h84 static inline SkPMColor SkSwizzle_RGBA_to_PMColor(uint32_t c) { in SkSwizzle_RGBA_to_PMColor()
92 static inline SkPMColor SkSwizzle_BGRA_to_PMColor(uint32_t c) { in SkSwizzle_BGRA_to_PMColor()
163 static inline SkPMColor SkFourByteInterp256(SkPMColor src, SkPMColor dst, in SkFourByteInterp256()
179 static inline SkPMColor SkFourByteInterp(SkPMColor src, SkPMColor dst, in SkFourByteInterp()
220 return SkPMColor( in SkUnsplay()
225 static inline SkPMColor SkFastFourByteInterp256_32(SkPMColor src, SkPMColor dst, unsigned scale) { in SkFastFourByteInterp256_32()
239 static inline SkPMColor SkFastFourByteInterp256_64(SkPMColor src, SkPMColor dst, unsigned scale) { in SkFastFourByteInterp256_64()
250 static inline SkPMColor SkFastFourByteInterp256(SkPMColor src, SkPMColor dst, unsigned scale) { in SkFastFourByteInterp256()
263 static inline SkPMColor SkFastFourByteInterp(SkPMColor src, in SkFastFourByteInterp()
264 SkPMColor dst, in SkFastFourByteInterp()
[all …]
/external/skia/include/private/
DSkColorData.h84 static inline SkPMColor SkSwizzle_RGBA_to_PMColor(uint32_t c) { in SkSwizzle_RGBA_to_PMColor()
92 static inline SkPMColor SkSwizzle_BGRA_to_PMColor(uint32_t c) { in SkSwizzle_BGRA_to_PMColor()
163 static inline SkPMColor SkFourByteInterp256(SkPMColor src, SkPMColor dst, in SkFourByteInterp256()
179 static inline SkPMColor SkFourByteInterp(SkPMColor src, SkPMColor dst, in SkFourByteInterp()
220 return SkPMColor( in SkUnsplay()
225 static inline SkPMColor SkFastFourByteInterp256_32(SkPMColor src, SkPMColor dst, unsigned scale) { in SkFastFourByteInterp256_32()
239 static inline SkPMColor SkFastFourByteInterp256_64(SkPMColor src, SkPMColor dst, unsigned scale) { in SkFastFourByteInterp256_64()
250 static inline SkPMColor SkFastFourByteInterp256(SkPMColor src, SkPMColor dst, unsigned scale) { in SkFastFourByteInterp256()
263 static inline SkPMColor SkFastFourByteInterp(SkPMColor src, in SkFastFourByteInterp()
264 SkPMColor dst, in SkFastFourByteInterp()
[all …]
/external/skia/src/core/
DSkBlitRow_D32.cpp14 static void blit_row_s32_opaque(SkPMColor* dst, in blit_row_s32_opaque()
15 const SkPMColor* src, in blit_row_s32_opaque()
19 memcpy(dst, src, count * sizeof(SkPMColor)); in blit_row_s32_opaque()
59 static void blit_row_s32_blend(SkPMColor* dst, const SkPMColor* src, int count, U8CPU alpha) { in blit_row_s32_blend()
74 src = (const SkPMColor*)src4; in blit_row_s32_blend()
75 dst = ( SkPMColor*)dst4; in blit_row_s32_blend()
124 static void blit_row_s32a_blend(SkPMColor* dst, const SkPMColor* src, int count, U8CPU alpha) { in blit_row_s32a_blend()
139 src = (const SkPMColor*)src4; in blit_row_s32a_blend()
140 dst = ( SkPMColor*)dst4; in blit_row_s32a_blend()
152 static void blit_row_s32_blend(SkPMColor* dst, const SkPMColor* src, int count, U8CPU alpha) { in blit_row_s32_blend()
[all …]
DSkOpts.h28 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t, SkColor, int, int);
29 extern void (*blit_row_color32)(SkPMColor*, const SkPMColor*, int, SkPMColor);
30 extern void (*blit_row_s32a_opaque)(SkPMColor*, const SkPMColor*, int, U8CPU);
65 const uint32_t* xy, int count, SkPMColor*);
67 const uint32_t* xy, int count, SkPMColor*);
DSkBitmapProcState.cpp28 SkPMColor* dst, int count) { in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
43 const SkPMColor* src = s.fPixmap.addr32(0, dstY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
53 SkPMColor src0 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
54 SkPMColor src1 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
55 SkPMColor src2 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
56 SkPMColor src3 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
78 const uint32_t* xy, int count, SkPMColor* colors) { in S32_alpha_D32_nofilter_DX()
89 auto row = (const SkPMColor*)( (const char*)s.fPixmap.addr() + y * s.fPixmap.rowBytes() ); in S32_alpha_D32_nofilter_DX()
101 SkPMColor p0 = row[UNPACK_PRIMARY_SHORT (x01)]; in S32_alpha_D32_nofilter_DX()
102 SkPMColor p1 = row[UNPACK_SECONDARY_SHORT(x01)]; in S32_alpha_D32_nofilter_DX()
[all …]
DSk4px.h27 static Sk4px DupPMColor(SkPMColor c) { in DupPMColor()
39 static Sk4px Load4(const SkPMColor px[4]) { in Load4()
44 static Sk4px Load2(const SkPMColor px[2]) { in Load2()
49 static Sk4px Load1(const SkPMColor px[1]) { in Load1()
59 void store4(SkPMColor px[4]) const { memcpy(px, this, 16); } in store4()
60 void store2(SkPMColor px[2]) const { memcpy(px, this, 8); } in store2()
61 void store1(SkPMColor px[1]) const { memcpy(px, this, 4); } in store1()
109 static void MapSrc(int n, SkPMColor* dst, const SkPMColor* src, const Fn& fn) { in MapSrc()
141 static void MapDstSrc(int n, SkPMColor* dst, const SkPMColor* src, const Fn& fn) { in MapDstSrc()
171 static void MapDstAlpha(int n, SkPMColor* dst, const SkAlpha* a, const Fn& fn) { in MapDstAlpha()
[all …]
DSkBlitter_ARGB32.cpp27 static inline SkPMColor blend_lcd16(int srcA, int srcR, int srcG, int srcB, in blend_lcd16()
28 SkPMColor dst, uint16_t mask) { in blend_lcd16()
62 static inline SkPMColor blend_lcd16_opaque(int srcR, int srcG, int srcB, in blend_lcd16_opaque()
63 SkPMColor dst, uint16_t mask, in blend_lcd16_opaque()
64 SkPMColor opaqueDst) { in blend_lcd16_opaque()
299 void blit_row_lcd16(SkPMColor dst[], const uint16_t mask[], SkColor src, int width, SkPMColor) { in blit_row_lcd16() argument
359 dst = reinterpret_cast<SkPMColor*>(d); in blit_row_lcd16()
370 void blit_row_lcd16_opaque(SkPMColor dst[], const uint16_t mask[], in blit_row_lcd16_opaque()
371 SkColor src, int width, SkPMColor opaqueDst) { in blit_row_lcd16_opaque()
426 dst = reinterpret_cast<SkPMColor*>(d); in blit_row_lcd16_opaque()
[all …]
DSkBlitter_RGB565.cpp16 static void D16_S32X_src(uint16_t dst[], const SkPMColor src[], int count, uint8_t coverage) { in D16_S32X_src()
23 static void D16_S32X_src_coverage(uint16_t dst[], const SkPMColor src[], int count, in D16_S32X_src_coverage()
41 static void D16_S32A_srcover(uint16_t dst[], const SkPMColor src[], int count, uint8_t coverage) { in D16_S32A_srcover()
48 static void D16_S32A_srcover_coverage(uint16_t dst[], const SkPMColor src[], int count, in D16_S32A_srcover_coverage()
90 fBuffer = (SkPMColor*)sk_malloc_throw(device.width() * (sizeof(SkPMColor))); in SkRGB565_Shader_Blitter()
112 SkPMColor* span = fBuffer; in blitH()
119 SkPMColor* span = fBuffer; in blitAntiH()
DSkBlitRow.h27 typedef void (*Proc32)(uint32_t dst[], const SkPMColor src[], int count, U8CPU alpha);
35 static void Color32(SkPMColor dst[], const SkPMColor src[], int count, SkPMColor color);
/external/skqp/src/core/
DSkBlitRow_D32.cpp15 static void blit_row_s32_opaque(SkPMColor* dst, in blit_row_s32_opaque()
16 const SkPMColor* src, in blit_row_s32_opaque()
20 memcpy(dst, src, count * sizeof(SkPMColor)); in blit_row_s32_opaque()
60 static void blit_row_s32_blend(SkPMColor* dst, const SkPMColor* src, int count, U8CPU alpha) { in blit_row_s32_blend()
75 src = (const SkPMColor*)src4; in blit_row_s32_blend()
76 dst = ( SkPMColor*)dst4; in blit_row_s32_blend()
125 static void blit_row_s32a_blend(SkPMColor* dst, const SkPMColor* src, int count, U8CPU alpha) { in blit_row_s32a_blend()
140 src = (const SkPMColor*)src4; in blit_row_s32a_blend()
141 dst = ( SkPMColor*)dst4; in blit_row_s32a_blend()
153 static void blit_row_s32_blend(SkPMColor* dst, const SkPMColor* src, int count, U8CPU alpha) { in blit_row_s32_blend()
[all …]
DSk4px.h27 static Sk4px DupPMColor(SkPMColor c) { in DupPMColor()
39 static Sk4px Load4(const SkPMColor px[4]) { in Load4()
44 static Sk4px Load2(const SkPMColor px[2]) { in Load2()
49 static Sk4px Load1(const SkPMColor px[1]) { in Load1()
59 void store4(SkPMColor px[4]) const { memcpy(px, this, 16); } in store4()
60 void store2(SkPMColor px[2]) const { memcpy(px, this, 8); } in store2()
61 void store1(SkPMColor px[1]) const { memcpy(px, this, 4); } in store1()
109 static void MapSrc(int n, SkPMColor* dst, const SkPMColor* src, const Fn& fn) { in MapSrc()
141 static void MapDstSrc(int n, SkPMColor* dst, const SkPMColor* src, const Fn& fn) { in MapDstSrc()
171 static void MapDstAlpha(int n, SkPMColor* dst, const SkAlpha* a, const Fn& fn) { in MapDstAlpha()
[all …]
DSkBlitter_ARGB32.cpp27 static inline SkPMColor blend_lcd16(int srcA, int srcR, int srcG, int srcB, in blend_lcd16()
28 SkPMColor dst, uint16_t mask) { in blend_lcd16()
62 static inline SkPMColor blend_lcd16_opaque(int srcR, int srcG, int srcB, in blend_lcd16_opaque()
63 SkPMColor dst, uint16_t mask, in blend_lcd16_opaque()
64 SkPMColor opaqueDst) { in blend_lcd16_opaque()
299 void blit_row_lcd16(SkPMColor dst[], const uint16_t mask[], SkColor src, int width, SkPMColor) { in blit_row_lcd16() argument
359 dst = reinterpret_cast<SkPMColor*>(d); in blit_row_lcd16()
370 void blit_row_lcd16_opaque(SkPMColor dst[], const uint16_t mask[], in blit_row_lcd16_opaque()
371 SkColor src, int width, SkPMColor opaqueDst) { in blit_row_lcd16_opaque()
426 dst = reinterpret_cast<SkPMColor*>(d); in blit_row_lcd16_opaque()
[all …]
DSkBitmapProcState.cpp28 SkPMColor* dst, int count) { in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
44 const SkPMColor* src = s.fPixmap.addr32(0, dstY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
54 SkPMColor src0 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
55 SkPMColor src1 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
56 SkPMColor src2 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
57 SkPMColor src3 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
79 const uint32_t* xy, int count, SkPMColor* colors) { in S32_alpha_D32_nofilter_DX()
90 auto row = (const SkPMColor*)( (const char*)s.fPixmap.addr() + y * s.fPixmap.rowBytes() ); in S32_alpha_D32_nofilter_DX()
102 SkPMColor p0 = row[UNPACK_PRIMARY_SHORT (x01)]; in S32_alpha_D32_nofilter_DX()
103 SkPMColor p1 = row[UNPACK_SECONDARY_SHORT(x01)]; in S32_alpha_D32_nofilter_DX()
[all …]
DSkBlitter_RGB565.cpp17 static void D16_S32X_src(uint16_t dst[], const SkPMColor src[], int count, uint8_t coverage) { in D16_S32X_src()
24 static void D16_S32X_src_coverage(uint16_t dst[], const SkPMColor src[], int count, in D16_S32X_src_coverage()
42 static void D16_S32A_srcover(uint16_t dst[], const SkPMColor src[], int count, uint8_t coverage) { in D16_S32A_srcover()
49 static void D16_S32A_srcover_coverage(uint16_t dst[], const SkPMColor src[], int count, in D16_S32A_srcover_coverage()
91 fBuffer = (SkPMColor*)sk_malloc_throw(device.width() * (sizeof(SkPMColor))); in SkRGB565_Shader_Blitter()
113 SkPMColor* span = fBuffer; in blitH()
120 SkPMColor* span = fBuffer; in blitAntiH()
/external/skia/tests/
DColorTest.cpp20 SkPMColor p0 = SkPreMultiplyColor(c0); in DEF_TEST()
23 SkPMColor p1 = SkPreMultiplyColor(c1); in DEF_TEST()
50 SkPMColor src = SkPreMultiplyColor(colorSrc); in DEF_TEST()
51 SkPMColor dst = SkPreMultiplyColor(colorDst); in DEF_TEST()
68 SkPMColor src = SkPreMultiplyColor(colorSrc); in DEF_TEST()
69 SkPMColor dst = SkPreMultiplyColor(colorDst); in DEF_TEST()
/external/skia/src/opts/
DSkBlitMask_opts.h48 SkPMColor pmc = SkPreMultiplyColor(color); in D32_A8_Opaque_Color_neon()
49 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; in D32_A8_Opaque_Color_neon()
108 static void blit_mask_d32_a8_general(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_general()
115 static void blit_mask_d32_a8_opaque(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_opaque()
122 static void blit_mask_d32_a8_black(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_black()
125 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; in blit_mask_d32_a8_black()
158 static void blit_mask_d32_a8_general(SkPMColor* dst, size_t dstRB,
177 static void blit_mask_d32_a8_opaque(SkPMColor* dst, size_t dstRB,
197 static void blit_mask_d32_a8_black(SkPMColor* dst, size_t dstRB,
217 /*not static*/ inline void blit_mask_d32_a8(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8()
/external/skqp/src/opts/
DSkBlitMask_opts.h48 SkPMColor pmc = SkPreMultiplyColor(color); in D32_A8_Opaque_Color_neon()
49 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; in D32_A8_Opaque_Color_neon()
108 static void blit_mask_d32_a8_general(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_general()
115 static void blit_mask_d32_a8_opaque(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_opaque()
122 static void blit_mask_d32_a8_black(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8_black()
125 SkPMColor* SK_RESTRICT device = (SkPMColor*)dst; in blit_mask_d32_a8_black()
158 static void blit_mask_d32_a8_general(SkPMColor* dst, size_t dstRB,
177 static void blit_mask_d32_a8_opaque(SkPMColor* dst, size_t dstRB,
197 static void blit_mask_d32_a8_black(SkPMColor* dst, size_t dstRB,
217 /*not static*/ inline void blit_mask_d32_a8(SkPMColor* dst, size_t dstRB, in blit_mask_d32_a8()

12345678910>>...12