45 DPRINT(
"EngAlphaBlend(psoDest:0x%p, psoSource:0x%p, ClipRegion:0x%p, ColorTranslation:0x%p,\n", psoDest, psoSource, ClipRegion, ColorTranslation);
46 DPRINT(
" DestRect:{0x%x, 0x%x, 0x%x, 0x%x}, SourceRect:{0x%x, 0x%x, 0x%x, 0x%x},\n",
47 DestRect->left, DestRect->top, DestRect->right, DestRect->bottom,
48 SourceRect->left, SourceRect->top, SourceRect->right, SourceRect->bottom);
49 DPRINT(
" BlendObj:{0x%x, 0x%x, 0x%x, 0x%x}\n", BlendObj->BlendFunction.BlendOp,
50 BlendObj->BlendFunction.BlendFlags, BlendObj->BlendFunction.SourceConstantAlpha,
51 BlendObj->BlendFunction.AlphaFormat);
54 OutputRect = *DestRect;
58 InputRect = *SourceRect;
60 if ( (InputRect.
top < 0) || (InputRect.
bottom < 0) ||
61 (InputRect.
left < 0) || (InputRect.
right < 0) ||
62 InputRect.
right > psoSource->sizlBitmap.cx ||
63 InputRect.
bottom > psoSource->sizlBitmap.cy )
69 if (psoDest == psoSource &&
70 !(OutputRect.
left >= SourceRect->right || InputRect.
left >= OutputRect.
right ||
71 OutputRect.
top >= SourceRect->bottom || InputRect.
top >= OutputRect.
bottom))
73 DPRINT1(
"Source and destination rectangles overlap!\n");
79 DPRINT1(
"BlendOp != AC_SRC_OVER (0x%x)\n", BlendObj->BlendFunction.BlendOp);
82 if (BlendObj->BlendFunction.BlendFlags != 0)
84 DPRINT1(
"BlendFlags != 0 (0x%x)\n", BlendObj->BlendFunction.BlendFlags);
87 if ((BlendObj->BlendFunction.AlphaFormat & ~
AC_SRC_ALPHA) != 0)
89 DPRINT1(
"Unsupported AlphaFormat (0x%x)\n", BlendObj->BlendFunction.AlphaFormat);
94 if (ClipRegion !=
NULL &&
95 (ClipRegion->rclBounds.left >= ClipRegion->rclBounds.right ||
96 ClipRegion->rclBounds.top >= ClipRegion->rclBounds.bottom))
103 if (!
IntEngEnter(&EnterLeaveSource, psoSource, &InputRect,
TRUE, &Translate, &InputObj))
107 InputRect.
left += Translate.
x;
108 InputRect.
right += Translate.
x;
109 InputRect.
top += Translate.
y;
110 InputRect.
bottom += Translate.
y;
112 if (!
IntEngEnter(&EnterLeaveDest, psoDest, &OutputRect,
FALSE, &Translate, &OutputObj))
117 OutputRect.
left += Translate.
x;
118 OutputRect.
right += Translate.
x;
119 OutputRect.
top += Translate.
y;
120 OutputRect.
bottom += Translate.
y;
125 ClippingType = (ClipRegion ==
NULL) ?
DC_TRIVIAL : ClipRegion->iDComplexity;
130 OutputObj, InputObj, &OutputRect, &InputRect, ClipRegion, ColorTranslation, BlendObj);
135 ClipRect.
left = ClipRegion->rclBounds.left + Translate.
x;
136 ClipRect.
right = ClipRegion->rclBounds.right + Translate.
x;
137 ClipRect.
top = ClipRegion->rclBounds.top + Translate.
y;
138 ClipRect.
bottom = ClipRegion->rclBounds.bottom + Translate.
y;
149 OutputObj, InputObj, &CombinedRect, &
Rect, ClipRegion, ColorTranslation, BlendObj);
161 for (
i = 0;
i < RectEnum.c;
i++)
163 ClipRect.
left = RectEnum.arcl[
i].left + Translate.
x;
164 ClipRect.
right = RectEnum.arcl[
i].right + Translate.
x;
165 ClipRect.
top = RectEnum.arcl[
i].top + Translate.
y;
166 ClipRect.
bottom = RectEnum.arcl[
i].bottom + Translate.
y;
177 OutputObj, InputObj, &CombinedRect, &
Rect, ClipRegion, ColorTranslation, BlendObj) && Ret;
220 if ((
pco->rclBounds.left >=
pco->rclBounds.right) ||
221 (
pco->rclBounds.top >=
pco->rclBounds.bottom))
277 return EngAlphaBlend(psoDest, psoSource, ClipRegion, ColorTranslation, &DestRect, &SourceRect, BlendObj);
#define ERROR_INVALID_PARAMETER
BOOL APIENTRY IntEngEnter(PINTENG_ENTER_LEAVE EnterLeave, SURFOBJ *psoDest, RECTL *DestRect, BOOL ReadOnly, POINTL *Translate, SURFOBJ **ppsoOutput)
BOOL APIENTRY IntEngLeave(PINTENG_ENTER_LEAVE EnterLeave)
VOID NTAPI ProbeForRead(IN CONST VOID *Address, IN SIZE_T Length, IN ULONG Alignment)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define EXCEPTION_EXECUTE_HANDLER
#define _SEH2_EXCEPT(...)
#define _SEH2_YIELD(__stmt)
PFN_DIB_AlphaBlend DIB_AlphaBlend
#define RtlCopyMemory(Destination, Source, Length)
#define CONTAINING_RECORD(address, type, field)
DIB_FUNCTIONS DibFunctionsForBitmapFormat[]
BOOL APIENTRY EngAlphaBlend(_Inout_ SURFOBJ *psoDest, _In_ SURFOBJ *psoSource, _In_opt_ CLIPOBJ *ClipRegion, _In_opt_ XLATEOBJ *ColorTranslation, _In_ RECTL *DestRect, _In_ RECTL *SourceRect, _In_ BLENDOBJ *BlendObj)
BOOL APIENTRY NtGdiEngAlphaBlend(IN SURFOBJ *psoDest, IN SURFOBJ *psoSource, IN CLIPOBJ *ClipRegion, IN XLATEOBJ *ColorTranslation, IN PRECTL upDestRect, IN PRECTL upSourceRect, IN BLENDOBJ *BlendObj)
BOOL APIENTRY IntEngAlphaBlend(_Inout_ SURFOBJ *psoDest, _In_ SURFOBJ *psoSource, _In_opt_ CLIPOBJ *pco, _In_opt_ XLATEOBJ *pxlo, _In_ RECTL *prclDest, _In_ RECTL *prclSrc, _In_ BLENDOBJ *pBlendObj)
#define GDIDEVFUNCS(SurfObj)
VOID FASTCALL RECTL_vMakeWellOrdered(_Inout_ RECTL *prcl)
BOOL FASTCALL RECTL_bIntersectRect(_Out_ RECTL *prclDst, _In_ const RECTL *prcl1, _In_ const RECTL *prcl2)
ENGAPI BOOL APIENTRY CLIPOBJ_bEnum(_In_ CLIPOBJ *pco, _In_ ULONG cj, _Out_bytecap_(cj) ULONG *pul)
_In_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL _In_ RECTL * prclSrc
_In_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ * pxlo
ENGAPI ULONG APIENTRY CLIPOBJ_cEnumStart(_Inout_ CLIPOBJ *pco, _In_ BOOL bAll, _In_ ULONG iType, _In_ ULONG iDirection, _In_ ULONG cLimit)
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
_In_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL _In_ RECTL _In_ BLENDOBJ * pBlendObj
_In_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL * prclDest
_In_ SURFOBJ _In_ CLIPOBJ * pco