MF_SINK_WRITER_ENCODER_CONFIG attribute
Contains a pointer to a property store with encoding properties.
Data type
IUnknown*
Remarks
The value of this attribute is an IPropertyStore pointer.
This attribute enables an application to set encoding properties when using the Sink Writer. To set this attribute, perform the following steps:
- Call PSCreateMemoryPropertyStore to create a new property store.
- Set encoder properties on the property store. The available properties depends on the encoder. For more information, see Codec Objects.
- Call MFCreateAttributes to create a new attribute store.
- Call IMFAttributes::SetUnknown to set the IPropertyStore pointer on the attribute store.
- Create a new instance of the Sink Writer. Pass the IMFAttributes pointer to the creation function. For more information, see Sink Writer Attributes.
The Sink Writer sets the properties on the encoder before setting the media types.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 8 [desktop apps | UWP apps] |
Minimum supported server |
Windows Server 2012 [desktop apps | UWP apps] |
Header |
|
See also