diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-22 14:15:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-22 14:15:19 +0100 |
| commit | db67e0d5c855127862bb8dd579d41e4a11f84798 (patch) | |
| tree | bbd06adc2e72847fd23dcd7a81c26b67ce2f5174 /src/lib/util.h | |
| parent | 4f466f9d204c19f9085d0a8cc9e9daaa2228371d (diff) | |
Make repeat a number rather than a bool.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index b8ea6ebec..70cb3bb0c 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -88,17 +88,15 @@ struct FrameRateConversion float factor () const { if (skip) { return 0.5; - } else if (repeat) { - return 2; } - return 1; + return repeat; } /** true to skip every other frame */ bool skip; - /** true to repeat every frame once */ - bool repeat; + /** number of times to use each frame (e.g. 1 is normal, 2 means repeat each frame once, and so on) */ + int repeat; /** true if this DCP will run its video faster or slower than the source * without taking into account `repeat' nor `skip'. * (e.g. change_speed will be true if |
