IWMCodecInfo interface (wmsdkidl.h)
[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The IWMCodecInfo interface retrieves the number and types of codecs available. You can use this interface to get information about supported compressed data formats for creating custom profiles.
Individual codec formats exist only for audio codecs. The characteristics of compressed video will vary based upon the frame size and color depth of the original digital media and, therefore, cannot be predicted until the time of encoding.
An IWMCodecInfo interface exists for each profile manager object. You can obtain a pointer to an instance of this interface by calling the QueryInterface method of any other interface in the profile manager object, typically IWMProfileManager.
The methods of the IWMCodecInfo interface are inherited by IWMCodecInfo2 and IWMCodecInfo3.
Inheritance
The IWMCodecInfo interface inherits from the IUnknown interface. IWMCodecInfo also has these types of members:
Methods
The IWMCodecInfo interface has these methods.
IWMCodecInfo::GetCodecFormat The GetCodecFormat method retrieves one format supported by a specified codec. This method retrieves a pointer to the IWMStreamConfig interface of a stream configuration object containing the stream settings for the supported format. |
IWMCodecInfo::GetCodecFormatCount The GetCodecFormatCount method retrieves the number of formats supported by the specified codec. Each codec format is a stream configuration that is valid for use with the codec. |
IWMCodecInfo::GetCodecInfoCount The GetCodecInfoCount method retrieves the number of supported codecs for a specified major type of digital media (audio or video). |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wmsdkidl.h |