X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fplayer_video.h;h=f296848320a77a053d863d5ded423c05015d7dbc;hp=569789c8cc1cdb6e6918a783ab9364e955c44cdc;hb=da44da6f31f97d39ca91c35955e573e76371f2c2;hpb=605389f7c3af2cdf1ec457ee78709cf8a5bb90d9 diff --git a/src/lib/player_video.h b/src/lib/player_video.h index 569789c8c..f29684832 100644 --- a/src/lib/player_video.h +++ b/src/lib/player_video.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2020 Carl Hetherington + Copyright (C) 2013-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,9 +18,11 @@ */ + #ifndef DCPOMATIC_PLAYER_VIDEO_H #define DCPOMATIC_PLAYER_VIDEO_H + #include "types.h" #include "position.h" #include "dcpomatic_time.h" @@ -30,18 +32,19 @@ extern "C" { #include } #include -#include + class Image; class ImageProxy; class Film; class Socket; + /** Everything needed to describe a video frame coming out of the player, but with the * bits still their raw form. We may want to combine the bits on a remote machine, * or maybe not even bother to combine them at all. */ -class PlayerVideo : public boost::noncopyable +class PlayerVideo { public: PlayerVideo ( @@ -61,12 +64,15 @@ public: PlayerVideo (std::shared_ptr, std::shared_ptr); + PlayerVideo (PlayerVideo const&) = delete; + PlayerVideo& operator= (PlayerVideo const&) = delete; + std::shared_ptr shallow_copy () const; void set_text (PositionImage); - void prepare (boost::function pixel_format, VideoRange video_range, bool aligned, bool fast); - std::shared_ptr image (boost::function pixel_format, VideoRange video_range, bool aligned, bool fast) const; + void prepare (std::function pixel_format, VideoRange video_range, bool aligned, bool fast); + std::shared_ptr image (std::function pixel_format, VideoRange video_range, bool aligned, bool fast) const; static AVPixelFormat force (AVPixelFormat, AVPixelFormat); static AVPixelFormat keep_xyz_or_rgb (AVPixelFormat); @@ -112,7 +118,7 @@ public: } private: - void make_image (boost::function pixel_format, VideoRange video_range, bool aligned, bool fast) const; + void make_image (std::function pixel_format, VideoRange video_range, bool aligned, bool fast) const; std::shared_ptr _in; Crop _crop; @@ -143,4 +149,5 @@ private: mutable bool _error; }; + #endif