Skip to content

Latest commit

 

History

History
92 lines (54 loc) · 2.96 KB

cbasevideorenderer-prepareperformancedata.md

File metadata and controls

92 lines (54 loc) · 2.96 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location ms.custom
The PreparePerformanceData method sets the m\_trLate and m\_trFrame values of the current frame.
c4c5701b-eccd-4259-a1d1-7c5000f6b2df
CBaseVideoRenderer.PreparePerformanceData method (Renbase.h)
reference
4/26/2023
APIRef
kbSyntax
CBaseVideoRenderer.PreparePerformanceData
COM
Strmbase.lib
Strmbase.dll
Strmbasd.lib
Strmbasd.dll
UpdateFrequency5

CBaseVideoRenderer.PreparePerformanceData method

[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 PreparePerformanceData method sets the m_trLate and m_trFrame values of the current frame.

Syntax

void PreparePerformanceData(
   int trLate,
   int trFrame
);

Parameters

trLate

Value indicating how late the sample was beyond its due time, in reference time units.

trFrame

Interframe time, in reference time units.

Return value

This method does not return a value.

Remarks

This member function sets m_trLate to the value of trLate and m_trFrame to the value of trFrame.

When the CBaseVideoRenderer::RecordFrameLateness member function is called from either CBaseVideoRenderer::OnRenderStart or CBaseVideoRenderer::OnDirectRender, it passes the values of m_trLate and m_trFrame for it to update the statistics. PreparePerformanceData is called from CBaseVideoRenderer::OnWaitEnd to set these data member values.

Requirements

Requirement Value
Header
Renbase.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CBaseVideoRenderer Class