summaryrefslogtreecommitdiff
path: root/src/stereo_picture_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-25 21:31:10 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-25 21:31:10 +0100
commit566608b965e8ec0e08d9de128405d22ec7fedcd6 (patch)
tree2fda53a5d6adb9427d0f1f5c1a5af050eddc44d9 /src/stereo_picture_asset.h
parentf76647abae551840a43bb8f07189051ec20bab6d (diff)
Split up some files.
Diffstat (limited to 'src/stereo_picture_asset.h')
-rw-r--r--src/stereo_picture_asset.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/stereo_picture_asset.h b/src/stereo_picture_asset.h
new file mode 100644
index 00000000..c9019610
--- /dev/null
+++ b/src/stereo_picture_asset.h
@@ -0,0 +1,44 @@
+/*
+ Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "picture_asset.h"
+
+namespace libdcp {
+
+/** A 3D (stereoscopic) picture asset */
+class StereoPictureAsset : public PictureAsset
+{
+public:
+ StereoPictureAsset (boost::filesystem::path directory, std::string mxf_name);
+
+ void read ();
+
+ /** Start a progressive write to a StereoPictureAsset */
+ boost::shared_ptr<PictureAssetWriter> start_write (bool);
+
+ boost::shared_ptr<const StereoPictureFrame> get_frame (int n) const;
+ bool equals (boost::shared_ptr<const Asset> other, EqualityOptions opt, boost::function<void (NoteType, std::string)> note) const;
+
+private:
+ std::string cpl_node_name () const;
+ std::pair<std::string, std::string> cpl_node_attribute (bool) const;
+ int edit_rate_factor () const;
+};
+
+}