diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-25 00:13:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-05-25 00:13:36 +0100 |
| commit | 5ae794047e5ceee4502e59211f0083a60224f4bd (patch) | |
| tree | af66a40208e0f10621ea543d25d2ab662cb20503 /src/lib/util.cc | |
| parent | 64840121f4889a79f63a7168da88e5918092329a (diff) | |
3cb5a4c2064d4cf4d8cbdca75a84615a6c56fb7c from master; use j2c_uuid and pcm_uuid for picture/sound MXF filenames.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 99d9ba2c4..0b35ad539 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -37,6 +37,9 @@ #include "safe_stringstream.h" #include <dcp/util.h> #include <dcp/signer.h> +#include <dcp/picture_mxf.h> +#include <dcp/sound_mxf.h> +#include <dcp/subtitle_content.h> #include <glib.h> #include <pangomm/init.h> #include <boost/algorithm/string.hpp> @@ -671,3 +674,20 @@ write_frame_info (FILE* file, int frame, Eyes eyes, dcp::FrameInfo info) fwrite (info.hash.c_str(), 1, info.hash.size(), file); } +string +video_mxf_filename (shared_ptr<dcp::PictureMXF> mxf) +{ + return "j2c_" + mxf->id() + ".mxf"; +} + +string +audio_mxf_filename (shared_ptr<dcp::SoundMXF> mxf) +{ + return "pcm_" + mxf->id() + ".mxf"; +} + +string +subtitle_content_filename (shared_ptr<dcp::SubtitleContent> content) +{ + return "sub_" + content->id() + ".xml"; +} |
