Microsoft DirectX 9.0

IDVSplitter::DiscardAlternateVideoFrames

The DiscardAlternateVideoFrames method discards half of the frames in the video stream. For NTSC, the frame rate is reduced from 30 frames per second (fps) to 15 fps. For PAL, the frame rate is reduced from 25 fps to 12.5 fps.

Syntax

HRESULT DiscardAlternateVideoFrames(
  int nDiscard
);

Parameters

nDiscard

[in] Flag that specifies whether to discard frames. If the value is non-zero, the filter discards alternate frames. If the value is zero, the filter delivers every frame.

Return Values

Returns an HRESULT value. Possible values include those shown in the following table.

Return code Description
S_OK Success.
E_UNEXPECTED Filter is paused or running.

See Also