PERFINFO_DSHOW_AVREND structure

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The PERFINFO_DSHOW_AVREND structure contains data for a trace event of type GUID_VIDEOREND.

The VMR logs this event immediately before rendering a frame.

Syntax

typedef struct PERFINFO_DSHOW_AVREND {
  ULONGLONG cycleCounter;
  ULONGLONG dshowClock;
  ULONGLONG sampleTime;
} PERFINFO_DSHOW_AVREND, *PPERFINFO_DSHOW_AVREND;

Members

cycleCounter

Latest clock cycle count (RDTSC instruction).

dshowClock

Current reference time, as returned by the IReferenceClock::GetTime method.

sampleTime

Start time of the sample.

Remarks

To enable this event, you must set the DXMPERF_VIDEOREND flag in the EnableFlag parameter when you call EnableTrace. This flag is defined in the header file Dxmperf.h, which is included in the DirectShow base classes.

To log this event from a DirectShow filter, use the PERFLOG_VIDEOREND macro, which is defined in Dxmperf.h.

Requirements

Requirement Value
Header
Perfstruct.h

See also

DirectShow Structures

Event Tracing in DirectShow

Trace Event GUIDs