Kumu::bin2UUIDhex (info.AssetUUID, ASDCP::UUIDlen, buffer, sizeof (buffer));
_id = buffer;
}
-
-string
-MXF::pkl_type (Standard standard) const
-{
- switch (standard) {
- case INTEROP:
- return String::compose ("application/x-smpte-mxf;asdcpKind=%1", asdcp_kind ());
- case SMPTE:
- return "application/mxf";
- default:
- DCP_ASSERT (false);
- }
-}
protected:
friend class MXFWriter;
- virtual std::string asdcp_kind () const = 0;
- std::string pkl_type (Standard standard) const;
void read_writer_info (ASDCP::WriterInfo const &);
ASDCP::AESEncContext* _encryption_context;
/*
- Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "exceptions.h"
#include "xyz_image.h"
#include "picture_mxf_writer.h"
+#include "dcp_assert.h"
#include "compose.hpp"
#include "AS_DCP.h"
#include "KM_fileio.h"
return true;
}
+
+string
+PictureMXF::pkl_type (Standard standard) const
+{
+ switch (standard) {
+ case INTEROP:
+ return "application/x-smpte-mxf;asdcpKind=Picture";
+ case SMPTE:
+ return "application/mxf";
+ default:
+ DCP_ASSERT (false);
+ }
+}
Fraction _screen_aspect_ratio;
private:
- std::string asdcp_kind () const {
- return "Picture";
- }
+ std::string pkl_type (Standard standard) const;
};
#include "compose.hpp"
#include "KM_fileio.h"
#include "AS_DCP.h"
+#include "dcp_assert.h"
#include <libxml++/nodes/element.h>
#include <boost/filesystem.hpp>
#include <iostream>
/* XXX: can't we use a shared_ptr here? */
return shared_ptr<SoundMXFWriter> (new SoundMXFWriter (this, file, standard));
}
+
+string
+SoundMXF::pkl_type (Standard standard) const
+{
+ switch (standard) {
+ case INTEROP:
+ return "application/x-smpte-mxf;asdcpKind=Sound";
+ case SMPTE:
+ return "application/mxf";
+ default:
+ DCP_ASSERT (false);
+ }
+}
private:
friend class SoundMXFWriter;
- std::string asdcp_kind () const {
- return "Sound";
- }
+ std::string pkl_type (Standard standard) const;
Fraction _edit_rate;
/** The total length of this content in video frames. The amount of