MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / operator>

Method operator>

Source/MediaInfo/TimeCode.h:295–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 return Total1 < Total2;
294 }
295 bool operator> (const TimeCode& tc) const
296 {
297 uint64_t Total1 = ((uint64_t)GetHours()) << 16
298 | ((uint64_t)GetMinutes()) << 8
299 | ((uint64_t)GetSeconds());
300 uint64_t Total2 = ((uint64_t)tc.GetHours()) << 16
301 | ((uint64_t)tc.GetMinutes()) << 8
302 | ((uint64_t)tc.GetSeconds());
303 if (Total1 == Total2)
304 {
305 if (GetFramesMax() == tc.GetFramesMax())
306 return GetFrames() > tc.GetFrames();
307 uint64_t Mix1 = ((int64_t)GetFrames()) * (((int64_t)tc.GetFramesMax()) + 1);
308 uint64_t Mix2 = ((int64_t)tc.GetFrames()) * (((int64_t)GetFramesMax()) + 1);
309 return Mix1 > Mix2;
310 }
311 return Total1 > Total2;
312 }
313 bool operator<= (const TimeCode& tc) const
314 {
315 uint64_t Total1 = ((uint64_t)GetHours()) << 16

Callers

nothing calls this directly

Calls 5

GetHoursMethod · 0.80
GetMinutesMethod · 0.80
GetSecondsMethod · 0.80
GetFramesMaxMethod · 0.80
GetFramesMethod · 0.80

Tested by

no test coverage detected