#include "job.h"
#include "film.h"
#include "compose.hpp"
+#include <asdcp/KM_log.h>
#include <dcp/mono_picture_asset.h>
#include <dcp/stereo_picture_asset.h>
#include <dcp/exceptions.h>
bool
VideoMXFContent::valid_mxf (boost::filesystem::path path)
{
+ Kumu::DefaultLogSink().UnsetFilterFlag(Kumu::LOG_ALLOW_ALL);
+
try {
shared_ptr<dcp::MonoPictureAsset> mp (new dcp::MonoPictureAsset (path));
return true;
}
try {
+ Kumu::DefaultLogSink().SetFilterFlag(0);
shared_ptr<dcp::StereoPictureAsset> sp (new dcp::StereoPictureAsset (path));
return true;
} catch (dcp::MXFFileError& e) {
}
+ Kumu::DefaultLogSink().SetFilterFlag(Kumu::LOG_ALLOW_ALL);
+
return false;
}
video.reset (new VideoContent (this));
shared_ptr<VideoMXFExaminer> examiner (new VideoMXFExaminer (shared_from_this ()));
video->take_from_examiner (examiner);
+ video->unset_colour_conversion ();
}
string
}
void
-VideoMXFContent::as_xml (xmlpp::Node* node) const
+VideoMXFContent::as_xml (xmlpp::Node* node, bool with_paths) const
{
node->add_child("Type")->add_child_text ("VideoMXF");
- Content::as_xml (node);
+ Content::as_xml (node, with_paths);
video->as_xml (node);
}
{
video->add_properties (p);
}
-
-void
-VideoMXFContent::set_default_colour_conversion ()
-{
- video->unset_colour_conversion ();
-}