Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
| Microsoft DirectShow 9.0 | 
CEnumMediaTypes Class
.gif)
The CEnumMediaTypes class implements an enumerator for preferred media types.
This class implements the IEnumMediaTypes interface. It calls the following CBasePin methods:
- CBasePin::GetMediaType:Retrieves a media type, referenced by a zero-based index.
- CBasePin::GetMediaTypeVersion: Determines whether the set of preferred types has changed.
Whenever a pin alters its list of preferred media types, the pin increments the media-type version number. When this happens, the enumerator object is no longer synchronized with the pin, and the class methods return VFW_E_ENUM_OUT_OF_SYNC. Call the CEnumMediaTypes::Reset method to resynchronize the enumerator.
Requirements
** Header:** Declared in Amfilter.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
| Public Methods | |
| CEnumMediaTypes | Constructor method. | 
| ~CEnumMediaTypes | Destructor method. Virtual. | 
| IEnumMediaTypes Methods | |
| Clone | Makes a copy of the enumerator with the same enumeration state. | 
| Next | Retrieves a specified number of media types. | 
| Reset | Resets the enumeration sequence to the beginning. | 
| Skip | Skips over a specified number of media types. |