diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-17 17:53:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-17 17:53:08 +0100 |
| commit | 22c2111406075c98a2bf5feeaa92fa16293bc15a (patch) | |
| tree | a8770a0449205e4023d66aef91b674ccbf123343 /src/picture_asset.cc | |
| parent | b6718fb437f242fd5127194d4c94e39d71c5e1ad (diff) | |
Some comments.
Diffstat (limited to 'src/picture_asset.cc')
| -rw-r--r-- | src/picture_asset.cc | 14 |
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 { |
