ReactOS  0.4.14-dev-49-gfb4591c
dmemmgr.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _VMEML
 
struct  _VMEMR
 
struct  _SURFACEALIGNMENT
 
struct  _HEAPALIGNMENT
 
struct  _VMEMHEAP
 
struct  _DD_GETHEAPALIGNMENTDATA
 

Macros

#define __GNU_EXTENSION
 
#define FLATPTR_DEFINED
 
#define SURFACEALIGN_DISCARDABLE   0x00000001
 
#define VMEMHEAP_LINEAR   0x00000001
 
#define VMEMHEAP_RECTANGULAR   0x00000002
 
#define VMEMHEAP_ALIGNMENT   0x00000004
 
#define DD_GETHEAPALIGNMENTDATA_DECLARED
 

Typedefs

typedef ULONG_PTR FLATPTR
 
typedef struct _VIDMEMLPVIDMEM
 
typedef struct _VMEML VMEML
 
typedef struct _VMEMLLPVMEML
 
typedef struct _VMEMLLPLPVMEML
 
typedef struct _VMEMR VMEMR
 
typedef struct _VMEMRLPVMEMR
 
typedef struct _VMEMRLPLPVMEMR
 
typedef struct _SURFACEALIGNMENT SURFACEALIGNMENT
 
typedef struct _SURFACEALIGNMENTLPSURFACEALIGNMENT
 
typedef struct _HEAPALIGNMENT HEAPALIGNMENT
 
typedef struct _HEAPALIGNMENTLPHEAPALIGNMENT
 
typedef struct _VMEMHEAP VMEMHEAP
 
typedef struct _VMEMHEAPLPVMEMHEAP
 
typedef struct _DD_GETHEAPALIGNMENTDATA DD_GETHEAPALIGNMENTDATA
 
typedef DD_GETHEAPALIGNMENTDATAPDD_GETHEAPALIGNMENTDATA
 

Functions

void WINAPI VidMemFree (LPVMEMHEAP pvmh, FLATPTR ptr)
 
FLATPTR WINAPI VidMemAlloc (LPVMEMHEAP pvmh, DWORD width, DWORD height)
 
FLATPTR WINAPI HeapVidMemAllocAligned (LPVIDMEM lpVidMem, DWORD dwWidth, DWORD dwHeight, LPSURFACEALIGNMENT lpAlignment, LPLONG lpNewPitch)
 

Macro Definition Documentation

◆ __GNU_EXTENSION

#define __GNU_EXTENSION

Definition at line 18 of file dmemmgr.h.

◆ DD_GETHEAPALIGNMENTDATA_DECLARED

#define DD_GETHEAPALIGNMENTDATA_DECLARED

Definition at line 147 of file dmemmgr.h.

◆ FLATPTR_DEFINED

#define FLATPTR_DEFINED

Definition at line 30 of file dmemmgr.h.

◆ SURFACEALIGN_DISCARDABLE

#define SURFACEALIGN_DISCARDABLE   0x00000001

Definition at line 45 of file dmemmgr.h.

◆ VMEMHEAP_ALIGNMENT

#define VMEMHEAP_ALIGNMENT   0x00000004

Definition at line 48 of file dmemmgr.h.

◆ VMEMHEAP_LINEAR

#define VMEMHEAP_LINEAR   0x00000001

Definition at line 46 of file dmemmgr.h.

◆ VMEMHEAP_RECTANGULAR

#define VMEMHEAP_RECTANGULAR   0x00000002

Definition at line 47 of file dmemmgr.h.

Typedef Documentation

◆ DD_GETHEAPALIGNMENTDATA

◆ FLATPTR

typedef ULONG_PTR FLATPTR

Definition at line 29 of file dmemmgr.h.

◆ HEAPALIGNMENT

◆ LPHEAPALIGNMENT

◆ LPLPVMEML

typedef struct _VMEML * LPLPVMEML

◆ LPLPVMEMR

typedef struct _VMEMR * LPLPVMEMR

◆ LPSURFACEALIGNMENT

◆ LPVIDMEM

Definition at line 33 of file dmemmgr.h.

◆ LPVMEMHEAP

◆ LPVMEML

typedef struct _VMEML * LPVMEML

◆ LPVMEMR

typedef struct _VMEMR * LPVMEMR

◆ PDD_GETHEAPALIGNMENTDATA

Definition at line 146 of file dmemmgr.h.

◆ SURFACEALIGNMENT

◆ VMEMHEAP

◆ VMEML

typedef struct _VMEML VMEML

◆ VMEMR

typedef struct _VMEMR VMEMR

Function Documentation

◆ HeapVidMemAllocAligned()

FLATPTR WINAPI HeapVidMemAllocAligned ( LPVIDMEM  lpVidMem,
DWORD  dwWidth,
DWORD  dwHeight,
LPSURFACEALIGNMENT  lpAlignment,
LPLONG  lpNewPitch 
)

Definition at line 20 of file eng.c.

25 {
27 
28  if (pfnHeapVidMemAllocAligned == NULL)
29  {
30  DPRINT1("Warning: no pfnHeapVidMemAllocAligned\n");
31  return 0;
32  }
33 
34  DPRINT1("Calling dxg.sys pfnHeapVidMemAllocAligned\n");
35  return pfnHeapVidMemAllocAligned(lpVidMem, dwWidth, dwHeight, lpAlignment, lpNewPitch);
36 }
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR dwHeight[]
Definition: provider.c:60
#define DXG_INDEX_DxDdHeapVidMemAllocAligned
Definition: dxg.h:94
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
FLATPTR(APIENTRY * PGD_HEAPVIDMEMALLOCALIGNED)(LPVIDMEM, DWORD, DWORD, LPSURFACEALIGNMENT, LPLONG)
Definition: intddraw.h:104
#define DPRINT1
Definition: precomp.h:8
static const WCHAR dwWidth[]
Definition: provider.c:59

◆ VidMemAlloc()

FLATPTR WINAPI VidMemAlloc ( LPVMEMHEAP  pvmh,
DWORD  width,
DWORD  height 
)

◆ VidMemFree()

void WINAPI VidMemFree ( LPVMEMHEAP  pvmh,
FLATPTR  ptr 
)

Definition at line 43 of file eng.c.

45 {
47 
48  if (pfnVidMemFree == NULL)
49  {
50  DPRINT1("Warning: no pfnVidMemFree\n");
51  }
52  else
53  {
54  DPRINT1("Calling dxg.sys pfnVidMemFree\n");
55  pfnVidMemFree(pvmh, ptr);
56  }
57 }
VOID(APIENTRY * PGD_VIDMEMFREE)(LPVMEMHEAP, FLATPTR)
Definition: intddraw.h:105
#define DXG_INDEX_DxDdHeapVidMemFree
Definition: dxg.h:95
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define DPRINT1
Definition: precomp.h:8