MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / OnDirectRender

Method OnDirectRender

Source/renbase2.cpp:228–236  ·  view source on GitHub ↗

Called in place of OnRenderStart..OnRenderEnd When a DirectDraw image is drawn

Source from the content-addressed store, hash-verified

226// Called in place of OnRenderStart..OnRenderEnd
227// When a DirectDraw image is drawn
228void CBaseVideoRenderer2::OnDirectRender(IMediaSample *pMediaSample)
229{
230 m_trRenderAvg = 0;
231 m_trRenderLast = 5000000; // If we mode switch, we do NOT want this
232 // to inhibit the new average getting going!
233 // so we set it to half a second
234 RecordFrameLateness(m_trLate, m_trFrame);
235 ThrottleWait();
236} // OnDirectRender
237
238// Called just before we start drawing. All we do is to get the current clock
239// time (from the system) and return. We have to store the start render time

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected