/external/skia/src/codec/ |
SkCodecAnimationPriv.h | 13 * How to blend the current frame. 15 enum class Blend { 17 * Blend with the prior frame. This is the typical case, supported 23 * Do not blend.
|
SkFrameHolder.h | 30 , fBlend(SkCodecAnimation::Blend::kPriorFrame) 124 void setBlend(SkCodecAnimation::Blend blend) { 125 fBlend = blend; 128 SkCodecAnimation::Blend getBlend() const { 144 SkCodecAnimation::Blend fBlend;
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
intel_pixel.c | 70 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE || 71 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO || 72 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD || 73 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE || 74 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO || 75 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) { 76 DBG("fallback due to blend\n");
|
i915_state.c | 200 * set for LogicOp, Independent Alpha Blend, and Blending. 202 * could change the LogicOp or Independent Alpha Blend without subsequent 252 if (dw != i915->state.Blend[I915_BLENDREG_BLENDCOLOR1]) { 253 i915->state.Blend[I915_BLENDREG_BLENDCOLOR1] = dw; 289 GLuint iab = (i915->state.Blend[I915_BLENDREG_IAB] & 298 GLuint eqRGB = ctx->Color.Blend[0].EquationRGB; 299 GLuint eqA = ctx->Color.Blend[0].EquationA; 300 GLuint srcRGB = ctx->Color.Blend[0].SrcRGB; 301 GLuint dstRGB = ctx->Color.Blend[0].DstRGB; 302 GLuint srcA = ctx->Color.Blend[0].SrcA [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
Mosaic.cpp | 61 if (blendingType == Blend::BLEND_TYPE_FULL || 62 blendingType == Blend::BLEND_TYPE_PAN) 64 stripType = Blend::STRIP_TYPE_THIN; 102 if (blendingType == Blend::BLEND_TYPE_FULL || 103 blendingType == Blend::BLEND_TYPE_PAN || 104 blendingType == Blend::BLEND_TYPE_CYLPAN || 105 blendingType == Blend::BLEND_TYPE_HORZ) { 106 blender = new Blend(); 189 if (blendingType == Blend::BLEND_TYPE_PAN) 196 int ret = Blend::BLEND_RET_ERROR [all...] |
Blend.h | 18 // Blend.h 19 // $Id: Blend.h,v 1.23 2011/06/24 04:22:14 mbansal Exp $ 53 class Blend { 71 Blend(); 72 ~Blend();
|
Mosaic.h | 28 #include "Blend.h" 42 int blendingType = Blend::BLEND_TYPE_CYLPAN; 43 int stripType = Blend::STRIP_TYPE_THIN; 207 Blend *blender;
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
intel_pixel.c | 67 (effective_func(ctx->Color.Blend[0].SrcRGB, src_alpha_is_one) != GL_ONE || 68 effective_func(ctx->Color.Blend[0].DstRGB, src_alpha_is_one) != GL_ZERO || 69 ctx->Color.Blend[0].EquationRGB != GL_FUNC_ADD || 70 effective_func(ctx->Color.Blend[0].SrcA, src_alpha_is_one) != GL_ONE || 71 effective_func(ctx->Color.Blend[0].DstA, src_alpha_is_one) != GL_ZERO || 72 ctx->Color.Blend[0].EquationA != GL_FUNC_ADD)) { 73 DBG("fallback due to blend\n");
|
gen8_blend_state.c | 53 uint32_t *blend = brw_state_batch(brw, AUB_TRACE_BLEND_STATE, local 55 memset(blend, 0, size); 66 blend[0] |= GEN8_BLEND_ALPHA_TO_COVERAGE_ENABLE; 67 blend[0] |= GEN8_BLEND_ALPHA_TO_COVERAGE_DITHER_ENABLE; 70 blend[0] |= GEN8_BLEND_ALPHA_TO_ONE_ENABLE; 75 blend[0] |= 82 blend[0] |= GEN8_BLEND_COLOR_DITHER_ENABLE; 100 blend[1 + 2*i+1] |= 106 GLenum eqRGB = ctx->Color.Blend[i].EquationRGB; 107 GLenum eqA = ctx->Color.Blend[i].EquationA [all...] |
gen6_cc.c | 43 struct gen6_blend_state *blend; local 57 size = sizeof(*blend) * nr_draw_buffers; 58 blend = brw_state_batch(brw, AUB_TRACE_BLEND_STATE, 61 memset(blend, 0, size); 103 blend[b].blend1.logic_op_enable = 1; 104 blend[b].blend1.logic_op_func = 109 GLenum eqRGB = ctx->Color.Blend[b].EquationRGB; 110 GLenum eqA = ctx->Color.Blend[b].EquationA; 111 GLenum srcRGB = ctx->Color.Blend[b].SrcRGB; 112 GLenum dstRGB = ctx->Color.Blend[b].DstRGB [all...] |
brw_cc.c | 90 * Modify blend function to force destination alpha to 1.0 92 * If \c function specifies a blend function that uses destination alpha, 112 * Creates a CC unit packet from the current blend state. 167 GLenum eqRGB = ctx->Color.Blend[0].EquationRGB; 168 GLenum eqA = ctx->Color.Blend[0].EquationA; 169 GLenum srcRGB = ctx->Color.Blend[0].SrcRGB; 170 GLenum dstRGB = ctx->Color.Blend[0].DstRGB; 171 GLenum srcA = ctx->Color.Blend[0].SrcA; 172 GLenum dstA = ctx->Color.Blend[0].DstA; 174 /* If the renderbuffer is XRGB, we have to frob the blend function t [all...] |
/frameworks/base/libs/hwui/renderstate/ |
Blend.h | 29 class Blend { 53 Blend();
|
Blend.cpp | 16 #include <renderstate/Blend.h> 94 Blend::Blend() 101 void Blend::invalidate() { 106 void Blend::syncEnabled() { 114 void Blend::getFactors(SkBlendMode mode, ModeOrderSwap modeUsage, GLenum* outSrc, GLenum* outDst) { 120 void Blend::setFactors(GLenum srcMode, GLenum dstMode) { 142 void Blend::dump() { 143 ALOGD("Blend: enabled %d, func src %d, dst %d", mEnabled, mSrcMode, mDstMode);
|
RenderState.h | 21 #include "renderstate/Blend.h" 111 Blend& blend() { return *mBlend; } function in class:android::uirenderer::RenderState 134 Blend* mBlend = nullptr;
|
/external/mesa3d/src/mesa/main/ |
blend.c | 2 * \file blend.c 33 #include "blend.h" 42 * Check if given blend source factor is legal. 79 * Check if given blend destination factor is legal. 119 * Check if src/dest RGB/A blend factors are legal. If not generate 186 ctx->Color.Blend[buf]._UsesDualSrc = 187 (blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcRGB) || 188 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstRGB) || 189 blend_factor_is_dual_src(ctx->Color.Blend[buf].SrcA) || 190 blend_factor_is_dual_src(ctx->Color.Blend[buf].DstA)) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_blend.c | 45 * Convert GLenum blend tokens to pipe tokens. 46 * Both blend factors and blend funcs are accepted. 49 translate_blend(GLenum blend) 51 switch (blend) { 52 /* blend functions */ 64 /* blend factors */ 172 * Figure out if blend enables/state are different per rt. 192 struct pipe_blend_state *blend = &st->state.blend; local [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_blend.c | 31 * Only a few blend modes have been optimized (min, max, transparency, add) 75 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); 76 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); 77 assert(ctx->Color.Blend[0].SrcRGB == GL_ZERO); 78 assert(ctx->Color.Blend[0].DstRGB == GL_ONE); 101 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); 102 assert(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); 103 assert(ctx->Color.Blend[0].SrcRGB == GL_ONE); 104 assert(ctx->Color.Blend[0].DstRGB == GL_ZERO); 125 assert(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD) [all...] |
/frameworks/base/libs/hwui/ |
Glop.h | 164 struct Blend { 167 } blend; member in struct:android::uirenderer::Glop
|
GlopBuilder.cpp | 225 SkBlendMode mode, Blend::ModeOrderSwap modeUsage, 244 mOutGlop->blend = { GL_ZERO, GL_ZERO }; 247 || (mOutGlop->fill.texture.texture && mOutGlop->fill.texture.texture->blend) 253 Blend::getFactors(mode, modeUsage, 254 &mOutGlop->blend.src, &mOutGlop->blend.dst); 256 // These blend modes are not supported by OpenGL directly and have 259 // If the blend mode cannot be implemented using shaders, fall 260 // back to the default SrcOver blend mode instead 263 mDescription.swapSrcDst = (modeUsage == Blend::ModeOrderSwap::Swap) [all...] |
GlopBuilder.h | 21 #include "renderstate/Blend.h" 74 float alpha, SkBlendMode mode, Blend::ModeOrderSwap modeUsage); 116 SkBlendMode mode, Blend::ModeOrderSwap modeUsage,
|
/external/mesa3d/src/mesa/drivers/common/ |
driverfuncs.c | 220 ctx->Color.Blend[0].EquationRGB, 221 ctx->Color.Blend[0].EquationA); 224 ctx->Color.Blend[0].SrcRGB, 225 ctx->Color.Blend[0].DstRGB, 226 ctx->Color.Blend[0].SrcA, 227 ctx->Color.Blend[0].DstA);
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nv04_state_raster.c | 194 context_dirty(ctx, BLEND); 202 nv04->blend &= NV04_TEXTURED_TRIANGLE_BLEND_TEXTURE_MAP__MASK; 203 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_MASK_BIT_MSB | 207 nv04->blend |= get_blend_func(ctx->Color.Blend[0].DstRGB) << 28 | 208 get_blend_func(ctx->Color.Blend[0].SrcRGB) << 24; 211 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_BLEND_ENABLE; 215 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_GOURAUD; 217 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_FLAT; 221 nv04->blend |= NV04_TEXTURED_TRIANGLE_BLEND_SPECULAR_ENABLE [all...] |
nv10_state_raster.c | 71 PUSH_DATA (push, nvgl_blend_eqn(ctx->Color.Blend[0].EquationRGB)); 80 PUSH_DATA (push, nvgl_blend_func(ctx->Color.Blend[0].SrcRGB)); 81 PUSH_DATA (push, nvgl_blend_func(ctx->Color.Blend[0].DstRGB));
|
/frameworks/base/libs/hwui/tests/unit/ |
GlopBuilderTests.cpp | 35 if (expectedFill.filterMode == ProgramDescription::ColorFilterMode::Blend) { 56 static void expectBlendEq(Glop::Blend& expectedBlend, Glop::Blend& builtBlend) { 92 expectBlendEq(expectedGlop.blend, builtGlop.blend); 100 glop->blend = { GL_ZERO, GL_ZERO };
|
/external/pdfium/core/fxge/dib/ |
fx_dib_composite.cpp | 38 int Blend(int blend_mode, int back_color, int src_color) { 47 return Blend(FXDIB_BLEND_HARDLIGHT, src_color, back_color); 76 return Blend(FXDIB_BLEND_SCREEN, back_color, 2 * src_color - 255); 354 gray = Blend(blend_type, *dest_scan, gray); 530 gray = Blend(blend_type, *dest_scan, gray); 551 gray = Blend(blend_type, *dest_scan, gray); 620 gray = Blend(blend_type, *dest_scan, gray); 697 gray = Blend(blend_type, *dest_scan, gray); 790 : Blend(blend_type, *dest_scan, *src_scan); 842 : Blend(blend_type, *dest_scan, *src_scan) [all...] |