summaryrefslogtreecommitdiff
path: root/src/picture_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-18 00:23:28 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-18 00:23:28 +0100
commitca45f479876579c91b9d438c47c5166b1a178704 (patch)
tree2757a90d01307b66a39ecbca5544c47ffdf324fc /src/picture_asset.h
parent2194158985f9c1300ffe24c7c6fb786cb39bbdb5 (diff)
Allow functor to obtain content paths.
Diffstat (limited to 'src/picture_asset.h')
-rw-r--r--src/picture_asset.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/picture_asset.h b/src/picture_asset.h
index 2f3c7cdf..58dd1dfd 100644
--- a/src/picture_asset.h
+++ b/src/picture_asset.h
@@ -41,7 +41,7 @@ public:
* @param height Height of images in pixels.
*/
PictureAsset (
- std::list<std::string> const & files,
+ std::vector<std::string> const & files,
std::string mxf_path,
sigc::signal1<void, float>* progress,
int fps,
@@ -50,12 +50,35 @@ public:
int height
);
+ /** Construct a PictureAsset, generating the MXF from the JPEG2000 files.
+ * This may take some time; progress is indicated by emission of the Progress signal.
+ * @param files Pathnames of JPEG2000 files, in frame order.
+ * @param mxf_path Pathname of MXF file to create.
+ * @param progress Signal to inform of progress.
+ * @param fps Frames per second.
+ * @param length Length in frames.
+ * @param width Width of images in pixels.
+ * @param height Height of images in pixels.
+ */
+ PictureAsset (
+ sigc::slot<std::string, int> get_path,
+ std::string mxf_path,
+ sigc::signal1<void, float>* progress,
+ int fps,
+ int length,
+ int width,
+ int height
+ );
+
/** Write details of this asset to a CPL stream.
* @param s Stream.
*/
void write_to_cpl (std::ostream& s) const;
private:
+ std::string path_from_list (int f, std::vector<std::string> const & files) const;
+ void construct (sigc::slot<std::string, int>);
+
/** picture width in pixels */
int _width;
/** picture height in pixels */