ReactOS  0.4.14-dev-614-gbfd8a84
dib_new.c
Go to the documentation of this file.
1 /*
2  * PROJECT: Win32 subsystem
3  * LICENSE: See COPYING in the top level directory
4  * FILE: win32ss/gdi/dib/dib_new.c
5  * PURPOSE: ROP handling, function pointer arrays, misc
6  * PROGRAMMERS: Ge van Geldorp
7  */
8 
9 
10 #include <win32k.h>
11 #include "..\diblib\DibLib_interface.h"
12 
13 /* Static data */
14 
15 unsigned char notmask[2] = { 0x0f, 0xf0 };
16 unsigned char altnotmask[2] = { 0xf0, 0x0f };
17 
18 ULONG
19 DIB_DoRop(ULONG Rop, ULONG Dest, ULONG Source, ULONG Pattern)
20 {
21  return gapfnRop[Rop & 0xFF](Dest, Source, Pattern);
22 }
23 
25 {
26  /* 0 */
27  {
31  },
32  /* BMF_1BPP */
33  {
37  },
38  /* BMF_4BPP */
39  {
43  },
44  /* BMF_8BPP */
45  {
49  },
50  /* BMF_16BPP */
51  {
55  },
56  /* BMF_24BPP */
57  {
61  },
62  /* BMF_32BPP */
63  {
67  },
68  /* BMF_4RLE */
69  {
73  },
74  /* BMF_8RLE */
75  {
79  },
80  /* BMF_JPEG */
81  {
85  },
86  /* BMF_PNG */
87  {
91  }
92 };
93 
94 
96 {
97  return;
98 }
99 
101 {
102  return 0;
103 }
104 
106 {
107  return;
108 }
109 
111 {
112  return;
113 }
114 
116 {
117  return FALSE;
118 }
119 
120 BOOLEAN Dummy_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
121  SURFOBJ *PatternSurface, SURFOBJ *MaskSurf,
122  RECTL* DestRect, RECTL *SourceRect,
123  POINTL* MaskOrigin, BRUSHOBJ* Brush,
124  POINTL* BrushOrign,
125  XLATEOBJ *ColorTranslation,
126  ROP4 Rop)
127 {
128  return FALSE;
129 }
130 
132  RECTL* DestRect, RECTL *SourceRect,
133  XLATEOBJ *ColorTranslation, ULONG iTransColor)
134 {
135  return FALSE;
136 }
137 
139 {
140  return FALSE;
141 }
142 
143 
144 BOOLEAN
146  RECTL* SourceRect, CLIPOBJ* ClipRegion,
147  XLATEOBJ* ColorTranslation, BLENDOBJ* BlendObj)
148 {
149  return FALSE;
150 }
151 
152 /* EOF */
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
Definition: winddi.h:3706
VOID DIB_16BPP_HLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib16bpp.c:34
BOOLEAN DIB_8BPP_TransparentBlt(SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, XLATEOBJ *, ULONG)
Definition: dib8bpp.c:262
VOID Dummy_VLine(SURFOBJ *SurfObj, LONG x, LONG y1, LONG y2, ULONG c)
Definition: dib_new.c:110
const PFN_DOROP gapfnRop[256]
BOOLEAN Dummy_TransparentBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf, RECTL *DestRect, RECTL *SourceRect, XLATEOBJ *ColorTranslation, ULONG iTransColor)
Definition: dib_new.c:131
VOID DIB_8BPP_PutPixel(SURFOBJ *, LONG, LONG, ULONG)
Definition: dib8bpp.c:17
VOID DIB_24BPP_HLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib24bppc.c:16
VOID DIB_32BPP_HLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib32bppc.c:16
VOID DIB_32BPP_PutPixel(SURFOBJ *, LONG, LONG, ULONG)
Definition: dib32bpp.c:17
ULONG DIB_16BPP_GetPixel(SURFOBJ *, LONG, LONG)
Definition: dib16bpp.c:26
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
ULONG DIB_24BPP_GetPixel(SURFOBJ *, LONG, LONG)
Definition: dib24bpp.c:25
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
ULONG DIB_32BPP_GetPixel(SURFOBJ *, LONG, LONG)
Definition: dib32bpp.c:26
ULONG ROP4
Definition: winddi.h:128
_In_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL _In_ RECTL _In_ ULONG iTransColor
Definition: winddi.h:4190
BOOLEAN DIB_24BPP_AlphaBlend(SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, CLIPOBJ *, XLATEOBJ *, BLENDOBJ *)
Definition: dib24bpp.c:464
ULONG DIB_4BPP_GetPixel(SURFOBJ *, LONG, LONG)
Definition: dib4bpp.c:23
BOOLEAN DIB_32BPP_TransparentBlt(SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, XLATEOBJ *, ULONG)
Definition: dib32bpp.c:283
DIB_FUNCTIONS DibFunctionsForBitmapFormat[]
Definition: dib_new.c:24
BOOLEAN DIB_4BPP_TransparentBlt(SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, XLATEOBJ *, ULONG)
Definition: dib4bpp.c:373
long LONG
Definition: pedump.c:60
VOID DIB_1BPP_PutPixel(SURFOBJ *, LONG, LONG, ULONG)
Definition: dib1bpp.c:15
unsigned char BOOLEAN
VOID DIB_8BPP_HLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib8bpp.c:33
ULONG DIB_8BPP_GetPixel(SURFOBJ *, LONG, LONG)
Definition: dib8bpp.c:25
VOID DIB_1BPP_VLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib1bpp.c:44
const GLubyte * c
Definition: glext.h:8905
unsigned char altnotmask[2]
Definition: dib_new.c:16
ULONG DIB_DoRop(ULONG Rop, ULONG Dest, ULONG Source, ULONG Pattern)
Definition: dib_new.c:19
ULONG DIB_1BPP_GetPixel(SURFOBJ *, LONG, LONG)
Definition: dib1bpp.c:26
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
Definition: winddi.h:3706
VOID DIB_4BPP_HLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib4bpp.c:30
VOID DIB_4BPP_PutPixel(SURFOBJ *, LONG, LONG, ULONG)
Definition: dib4bpp.c:16
BOOLEAN DIB_16BPP_TransparentBlt(SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, XLATEOBJ *, ULONG)
Definition: dib16bpp.c:448
BOOLEAN Dummy_AlphaBlend(SURFOBJ *Dest, SURFOBJ *Source, RECTL *DestRect, RECTL *SourceRect, CLIPOBJ *ClipRegion, XLATEOBJ *ColorTranslation, BLENDOBJ *BlendObj)
Definition: dib_new.c:145
VOID DIB_1BPP_HLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib1bpp.c:34
VOID Dummy_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
Definition: dib_new.c:105
VOID DIB_32BPP_VLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib32bpp.c:35
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
VOID DIB_24BPP_PutPixel(SURFOBJ *, LONG, LONG, ULONG)
Definition: dib24bpp.c:17
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706
BOOLEAN DIB_24BPP_TransparentBlt(SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, XLATEOBJ *, ULONG)
Definition: dib24bpp.c:399
BOOLEAN DIB_XXBPP_StretchBlt(SURFOBJ *, SURFOBJ *, SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, POINTL *, BRUSHOBJ *, POINTL *, XLATEOBJ *, ROP4)
Definition: stretchblt.c:16
BOOLEAN Dummy_ColorFill(SURFOBJ *Dest, RECTL *DestRect, ULONG Color)
Definition: dib_new.c:138
unsigned int ULONG
Definition: retypes.h:1
BOOLEAN DIB_XXBPP_AlphaBlend(SURFOBJ *Dest, SURFOBJ *Source, RECTL *DestRect, RECTL *SourceRect, CLIPOBJ *ClipRegion, XLATEOBJ *ColorTranslation, BLENDOBJ *BlendObj)
Definition: alphablend.c:33
VOID DIB_4BPP_VLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib4bpp.c:45
VOID Dummy_PutPixel(SURFOBJ *SurfObj, LONG x, LONG y, ULONG c)
Definition: dib_new.c:95
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167
ULONG Dummy_GetPixel(SURFOBJ *SurfObj, LONG x, LONG y)
Definition: dib_new.c:100
VOID DIB_16BPP_PutPixel(SURFOBJ *, LONG, LONG, ULONG)
Definition: dib16bpp.c:17
BOOLEAN DIB_32BPP_AlphaBlend(SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, CLIPOBJ *, XLATEOBJ *, BLENDOBJ *)
Definition: dib32bpp.c:345
unsigned char notmask[2]
Definition: dib_new.c:15
VOID DIB_24BPP_VLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib24bpp.c:34
Definition: dib.h:20
BOOLEAN Dummy_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf, SURFOBJ *PatternSurface, SURFOBJ *MaskSurf, RECTL *DestRect, RECTL *SourceRect, POINTL *MaskOrigin, BRUSHOBJ *Brush, POINTL *BrushOrign, XLATEOBJ *ColorTranslation, ROP4 Rop)
Definition: dib_new.c:120
VOID DIB_8BPP_VLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib8bpp.c:39
BOOLEAN DIB_1BPP_TransparentBlt(SURFOBJ *, SURFOBJ *, RECTL *, RECTL *, XLATEOBJ *, ULONG)
Definition: dib1bpp.c:472
BOOLEAN Dummy_BitBlt(PBLTINFO BltInfo)
Definition: dib_new.c:115
VOID DIB_16BPP_VLine(SURFOBJ *, LONG, LONG, LONG, ULONG)
Definition: dib16bpp.c:90