ReactOS
0.4.15-dev-1632-g4e289ce
|
Go to the source code of this file.
Classes | |
struct | _SURFACE |
Macros | |
#define | BMF_POOLALLOC 0x100 |
#define | SURFACE_AllocSurfaceWithHandle() ((PSURFACE) GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_BITMAP, sizeof(SURFACE))) |
#define | SURFACE_ShareLockSurface(hBMObj) ((PSURFACE) GDIOBJ_ShareLockObj ((HGDIOBJ) hBMObj, GDI_OBJECT_TYPE_BITMAP)) |
#define | SURFACE_UnlockSurface(pBMObj) GDIOBJ_vUnlockObject ((POBJ)pBMObj) |
#define | SURFACE_ShareUnlockSurface(pBMObj) GDIOBJ_vDereferenceObject ((POBJ)pBMObj) |
#define | GDIDEV(SurfObj) ((PDEVOBJ *)((SurfObj)->hdev)) |
#define | GDIDEVFUNCS(SurfObj) ((PDEVOBJ *)((SurfObj)->hdev))->DriverFunctions |
#define | BitsPerFormat(Format) gajBitsPerFormat[Format] |
#define | WIDTH_BYTES_ALIGN32(cx, bpp) ((((cx) * (bpp) + 31) & ~31) >> 3) |
#define | WIDTH_BYTES_ALIGN16(cx, bpp) ((((cx) * (bpp) + 15) & ~15) >> 3) |
Typedefs | |
typedef struct _SURFACE | SURFACE |
typedef struct _SURFACE * | PSURFACE |
Enumerations | |
enum | _SURFACEFLAGS { SHAREACCESS_SURFACE = 0x00000200, UMPD_SURFACE = 0x00040000, MIRROR_SURFACE = 0x00080000, DIRECTDRAW_SURFACE = 0x00100000, DRIVER_CREATED_SURFACE = 0x00200000, ENG_CREATE_DEVICE_SURFACE = 0x00400000, DDB_SURFACE = 0x00800000, LAZY_DELETE_SURFACE = 0x01000000, BANDING_SURFACE = 0x02000000, API_BITMAP = 0x04000000, PALETTE_SELECT_SET = 0x08000000, UNREADABLE_SURFACE = 0x10000000, DYNAMIC_MODE_PALETTE = 0x20000000, ABORT_SURFACE = 0x40000000, PDEV_SURFACE = 0x80000000 } |
Functions | |
FORCEINLINE VOID | SURFACE_ShareLockByPointer (PSURFACE psurf) |
ULONG FASTCALL | BitmapFormat (ULONG cBits, ULONG iCompression) |
VOID NTAPI | SURFACE_vCleanup (PVOID ObjectBody) |
PSURFACE NTAPI | SURFACE_AllocSurface (_In_ USHORT iType, _In_ ULONG cx, _In_ ULONG cy, _In_ ULONG iFormat, _In_ ULONG fjBitmap, _In_opt_ ULONG cjWidth, _In_opt_ ULONG cjBits, _In_opt_ PVOID pvBits) |
FORCEINLINE VOID | SURFACE_vSetPalette (_Inout_ PSURFACE psurf, _In_ PPALETTE ppal) |
Variables | |
UCHAR | gajBitsPerFormat [] |
#define SURFACE_AllocSurfaceWithHandle | ( | ) | ((PSURFACE) GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_BITMAP, sizeof(SURFACE))) |
#define SURFACE_ShareLockSurface | ( | hBMObj | ) | ((PSURFACE) GDIOBJ_ShareLockObj ((HGDIOBJ) hBMObj, GDI_OBJECT_TYPE_BITMAP)) |
#define SURFACE_ShareUnlockSurface | ( | pBMObj | ) | GDIOBJ_vDereferenceObject ((POBJ)pBMObj) |
#define SURFACE_UnlockSurface | ( | pBMObj | ) | GDIOBJ_vUnlockObject ((POBJ)pBMObj) |
Definition at line 41 of file surface.h.
Definition at line 39 of file surface.c.
Referenced by DIB_CreateDIBSection(), GreCreateBitmap(), IntCreateDIBitmap(), IntSetDIBits(), NtGdiCreateBitmap(), NtGdiDdDDICreateDCFromMemory(), NtGdiSetDIBitsToDeviceInternal(), and NtGdiStretchDIBitsInternal().
PSURFACE NTAPI SURFACE_AllocSurface | ( | _In_ USHORT | iType, |
_In_ ULONG | cx, | ||
_In_ ULONG | cy, | ||
_In_ ULONG | iFormat, | ||
_In_ ULONG | fjBitmap, | ||
_In_opt_ ULONG | cjWidth, | ||
_In_opt_ ULONG | cjBits, | ||
_In_opt_ PVOID | pvBits | ||
) |
Definition at line 116 of file surface.c.
Referenced by EngCreateBitmap(), EngCreateDeviceBitmap(), EngCreateDeviceSurface(), GreCreateBitmapEx(), IntEngMaskBlt(), NtGdiCreateBitmap(), NtGdiDdDDICreateDCFromMemory(), NtGdiGetPixel(), and UserDrawIconEx().
FORCEINLINE VOID SURFACE_ShareLockByPointer | ( | PSURFACE | psurf | ) |
Definition at line 95 of file surface.h.
Referenced by NtGdiExtEscape().
Definition at line 67 of file surface.c.
Definition at line 136 of file surface.h.
Referenced by BITMAP_CopyBitmap(), DIB_CreateDIBSection(), EngAssociateSurface(), EngModifySurface(), IntCreateCompatibleBitmap(), IntCreateDIBitmap(), NtGdiDdDDICreateDCFromMemory(), and SURFACE_AllocSurface().
UCHAR gajBitsPerFormat[] |
Definition at line 21 of file surface.c.
Referenced by DC_bIsBitmapCompatible(), EngBitBlt(), GreCreateBitmapEx(), NtGdiCreateBitmap(), NtGdiMaskBlt(), and SURFACE_AllocSurface().