windows-nt/Source/XPSP1/NT/drivers/video/ms/ati/disp/dci.h
2020-09-26 16:20:57 +08:00

34 lines
1.3 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*************************************************************************
** **
** DCI.H **
** **
** Copyright (c) 1992, ATI Technologies Inc. **
*************************************************************************/
#define ROUND_UP_TO_64K(x) (((ULONG)(x) + 0x10000 - 1) & ~(0x10000 - 1))
typedef struct _DCISURF
{
// This union must appear at the beginning of the structure. It
// defines the public fields returned to GDI.
union {
DCISURFACEINFO SurfaceInfo;
DCIOFFSCREEN OffscreenInfo;
DCIOVERLAY OverlayInfo;
};
// The following are private fields we use to maintain the the
// DCI surface.
PDEV* ppdev; // To find our PDEV
ULONG Offset; // Location of surface in memory.
ULONG Size; // Size of surface in memory.
// This information could be changed
// to rectangles.
} DCISURF, *PDCISURF;
ULONG DCICreatePrimarySurface(PDEV *pdev, ULONG cjIn, VOID *pvIn, ULONG cjOut, VOID *pvOut);