+
+string
+video_asset_filename (shared_ptr<dcp::PictureAsset> asset)
+{
+ return "j2c_" + asset->id() + ".mxf";
+}
+
+string
+audio_asset_filename (shared_ptr<dcp::SoundAsset> asset)
+{
+ return "pcm_" + asset->id() + ".mxf";
+}
+
+float
+relaxed_string_to_float (string s)
+{
+ try {
+ boost::algorithm::replace_all (s, ",", ".");
+ return lexical_cast<float> (s);
+ } catch (bad_lexical_cast) {
+ boost::algorithm::replace_all (s, ".", ",");
+ return lexical_cast<float> (s);
+ }
+}
+
+bool
+string_not_empty (string s)
+{
+ return !s.empty ();
+}