summaryrefslogtreecommitdiff
path: root/src/lib/player.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-24 01:05:14 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-24 23:35:11 +0000
commit14cccb179fff7bbbf422e13f9d2e3264239c93c7 (patch)
tree15b8c2f07965f22aabd3fcfa0494ffa51d8e09e6 /src/lib/player.h
parent63eb29920980dfecf4c5f06a1746dad830b7ea32 (diff)
Speed some operations by re-using the last PlayerVideo but with
updated metadata (where possible). Helps with #1194.
Diffstat (limited to 'src/lib/player.h')
-rw-r--r--src/lib/player.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/player.h b/src/lib/player.h
index 8142f8e7f..fc7117ba2 100644
--- a/src/lib/player.h
+++ b/src/lib/player.h
@@ -48,6 +48,16 @@ class AudioBuffers;
class ReferencedReelAsset;
class Shuffler;
+class PlayerProperty
+{
+public:
+ static int const VIDEO_CONTAINER_SIZE;
+ static int const PLAYLIST;
+ static int const FILM_CONTAINER;
+ static int const FILM_VIDEO_FRAME_RATE;
+ static int const DCP_DECODE_REDUCTION;
+};
+
/** @class Player
* @brief A class which can `play' a Playlist.
*/
@@ -62,6 +72,9 @@ public:
std::list<boost::shared_ptr<Font> > get_subtitle_fonts ();
std::list<ReferencedReelAsset> get_reel_assets ();
+ dcp::Size video_container_size () const {
+ return _video_container_size;
+ }
void set_video_container_size (dcp::Size);
void set_ignore_video ();
@@ -75,9 +88,10 @@ public:
* the last frame again it would look different. This is not emitted after
* a seek.
*
- * The parameter is true if these signals are currently likely to be frequent.
+ * The first parameter is what changed.
+ * The second parameter is true if these signals are currently likely to be frequent.
*/
- boost::signals2::signal<void (bool)> Changed;
+ boost::signals2::signal<void (int, bool)> Changed;
/** Emitted when a video frame is ready. These emissions happen in the correct order. */
boost::signals2::signal<void (boost::shared_ptr<PlayerVideo>, DCPTime)> Video;