-
-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;
-};
-
-/** A wrapper for an Image which contains some pending operations; these may
- * not be necessary if the receiver of the PlayerImage throws it away.
- */
-class PlayerImage
-{
-public:
- PlayerImage (boost::shared_ptr<const Image>, Crop, dcp::Size, dcp::Size, Scaler const *);
-
- void set_subtitle (boost::shared_ptr<const Image>, Position<int>);
-
- boost::shared_ptr<Image> image ();
-
-private:
- boost::shared_ptr<const Image> _in;
- Crop _crop;
- dcp::Size _inter_size;
- dcp::Size _out_size;
- Scaler const * _scaler;
- boost::shared_ptr<const Image> _subtitle_image;
- Position<int> _subtitle_position;
-};