From 5ae794047e5ceee4502e59211f0083a60224f4bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 25 May 2015 00:13:36 +0100 Subject: 3cb5a4c2064d4cf4d8cbdca75a84615a6c56fb7c from master; use j2c_uuid and pcm_uuid for picture/sound MXF filenames. --- src/lib/util.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/lib/util.cc') 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 #include +#include +#include +#include #include #include #include @@ -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 mxf) +{ + return "j2c_" + mxf->id() + ".mxf"; +} + +string +audio_mxf_filename (shared_ptr mxf) +{ + return "pcm_" + mxf->id() + ".mxf"; +} + +string +subtitle_content_filename (shared_ptr content) +{ + return "sub_" + content->id() + ".xml"; +} -- cgit v1.2.3