PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

GetVideoParameters (csCode = 18)

The required GetVideoParameters routine returns video parameter information.

OSErr = Status (theDeviceRefNum, cscGetVideoParameters,
                     &theVDVideoParametersRec);
--> csDisplayModeID
ID of the desired DisplayModeID
--> csDepthMode
Relative bit depth
<-> *csVPBlockPtr
Pointer to a VPBlock
<-- csPageCount
Number of pages supported for resolution and relative bit depth
<-- csDeviceType
Direct, fixed, or CLUT

The GetVideoParameters routine accepts csDisplayModeID, csDepthMode, and a pointer to a VPBlock structure, which it fills in with the data for the specified csDisplayModeID and csDepthMode. It also returns the pageCount for that particular bit depth, as well as the deviceType.

Note

In PCI-based graphics drivers, the csVPBlockPtr->vpBaseOffset is always 0. The base address of video RAM for the current page, is the BaseAddress value returned by the GetCurrentMode routine.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)