Jump to content

MMProgRef - DIVE Functions

From EDM2

Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation

Multimedia Programming Reference
  1. Introduction
  2. What's New...
  3. MCI Functions
  4. High-Level Macro Service Functions
  5. Subsystem Messages
  6. Notification Messages
  7. MCI Command Messages
  8. String Commands
  9. Memory Playlist Commands
  10. Graphic Button Control
  11. Secondary Window Functions
  12. MMIO Functions
  13. MMIO Messages
  14. CODEC Messages
  15. DIVE Functions
  16. Real-Time MIDI Functions
  17. SPI Functions
  18. Data Stream State Table
  19. SMH Messages
  20. DDCMD Messages
  21. VSD Commands
  22. SHD Messages
  23. SHC Messages
  24. Data Types
  25. Types of MIDI Messages
  26. Multimedia Specification Overview
  27. Resource Interchange File Format
  28. Multimedia File Formats
  29. RIFF Compound Files and Elements - Sharing and Access
  30. Return Codes
  31. Notices
  32. Glossary

Direct interface video extensions (DIVE) provide optimized blitting performance for motion video subsystems and applications that perform rapid screen updates in the OS/2 PM and full-screen environments. Using the DIVE interface, applications can either write directly to video memory or use the DIVE blitter. The DIVE blitter will take advantage of acceleration hardware when present and applicable to the function being performed.

The following table describes the DIVE functions.

Function Description
DiveAcquireFrameBuffer Allows the frame buffer to be serialized.
DiveAllocImageBuffer Allocates a buffer to contain an image.
DiveBeginImageBufferAccess Begins access to the image buffer.
DiveBlitImage Transfers an image from the source to its destination.
DiveBlitImageLines Transfers only the changed lines of an image from the source to its destination.
DiveCalcFrameBufferAddress Calculates linear frame buffer address.
DiveClose Closes instance.
DiveDeacquireFrameBuffer Releases exclusive access to the frame buffer.
DiveEndImageBufferAccess Ends access to the image buffer.
DiveFreeImageBuffer Deallocates an image buffer allocated by DiveAllocImageBuffer.
DiveOpen Opens a display engine instance.
DiveQueryCaps Queries display capabilities.
DiveSetDestinationPalette Sets palette associated with the destination of DiveBlitImage.
DiveSetupBlitter Sets up blitter operations.
DiveSetSourcePalette Sets the palette associated with source data.
DiveSwitchBank Selects VRAM bank for bank-switched displays.