Share via


Exposing Capture and Compression Formats

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This section describes how to return capture and compression formats by using the IAMStreamConfig::GetStreamCaps method. This method can get more information about accepted media types than the traditional way of enumerating a pin's media types, so you should typically use it instead. IAMStreamConfig::GetStreamCaps can return information about the kinds of formats allowed for audio or video.

The IAMStreamConfig::GetStreamCaps method returns an array of pairs of media type and capabilities structures. The media type is an AM_MEDIA_TYPE structure and the capabilities are represented either by an AUDIO_STREAM_CONFIG_CAPS structure or a VIDEO_STREAM_CONFIG_CAPS structure.

The following topics provide additional information.

See Also

Concepts

Writing Capture Filters