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

Function TimeDiff

Source/renbase2.cpp:7–10  ·  view source on GitHub ↗

Helper function for clamping time differences

Source from the content-addressed store, hash-verified

5
6// Helper function for clamping time differences
7int inline TimeDiff(const REFERENCE_TIME rt)
8{
9 return std::clamp(rt, -(50 * UNITS), 50 * UNITS);
10}
11
12CBaseVideoRenderer2::CBaseVideoRenderer2(
13 REFCLSID RenderClass, // CLSID for this renderer

Callers 1

ShouldDrawSampleNowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected