Home
last modified time | relevance | path

Searched refs:src_alpha (Results 1 – 5 of 5) sorted by relevance

/external/pdfium/core/src/fxge/ge/
Dfx_ge_text.cpp138 #define ADJUST_ALPHA(background, foreground, src_alpha, text_flags, a) \ argument
139 src_alpha = g_TextGammaAdjust[(uint8_t)src_alpha];
433 int src_alpha = src_scan[2]; in DrawNormalText() local
434 src_alpha = src_alpha * a / 255; in DrawNormalText()
436 FXDIB_ALPHA_MERGE(FX_GAMMA(dest_scan[2]), r, src_alpha)); in DrawNormalText()
437 src_alpha = src_scan[1]; in DrawNormalText()
438 src_alpha = src_alpha * a / 255; in DrawNormalText()
440 FXDIB_ALPHA_MERGE(FX_GAMMA(dest_scan[1]), g, src_alpha)); in DrawNormalText()
441 src_alpha = src_scan[0]; in DrawNormalText()
442 src_alpha = src_alpha * a / 255; in DrawNormalText()
[all …]
/external/pdfium/core/src/fxge/dib/
Dfx_dib_composite.cpp234 int src_alpha = *src_scan; in _CompositeRow_Argb2Mask() local
236 src_alpha = clip_scan[col] * src_alpha / 255; in _CompositeRow_Argb2Mask()
240 *dest_scan = src_alpha; in _CompositeRow_Argb2Mask()
241 } else if (src_alpha) { in _CompositeRow_Argb2Mask()
242 *dest_scan = back_alpha + src_alpha - back_alpha * src_alpha / 255; in _CompositeRow_Argb2Mask()
253 int src_alpha = *src_alpha_scan++; in _CompositeRow_Rgba2Mask() local
255 src_alpha = clip_scan[col] * src_alpha / 255; in _CompositeRow_Rgba2Mask()
259 *dest_scan = src_alpha; in _CompositeRow_Rgba2Mask()
260 } else if (src_alpha) { in _CompositeRow_Rgba2Mask()
261 *dest_scan = back_alpha + src_alpha - back_alpha * src_alpha / 255; in _CompositeRow_Rgba2Mask()
[all …]
/external/pdfium/core/src/fxge/skia/
Dfx_skia_blitter_new.cpp118 int src_alpha = m_Alpha * cover_scan / 255; in CompositeSpan1bpp_0() local
120 if (src_alpha) { in CompositeSpan1bpp_0()
163 int src_alpha = m_Alpha * cover_scan / 255; in CompositeSpan1bpp_4() local
165 int src_alpha1 = src_alpha * clip_scan[col] / 255; in CompositeSpan1bpp_4()
202 int src_alpha = m_Alpha * cover_scan / 255; in CompositeSpanGray_2() local
204 *dest_scan = FXDIB_ALPHA_MERGE(*dest_scan, m_Gray, src_alpha); in CompositeSpanGray_2()
235 int src_alpha = m_Alpha; in CompositeSpanGray_3() local
238 int gray = FXDIB_ALPHA_MERGE(*ori_scan++, m_Gray, src_alpha); in CompositeSpanGray_3()
244 if (src_alpha == 255) { in CompositeSpanGray_3()
250 *dest_scan = FXDIB_ALPHA_MERGE(*ori_scan++, m_Gray, src_alpha); in CompositeSpanGray_3()
[all …]
/external/pdfium/core/src/fxge/agg/src/
Dfx_agg_driver.cpp415 int src_alpha; in CompositeSpan() local
417 src_alpha = m_Alpha * clip_scan[col] / 255; in CompositeSpan()
419 src_alpha = m_Alpha; in CompositeSpan()
422 ori_scan[3] + src_alpha - ori_scan[3] * src_alpha / 255; in CompositeSpan()
424 int alpha_ratio = src_alpha * 255 / dest_alpha; in CompositeSpan()
448 int src_alpha; in CompositeSpan() local
450 src_alpha = m_Alpha * clip_scan[col] / 255; in CompositeSpan()
452 src_alpha = m_Alpha; in CompositeSpan()
454 int r = FXDIB_ALPHA_MERGE(*ori_scan++, m_Red, src_alpha); in CompositeSpan()
455 int g = FXDIB_ALPHA_MERGE(*ori_scan++, m_Green, src_alpha); in CompositeSpan()
[all …]
/external/webp/src/demux/
Danim_decode.c238 const uint8_t src_alpha = (src[i] >> 24) & 0xff; in BlendPixelRowNonPremult() local
239 if (src_alpha != 0xff) { in BlendPixelRowNonPremult()
265 const uint8_t src_alpha = (src[i] >> 24) & 0xff; in BlendPixelRowPremult() local
266 if (src_alpha != 0xff) { in BlendPixelRowPremult()