diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-22 16:23:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-22 16:23:23 +0100 |
| commit | 8349f0c97d98c0b7550ff4c76ad25f8f06270d6a (patch) | |
| tree | bf441e13142b2810ac4e46cf94d4204ec4e037d5 /src/lib/dcp_video_frame.h | |
| parent | 75712cfaf2a8ec8904d7d9552c542a2245bbbc17 (diff) | |
Basics of front-end 3D (as far as viewer, at least).
Diffstat (limited to 'src/lib/dcp_video_frame.h')
| -rw-r--r-- | src/lib/dcp_video_frame.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/dcp_video_frame.h b/src/lib/dcp_video_frame.h index 4c545b6ef..e786d9b61 100644 --- a/src/lib/dcp_video_frame.h +++ b/src/lib/dcp_video_frame.h @@ -47,8 +47,8 @@ public: virtual ~EncodedData (); void send (boost::shared_ptr<Socket> socket); - void write (boost::shared_ptr<const Film>, int) const; - void write_info (boost::shared_ptr<const Film>, int, libdcp::FrameInfo) const; + void write (boost::shared_ptr<const Film>, int, Eyes) const; + void write_info (boost::shared_ptr<const Film>, int, Eyes, libdcp::FrameInfo) const; /** @return data */ uint8_t* data () const { @@ -101,11 +101,15 @@ public: class DCPVideoFrame : public boost::noncopyable { public: - DCPVideoFrame (boost::shared_ptr<const Image>, int, int, int, boost::shared_ptr<Log>); + DCPVideoFrame (boost::shared_ptr<const Image>, int, Eyes, int, int, boost::shared_ptr<Log>); boost::shared_ptr<EncodedData> encode_locally (); boost::shared_ptr<EncodedData> encode_remotely (ServerDescription const *); + Eyes eyes () const { + return _eyes; + } + int frame () const { return _frame; } @@ -113,6 +117,7 @@ public: private: boost::shared_ptr<const Image> _image; int _frame; ///< frame index within the DCP's intrinsic duration + Eyes _eyes; int _frames_per_second; ///< Frames per second that we will use for the DCP int _j2k_bandwidth; ///< J2K bandwidth to use |
