summaryrefslogtreecommitdiff
path: root/src/picture_asset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/picture_asset.cc')
-rw-r--r--src/picture_asset.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/picture_asset.cc b/src/picture_asset.cc
index bdf8ce41..1f131234 100644
--- a/src/picture_asset.cc
+++ b/src/picture_asset.cc
@@ -30,6 +30,16 @@ using namespace std;
using namespace boost;
using namespace libdcp;
+/** 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 p Pathname of MXF file to create.
+ * @param fps Frames per second.
+ * @param len Length in frames.
+ * @param w Width of images in pixels.
+ * @param h Height of images in pixels.
+ */
+
PictureAsset::PictureAsset (list<string> const & files, string p, int fps, int len, int w, int h)
: Asset (p, fps, len)
, _width (w)
@@ -43,7 +53,6 @@ PictureAsset::PictureAsset (list<string> const & files, string p, int fps, int l
ASDCP::JP2K::PictureDescriptor picture_desc;
j2k_parser.FillPictureDescriptor (picture_desc);
- /* XXX: we round for DCP: not sure if this is right */
picture_desc.EditRate = ASDCP::Rational (_fps, 1);
ASDCP::WriterInfo writer_info;
@@ -76,6 +85,9 @@ PictureAsset::PictureAsset (list<string> const & files, string p, int fps, int l
_digest = make_digest (_mxf_path);
}
+/** Write details of this asset to a CPL stream.
+ * @param s Stream.
+ */
void
PictureAsset::write_to_cpl (ostream& s) const
{