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.
Specifies that the current frame will be encoded as a key frame.
Syntax
HRESULT SetKeyFrame();
Parameters
This method has no parameters.
Return Value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
S_OK | The method succeeded. |
Remarks
To force the encoder to make the current frame a key frame, call this method before calling IMediaObject::ProcessOutput or IMFTransform::ProcessOutput.
Each call to this method applies to a single frame. After processing this frame, the encoder resumes automatically assigning key frames (bounded by the maximum key frame distance).
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Header |
Wmcodecdsp.h |
See Also
IWMVideoForceKeyFrame Interface
Send comments about this topic to Microsoft
Build date: 4/7/2010