projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in log message.
[dcpomatic.git]
/
src
/
lib
/
frame_interval_checker.cc
diff --git
a/src/lib/frame_interval_checker.cc
b/src/lib/frame_interval_checker.cc
index 27c0224ec80d0e50ace7996a0dafd3b90843348a..e40958a427bd866006684e571d5e98af6a8cb606 100644
(file)
--- a/
src/lib/frame_interval_checker.cc
+++ b/
src/lib/frame_interval_checker.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2020
-2021
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,12
+18,16
@@
*/
*/
+
#include "frame_interval_checker.h"
#include "frame_interval_checker.h"
+
using namespace dcpomatic;
using namespace dcpomatic;
+
int const FrameIntervalChecker::_frames = 16;
int const FrameIntervalChecker::_frames = 16;
+
void
FrameIntervalChecker::feed (ContentTime time, double frame_rate)
{
void
FrameIntervalChecker::feed (ContentTime time, double frame_rate)
{
@@
-39,6
+43,7
@@
FrameIntervalChecker::feed (ContentTime time, double frame_rate)
_last = time;
}
_last = time;
}
+
FrameIntervalChecker::Guess
FrameIntervalChecker::guess () const
{
FrameIntervalChecker::Guess
FrameIntervalChecker::guess () const
{
@@
-46,7
+51,7
@@
FrameIntervalChecker::guess () const
/* How soon can you land?
* I can't tell.
* You can tell me, I'm a doctor.
/* How soon can you land?
* I can't tell.
* You can tell me, I'm a doctor.
- * No
m
I mean I'm just not sure.
+ * No I mean I'm just not sure.
* Can't you take a guess?
* Well, not for another two hours.
* You can't take a guess for another two hours?
* Can't you take a guess?
* Well, not for another two hours.
* You can't take a guess for another two hours?
@@
-55,7
+60,7
@@
FrameIntervalChecker::guess () const
}
int near_1 = 0;
}
int near_1 = 0;
-
BOOST_FOREACH (double i,
_intervals) {
+
for (auto i:
_intervals) {
if (i > 0.5) {
++near_1;
}
if (i > 0.5) {
++near_1;
}