diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-04 11:13:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-04 11:13:04 +0100 |
| commit | af87bfc82beee0b0600558c84c3843dfd5a252f6 (patch) | |
| tree | 6f0cb5a87ba4662ac1e23fae67589be9d374e4f6 /src/picture_asset.h | |
| parent | 09ad2806848f5c3609b7915da504f94db099e3af (diff) | |
Split metadata into XML and MXF bits; remove singleton.
Diffstat (limited to 'src/picture_asset.h')
| -rw-r--r-- | src/picture_asset.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/picture_asset.h b/src/picture_asset.h index c9226b1f..59c4dc00 100644 --- a/src/picture_asset.h +++ b/src/picture_asset.h @@ -27,6 +27,7 @@ #include <openjpeg.h> #include "mxf_asset.h" #include "util.h" +#include "metadata.h" namespace libdcp { @@ -121,7 +122,7 @@ public: private: friend class MonoPictureAsset; - MonoPictureAssetWriter (MonoPictureAsset *, bool); + MonoPictureAssetWriter (MonoPictureAsset *, bool, MXFMetadata const &); void start (uint8_t *, int); /* no copy construction */ @@ -142,6 +143,7 @@ private: /** true if finalize() has been called */ bool _finalized; bool _overwrite; + MXFMetadata _metadata; }; /** A 2D (monoscopic) picture asset */ @@ -166,7 +168,8 @@ public: boost::signals2::signal<void (float)>* progress, int fps, int intrinsic_duration, - Size size + Size size, + MXFMetadata const & metadata = MXFMetadata () ); /** Construct a MonoPictureAsset, generating the MXF from the JPEG2000 files. @@ -187,7 +190,8 @@ public: boost::signals2::signal<void (float)>* progress, int fps, int intrinsic_duration, - Size size + Size size, + MXFMetadata const & metadata = MXFMetadata () ); /** Construct a MonoPictureAsset, reading the MXF from disk. @@ -207,14 +211,14 @@ public: MonoPictureAsset (std::string directory, std::string mxf_name, int fps, Size size); /** Start a progressive write to a MonoPictureAsset */ - boost::shared_ptr<MonoPictureAssetWriter> start_write (bool); + boost::shared_ptr<MonoPictureAssetWriter> start_write (bool, MXFMetadata const & metadata = MXFMetadata ()); boost::shared_ptr<const MonoPictureFrame> 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 path_from_list (int f, std::vector<std::string> const & files) const; - void construct (boost::function<std::string (int)>); + void construct (boost::function<std::string (int)>, MXFMetadata const &); }; /** A 3D (stereoscopic) picture asset */ |
