Поделиться через


IAMDroppedFrames::GetNumDropped

 
Microsoft DirectShow 9.0

IAMDroppedFrames::GetNumDropped

The GetNumDropped method retrieves the total number of frames that the filter has dropped since it started streaming.

Syntax

  HRESULT GetNumDropped(
  long *plDropped
);

Parameters

plDropped

[out]  Pointer to a variable that receives the number of dropped frames.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_POINTER NULL pointer argument.

Remarks

The filter resets the count to zero when it transitions from stopped to paused.

If your application uses the IAMStreamControl interface to control a pin, the driver might continue to count dropped and non-dropped frames while the pin is off. To get an accurate count, call this method once when you turn on the pin, and again when you turn off the pin. The difference is the total number of dropped frames. (If the start time occurs later than the call to IAMStreamControl::StartAt, the application should listen for the EC_STREAM_CONTROL_STARTED event.) These remarks also apply if your application uses the ICaptureGraphBuilder2::ControlStream method.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also