{
string check = _state.directory;
+#if BOOST_FILESYSTEM_VERSION == 3
filesystem::path slash ("/");
string platform_slash = slash.make_preferred().string ();
+#else
+#ifdef DVDOMATIC_WINDOWS
+ string platform_slash = "\\";
+#else
+ string platform_slash = "/";
+#endif
+#endif
if (!ends_with (check, platform_slash)) {
check += platform_slash;
void
Format::setup_formats ()
{
+ _formats.push_back (new Format (119, Size (1285, 1080), "119", "1.19"));
+ _formats.push_back (new Format (133, Size (1436, 1080), "133", "1.33"));
+ _formats.push_back (new Format (138, Size (1485, 1080), "138", "1.375"));
_formats.push_back (new Format (133, Size (1998, 1080), "133-in-flat", "4:3 within Flat"));
_formats.push_back (new Format (137, Size (1480, 1080), "137", "Academy"));
+ _formats.push_back (new Format (166, Size (1793, 1080), "166", "1.66"));
_formats.push_back (new Format (178, Size (1998, 1080), "178-in-flat", "16:9 within Flat"));
_formats.push_back (new Format (185, Size (1998, 1080), "185", "Flat"));
_formats.push_back (new Format (239, Size (2048, 858), "239", "Scope"));
#include <boost/filesystem.hpp>
#include <libdcp/dcp.h>
+#include <libdcp/picture_asset.h>
+#include <libdcp/sound_asset.h>
+#include <libdcp/reel.h>
extern "C" {
#include <libavutil/pixdesc.h>
}
dcp.Progress.connect (sigc::mem_fun (*this, &MakeDCPJob::dcp_progress));
descend (0.9);
- dcp.add_picture_asset (sigc::mem_fun (*this, &MakeDCPJob::j2c_path), _opt->out_size.width, _opt->out_size.height);
+ shared_ptr<libdcp::MonoPictureAsset> pa (
+ new libdcp::MonoPictureAsset (
+ sigc::mem_fun (*this, &MakeDCPJob::j2c_path),
+ _fs->dir (_fs->name),
+ "video.mxf",
+ &dcp.Progress,
+ rint (_fs->frames_per_second),
+ frames,
+ _opt->out_size.width,
+ _opt->out_size.height
+ )
+ );
+
ascend ();
+ shared_ptr<libdcp::SoundAsset> sa;
+
if (_fs->audio_channels > 0) {
descend (0.1);
- dcp.add_sound_asset (sigc::mem_fun (*this, &MakeDCPJob::wav_path), _fs->audio_channels);
+ sa.reset (
+ new libdcp::SoundAsset (
+ sigc::mem_fun (*this, &MakeDCPJob::wav_path),
+ _fs->dir (_fs->name),
+ "audio.mxf",
+ &dcp.Progress,
+ rint (_fs->frames_per_second),
+ frames,
+ _fs->audio_channels
+ )
+ );
ascend ();
}
+ dcp.add_reel (shared_ptr<libdcp::Reel> (new libdcp::Reel (pa, sa, shared_ptr<libdcp::SubtitleAsset> ())));
dcp.write_xml ();
set_progress (1);
conf.check_cfg(package = 'libswresample', args = '--cflags --libs', uselib_store = 'SWRESAMPLE', mandatory = True)
conf.check_cfg(package = 'libpostproc', args = '--cflags --libs', uselib_store = 'POSTPROC', mandatory = True)
conf.check_cfg(package = 'sndfile', args = '--cflags --libs', uselib_store = 'SNDFILE', mandatory = True)
- conf.check_cfg(package = 'libdcp', atleast_version = '0.07', args = '--cflags --libs', uselib_store = 'DCP', mandatory = True)
+ conf.check_cfg(package = 'libdcp', atleast_version = '0.11', args = '--cflags --libs', uselib_store = 'DCP', mandatory = True)
conf.check_cfg(package = 'glib-2.0', args = '--cflags --libs', uselib_store = 'GLIB', mandatory = True)
conf.check_cfg(package = '', path = 'Magick++-config', args = '--cppflags --cxxflags --libs', uselib_store = 'MAGICK', mandatory = True)
conf.check_cc(msg = 'Checking for library libtiff', function_name = 'TIFFOpen', header_name = 'tiffio.h', lib = 'tiff', uselib_store = 'TIFF')