Microsoft Windows CE 3.0  

Exploiting Hardware Features

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Video-port hardware often supports special features for adjusting color, shrinking or zooming images, handling VBI data, or skipping fields. The HAL provides information about these features by using flags in the DDVIDEOPORTCAPSstructure. You retrieve the capabilities of a machine's video-port hardware by calling the IDDVideoPortContainer::EnumVideoPortsmethod.

To exploit these features for playback, you use the IDirectDrawVideoPort::StartVideomethod, which uses a DDVIDEOPORTINFOstructure to request that hardware features be used to modify image data before placing it in the frame buffer or for display. By setting values and flags in this structure, you can specify the source rectangle used with the overlay surface, indicate cropping regions, request hardware scaling, and set pixel formats.

DirectDrawVideoPort objects do not emulate video-port hardware services.



 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.