projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No-op: whitespace.
[libdcp.git]
/
src
/
mono_picture_asset.h
diff --git
a/src/mono_picture_asset.h
b/src/mono_picture_asset.h
index d2029e00642710d0d558f240009cf156ecc3175c..a10eada00f1261548ce83e6d4e92c8ea21f9a789 100644
(file)
--- a/
src/mono_picture_asset.h
+++ b/
src/mono_picture_asset.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2012-201
3
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-201
5
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
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
@@
-22,31
+22,41
@@
#include "picture_asset.h"
#include "picture_asset.h"
-namespace
lib
dcp {
+namespace dcp {
-/** A 2D (monoscopic) picture asset */
+class MonoPictureAssetWriter;
+
+/** @class MonoPictureAsset
+ * @brief A 2D (monoscopic) picture asset.
+ */
class MonoPictureAsset : public PictureAsset
{
public:
class MonoPictureAsset : public PictureAsset
{
public:
- MonoPictureAsset (boost::filesystem::path directory, boost::filesystem::path mxf_name);
+ /** Create a MonoPictureAsset by reading a file.
+ * @param file Asset file to read.
+ */
+ MonoPictureAsset (boost::filesystem::path file);
- void read ();
- void create (std::vector<boost::filesystem::path> const & files);
- void create (boost::function<boost::filesystem::path (int)> get_path);
+ /** Create a MonoPictureAsset with a given edit rate.
+ * @param edit_rate Edit rate (i.e. frame rate) in frames per second.
+ */
+ MonoPictureAsset (Fraction edit_rate);
/** Start a progressive write to a MonoPictureAsset */
/** Start a progressive write to a MonoPictureAsset */
- boost::shared_ptr<PictureAssetWriter> start_write (bool);
+ boost::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path, Standard standard, bool);
+
+ bool equals (
+ boost::shared_ptr<const Asset> other,
+ EqualityOptions opt,
+ NoteHandler note
+ ) const;
boost::shared_ptr<const MonoPictureFrame> get_frame (int n) const;
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:
private:
- boost::filesystem::path path_from_list (int f, std::vector<boost::filesystem::path> const & files) const;
- void construct (boost::function<boost::filesystem::path (int)>, bool, MXFMetadata const &);
std::string cpl_node_name () const;
std::string cpl_node_name () const;
- int edit_rate_factor () const;
};
};
-}
+}
#endif
#endif