#include "compose.hpp"
+#include "film.h"
#include "job.h"
#include "player.h"
#include "subtitle_encoder.h"
+#include <dcp/filesystem.h>
#include <dcp/interop_subtitle_asset.h>
#include <dcp/raw_convert.h>
#include <dcp/smpte_subtitle_asset.h>
, _reel_index (0)
, _length (film->length())
{
- _player->set_play_referenced ();
- _player->set_ignore_video ();
- _player->set_ignore_audio ();
- _player->Text.connect (boost::bind(&SubtitleEncoder::text, this, _1, _2, _3, _4));
+ _player.set_play_referenced();
+ _player.set_ignore_video();
+ _player.set_ignore_audio();
+ _player.Text.connect(boost::bind(&SubtitleEncoder::text, this, _1, _2, _3, _4));
string const extension = film->interop() ? ".xml" : ".mxf";
for (int i = 0; i < files; ++i) {
boost::filesystem::path filename = output;
- if (boost::filesystem::is_directory(filename)) {
+ if (dcp::filesystem::is_directory(filename)) {
if (files > 1) {
/// TRANSLATORS: _reel%1 here is to be added to an export filename to indicate
/// which reel it is. Preserve the %1; it will be replaced with the reel number.
}
}
- _assets.push_back (make_pair(shared_ptr<dcp::SubtitleAsset>(), boost::filesystem::change_extension(filename, extension)));
+ _assets.push_back(make_pair(shared_ptr<dcp::SubtitleAsset>(), dcp::filesystem::change_extension(filename, extension)));
}
for (auto i: film->reels()) {
_reel_index = 0;
- while (!_player->pass()) {}
+ while (!_player.pass()) {}
int reel = 0;
for (auto& i: _assets) {
}
if (!_film->interop() || _include_font) {
- for (auto j: _player->get_subtitle_fonts()) {
+ for (auto j: _player.get_subtitle_fonts()) {
i.first->add_font(j->id(), j->data().get_value_or(_default_font));
}
}