summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-04 13:41:43 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-04 13:41:43 +0000
commitc366d41af080b9ac37117a9b27a249722c77f74e (patch)
tree29e26d4b0877fd0212c3867eb42c32df47d9bcd3 /src/lib/util.h
parent09fcd95ff5125d7238188c59aa40430acb45ecbc (diff)
Skip every other frame with 50fps sources.
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h
index 1af650085..26c6ed9fa 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -54,6 +54,13 @@ extern std::string md5_digest (std::string);
extern std::string md5_digest (void const *, int);
extern void ensure_ui_thread ();
+struct DCPFrameRate
+{
+ int frames_per_second;
+ int skip;
+ bool run_fast;
+};
+
enum ContentType {
STILL,
VIDEO
@@ -157,6 +164,7 @@ struct Rect
extern std::string crop_string (Position, Size);
extern int dcp_audio_sample_rate (int);
+extern DCPFrameRate dcp_frame_rate (float);
extern std::string colour_lut_index_to_name (int index);
extern int round_up (int, int);
extern std::multimap<std::string, std::string> read_key_value (std::istream& s);