IWMVideoForceKeyFrame::SetKeyFrame method (wmcodecdsp.h)

Specifies that the current frame will be encoded as a key frame.

Syntax

HRESULT SetKeyFrame();

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

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wmcodecdsp.h

See also

IWMVideoForceKeyFrame Interface