IWMVideoForceKeyFrame::SetKeyFrame method

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 codeDescription
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 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wmcodecdsp.h

See also

IWMVideoForceKeyFrame Interface

 

 

Show: