/external/pdfium/core/fxge/dib/ |
D | cfx_scanlinecompositor.cpp | 182 int GetAlpha(uint8_t src_alpha, const uint8_t* clip_scan, int col) { in GetAlpha() argument 183 return clip_scan ? clip_scan[col] * src_alpha / 255 : src_alpha; in GetAlpha() 193 int src_alpha = GetAlpha(*src_scan, clip_scan, col); in CompositeRow_AlphaToMask() local 196 *dest_scan = src_alpha; in CompositeRow_AlphaToMask() 197 else if (src_alpha) in CompositeRow_AlphaToMask() 198 *dest_scan = back_alpha + src_alpha - back_alpha * src_alpha / 255; in CompositeRow_AlphaToMask() 247 int src_alpha = GetAlpha(*alpha_scan, clip_scan, col); in CompositeRow_Argb2Graya() local 248 if (src_alpha) { in CompositeRow_Argb2Graya() 250 *dst_alpha_scan = src_alpha; in CompositeRow_Argb2Graya() 257 uint8_t src_alpha = GetAlpha(*alpha_scan, clip_scan, col); in CompositeRow_Argb2Graya() local [all …]
|
D | cfx_dibitmap.cpp | 931 int src_alpha = in CompositeMask() local 933 if (src_alpha == 0) in CompositeMask() 985 int src_alpha = (alpha_flag >> 8) ? (alpha_flag & 0xff) : FXARGB_A(color); in CompositeRect() local 986 if (src_alpha == 0) in CompositeRect() 1020 if (src_alpha == 255) { in CompositeRect() 1024 *dest_scan = FXDIB_ALPHA_MERGE(*dest_scan, gray, src_alpha); in CompositeRect() 1080 color_p[3] = static_cast<uint8_t>(src_alpha); in CompositeRect() 1084 if (src_alpha == 255) { in CompositeRect() 1115 FXARGB_SETDIB(dest_scan, FXARGB_MAKE(src_alpha, color_p[2], in CompositeRect() 1121 back_alpha + src_alpha - back_alpha * src_alpha / 255; in CompositeRect() [all …]
|
/external/pdfium/core/fxge/agg/ |
D | fx_agg_driver.cpp | 64 int src_alpha = FXARGB_A(argb); in RgbByteOrderCompositeRect() local 65 if (src_alpha == 0) in RgbByteOrderCompositeRect() 77 if (src_alpha == 255) { in RgbByteOrderCompositeRect() 103 FXARGB_MAKE(src_alpha, src_r, src_g, src_b)); in RgbByteOrderCompositeRect() 108 back_alpha + src_alpha - back_alpha * src_alpha / 255; in RgbByteOrderCompositeRect() 110 int alpha_ratio = src_alpha * 255 / dest_alpha; in RgbByteOrderCompositeRect() 121 *dest_scan = FXDIB_ALPHA_MERGE(*dest_scan, src_r, src_alpha); in RgbByteOrderCompositeRect() 123 *dest_scan = FXDIB_ALPHA_MERGE(*dest_scan, src_g, src_alpha); in RgbByteOrderCompositeRect() 125 *dest_scan = FXDIB_ALPHA_MERGE(*dest_scan, src_b, src_alpha); in RgbByteOrderCompositeRect() 466 int src_alpha = GetSrcAlpha(clip_scan, col); in CompositeSpan() local [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_bld_blend_aos.c | 71 LLVMValueRef src_alpha; member 98 LLVMValueRef src_alpha = bld->src_alpha ? bld->src_alpha : bld->src; in lp_build_blend_factor_unswizzled() local 110 return src_alpha; in lp_build_blend_factor_unswizzled() 124 bld->saturate = lp_build_min(&bld->base, src_alpha, bld->base.zero); in lp_build_blend_factor_unswizzled() 130 bld->saturate = lp_build_min(&bld->base, src_alpha, bld->inv_dst); in lp_build_blend_factor_unswizzled() 148 bld->inv_src_alpha = lp_build_comp(&bld->base, src_alpha); in lp_build_blend_factor_unswizzled() 302 LLVMValueRef src_alpha, in lp_build_blend_aos() argument 329 bld.src_alpha = src_alpha; in lp_build_blend_aos() 335 if (!src_alpha) { in lp_build_blend_aos()
|
D | lp_state_fs.c | 1604 LLVMValueRef* src_alpha) in convert_alpha() argument 1612 lp_bld_quad_twiddle(gallivm, alpha_type, src_alpha, block_height, src_alpha); in convert_alpha() 1619 lp_build_conv(gallivm, alpha_type, row_type, &src_alpha[i], 1, &src_alpha[i], 1); in convert_alpha() 1628 lp_build_concat_n(gallivm, alpha_type, src_alpha, block_height, src_alpha, src_count); in convert_alpha() 1636 src_alpha[idx] = lp_build_extract_range(gallivm, src_alpha[(idx * pixels) / 4], in convert_alpha() 1644 src_alpha[i] = lp_build_broadcast(gallivm, in convert_alpha() 1645 lp_build_vec_type(gallivm, row_type), src_alpha[i]); in convert_alpha() 1675 src_alpha[i] = LLVMBuildShuffleVector(builder, in convert_alpha() 1676 src_alpha[idx1], in convert_alpha() 1677 src_alpha[idx2], in convert_alpha() [all …]
|
D | lp_bld_blend.h | 64 LLVMValueRef src_alpha,
|
/external/mesa3d/src/compiler/glsl/ |
D | lower_blend_equation_advanced.cpp | 299 ir_variable *src_alpha = f.make_temp(glsl_type::float_type, "__blend_src_a"); in calc_blend_result() local 316 f.emit(assign(src_alpha, swizzle_w(src))); in calc_blend_result() 317 f.emit(if_tree(equal(src_alpha, imm1(0)), in calc_blend_result() 322 div(swizzle_xyz(src), src_alpha))))); in calc_blend_result() 404 f.emit(assign(p0, mul(src_alpha, dst_alpha))); in calc_blend_result() 405 f.emit(assign(p1, mul(src_alpha, sub(imm1(1), dst_alpha)))); in calc_blend_result() 406 f.emit(assign(p2, mul(dst_alpha, sub(imm1(1), src_alpha)))); in calc_blend_result()
|
/external/pdfium/core/fxge/ |
D | cfx_renderdevice.cpp | 122 uint8_t CalculateDestAlpha(uint8_t back_alpha, int src_alpha) { in CalculateDestAlpha() argument 123 return back_alpha + src_alpha - back_alpha * src_alpha / 255; in CalculateDestAlpha() 133 int src_alpha, in ApplyDestAlpha() argument 138 uint8_t dest_alpha = CalculateDestAlpha(back_alpha, src_alpha); in ApplyDestAlpha() 139 ApplyAlpha(dest, b, g, r, src_alpha * 255 / dest_alpha); in ApplyDestAlpha() 149 int src_alpha) { in NormalizeArgb() argument 152 FXARGB_SETDIB(dest, FXARGB_MAKE(src_alpha, r, g, b)); in NormalizeArgb() 153 else if (src_alpha != 0) in NormalizeArgb() 154 ApplyDestAlpha(back_alpha, src_alpha, r, g, b, dest); in NormalizeArgb() 169 int src_alpha = CalcAlpha(TextGammaAdjust(src_value), a); in NormalizeDest() local [all …]
|
/external/webp/src/demux/ |
D | anim_decode.c | 242 const uint8_t src_alpha = (src[i] >> 24) & 0xff; in BlendPixelRowNonPremult() local 243 if (src_alpha != 0xff) { in BlendPixelRowNonPremult() 269 const uint8_t src_alpha = (src[i] >> 24) & 0xff; in BlendPixelRowPremult() local 270 if (src_alpha != 0xff) { in BlendPixelRowPremult()
|