X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer.h;h=fc7117ba201abc006482819a5c27f8f7e56e140a;hb=14cccb179fff7bbbf422e13f9d2e3264239c93c7;hp=8142f8e7f7df29cac429cb1042dad67c2cfa1d86;hpb=63eb29920980dfecf4c5f06a1746dad830b7ea32;p=dcpomatic.git 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 > get_subtitle_fonts (); std::list 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 Changed; + boost::signals2::signal Changed; /** Emitted when a video frame is ready. These emissions happen in the correct order. */ boost::signals2::signal, DCPTime)> Video;