MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / matches_range

Function matches_range

plugins/scripting/utils/properties-view.cpp:1058–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058static bool matches_range(media_frames_per_second &match,
1059 media_frames_per_second fps,
1060 const frame_rate_range_t &pair)
1061{
1062 auto val = media_frames_per_second_to_frame_interval(fps);
1063 auto max_ = media_frames_per_second_to_frame_interval(pair.first);
1064 auto min_ = media_frames_per_second_to_frame_interval(pair.second);
1065
1066 if (min_ <= val && val <= max_) {
1067 match = fps;
1068 return true;
1069 }
1070
1071 return false;
1072}
1073
1074static bool matches_ranges(media_frames_per_second &best_match,
1075 media_frames_per_second fps,

Callers 3

matches_rangesFunction · 0.85
UpdateRationalFPSWidgetsFunction · 0.85
CreateRationalFPSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected