Home
last modified time | relevance | path

Searched refs:src_color (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/core/fxge/dib/
Dfx_dib_composite.cpp38 int Blend(int blend_mode, int back_color, int src_color) { in Blend() argument
41 return src_color; in Blend()
43 return src_color * back_color / 255; in Blend()
45 return src_color + back_color - src_color * back_color / 255; in Blend()
47 return Blend(FXDIB_BLEND_HARDLIGHT, src_color, back_color); in Blend()
49 return src_color < back_color ? src_color : back_color; in Blend()
51 return src_color > back_color ? src_color : back_color; in Blend()
53 if (src_color == 255) { in Blend()
54 return src_color; in Blend()
56 int result = back_color * 255 / (255 - src_color); in Blend()
[all …]
/external/skia/src/core/
DSkBlitter_RGB16.cpp604 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_color
605 #define SK_BLITBWMASK_BLIT8(mask, dst) blend_8_pixels(mask, dst, dst_scale, src_color)