diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-15 01:16:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-15 01:16:45 +0100 |
| commit | 44c918a83e1e64922448ba20b5dfdcf30d026f84 (patch) | |
| tree | 9e9bee62635fefedaeef1a5d6f6db849161111d0 /src/lib | |
| parent | a788f3c1e29a6b8329d54e1518f3b84d68d347d5 (diff) | |
Remove unused PlayerStatistics stuff.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/player.cc | 13 | ||||
| -rw-r--r-- | src/lib/player.h | 36 | ||||
| -rw-r--r-- | src/lib/transcoder.cc | 2 |
3 files changed, 0 insertions, 51 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index bc13d6ab2..0a4eb54e7 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -551,19 +551,6 @@ Player::dcp_to_content_subtitle (shared_ptr<const Piece> piece, DCPTime t) const return max (ContentTime (), ContentTime (s, piece->frc) + piece->content->trim_start()); } -void -PlayerStatistics::dump (shared_ptr<Log> log) const -{ - log->log (String::compose ("Video: %1 good %2 skipped %3 black %4 repeat", video.good, video.skip, video.black, video.repeat), Log::TYPE_GENERAL); - log->log (String::compose ("Audio: %1 good %2 skipped %3 silence", audio.good, audio.skip, audio.silence.seconds()), Log::TYPE_GENERAL); -} - -PlayerStatistics const & -Player::statistics () const -{ - return _statistics; -} - /** @param burnt true to return only subtitles to be burnt, false to return only * subtitles that should not be burnt. This parameter will be ignored if * _always_burn_subtitles is true; in this case, all subtitles will be returned. diff --git a/src/lib/player.h b/src/lib/player.h index 3cfca4736..a795f8174 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -45,38 +45,6 @@ class PlayerVideo; class ImageProxy; class Font; -class PlayerStatistics -{ -public: - struct Video { - Video () - : black (0) - , repeat (0) - , good (0) - , skip (0) - {} - - int black; - int repeat; - int good; - int skip; - } video; - - struct Audio { - Audio () - : silence (0) - , good (0) - , skip (0) - {} - - DCPTime silence; - int64_t good; - int64_t skip; - } audio; - - void dump (boost::shared_ptr<Log>) const; -}; - /** @class Player * @brief A class which can `play' a Playlist. */ @@ -95,8 +63,6 @@ public: void set_enable_subtitles (bool enable); void set_always_burn_subtitles (bool burn); - PlayerStatistics const & statistics () const; - /** Emitted when something has changed such that if we went back and emitted * the last frame again it would look different. This is not emitted after * a seek. @@ -169,8 +135,6 @@ private: boost::shared_ptr<AudioProcessor> _audio_processor; - PlayerStatistics _statistics; - boost::signals2::scoped_connection _film_changed_connection; boost::signals2::scoped_connection _playlist_changed_connection; boost::signals2::scoped_connection _playlist_content_changed_connection; diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index e0af2c594..ad8e4ab9b 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -97,8 +97,6 @@ Transcoder::go () _finishing = true; _encoder->end (); _writer->finish (); - - _player->statistics().dump (_film->log ()); } float |
