diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-14 11:48:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-14 11:48:37 +0100 |
| commit | 4b7b0edb359ae68f2dbcab90c7c10382f507fa5b (patch) | |
| tree | 2cf52d224651f1f0fb1b4fd0d542acf8b77835eb /src/lib/content_video.h | |
| parent | 3d6501346b187f35d0f55d16e13f8817f505a82f (diff) | |
Add VideoFrame class.
This puts a frame index with an Eyes, which simplifies code in
some areas. I can't think of a better name for it,
unfortunately.
Diffstat (limited to 'src/lib/content_video.h')
| -rw-r--r-- | src/lib/content_video.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/content_video.h b/src/lib/content_video.h index 21a600709..8e5f2fd09 100644 --- a/src/lib/content_video.h +++ b/src/lib/content_video.h @@ -21,6 +21,8 @@ #ifndef DCPOMATIC_CONTENT_VIDEO_H #define DCPOMATIC_CONTENT_VIDEO_H +#include "video_frame.h" + class ImageProxy; /** @class ContentVideo @@ -30,22 +32,18 @@ class ContentVideo { public: ContentVideo () - : eyes (EYES_BOTH) - , part (PART_WHOLE) - , frame (0) + : part (PART_WHOLE) {} - ContentVideo (boost::shared_ptr<const ImageProxy> i, Eyes e, Part p, Frame f) + ContentVideo (boost::shared_ptr<const ImageProxy> i, VideoFrame f, Part p) : image (i) - , eyes (e) - , part (p) , frame (f) + , part (p) {} boost::shared_ptr<const ImageProxy> image; - Eyes eyes; + VideoFrame frame; Part part; - Frame frame; }; #endif |
