using std::string;
using boost::shared_ptr;
using dcp::raw_convert;
+using dcpomatic::Screen;
Cinema::Cinema (cxml::ConstNodePtr node)
: name (node->string_child ("Name"))
class Element;
}
-class Screen;
+namespace dcpomatic {
+ class Screen;
+}
/** @class Cinema
* @brief A description of a Cinema for KDM generation.
void as_xml (xmlpp::Element *) const;
- void add_screen (boost::shared_ptr<Screen>);
- void remove_screen (boost::shared_ptr<Screen>);
+ void add_screen (boost::shared_ptr<dcpomatic::Screen>);
+ void remove_screen (boost::shared_ptr<dcpomatic::Screen>);
void set_utc_offset_hour (int h);
void set_utc_offset_minute (int m);
return _utc_offset_minute;
}
- std::list<boost::shared_ptr<Screen> > screens () const {
+ std::list<boost::shared_ptr<dcpomatic::Screen> > screens () const {
return _screens;
}
private:
- std::list<boost::shared_ptr<Screen> > _screens;
+ std::list<boost::shared_ptr<dcpomatic::Screen> > _screens;
/** Offset such that the equivalent time in UTC can be determined
by subtracting the offset from the local time.
*/
class Document;
}
+namespace dcpomatic {
+ class Screen;
+}
+
class DCPContentType;
class Log;
class Content;
class Playlist;
class AudioContent;
-class Screen;
class AudioProcessor;
class AudioMapping;
class Ratio;
) const;
std::list<ScreenKDM> make_kdms (
- std::list<boost::shared_ptr<Screen> > screens,
+ std::list<boost::shared_ptr<dcpomatic::Screen> > screens,
boost::filesystem::path cpl_file,
boost::posix_time::ptime from,
boost::posix_time::ptime until,
#include <boost/foreach.hpp>
using std::string;
+using namespace dcpomatic;
Font::Font (cxml::NodePtr node)
: _id (node->string_child ("Id"))
bool
-operator== (Font const & a, Font const & b)
+dcpomatic::operator== (Font const & a, Font const & b)
{
if (a.id() != b.id()) {
return false;
}
bool
-operator!= (Font const & a, Font const & b)
+dcpomatic::operator!= (Font const & a, Font const & b)
{
return !(a == b);
}
#include <boost/filesystem.hpp>
#include <string>
+namespace dcpomatic {
+
class Font
{
public:
bool operator!= (Font const & a, Font const & b);
bool operator== (Font const & a, Font const & b);
+}
+
#endif
class ReelAsset;
}
+namespace dcpomatic {
+ class Font;
+}
+
class PlayerVideo;
class Playlist;
-class Font;
class AudioBuffers;
class ReferencedReelAsset;
class Shuffler;
bool pass ();
void seek (dcpomatic::DCPTime time, bool accurate);
- std::list<boost::shared_ptr<Font> > get_subtitle_fonts ();
+ std::list<boost::shared_ptr<dcpomatic::Font> > get_subtitle_fonts ();
std::list<ReferencedReelAsset> get_reel_assets ();
dcp::Size video_container_size () const {
boost::mutex::scoped_lock lm (_mutex);
using std::list;
using boost::shared_ptr;
+using namespace dcpomatic;
void
PlayerText::add_fonts (list<shared_ptr<Font> > fonts_)
#include "dcpomatic_time.h"
#include "string_text.h"
-class Font;
+namespace dcpomatic {
+ class Font;
+}
/** A set of text (subtitle/CCAP) which span the same time period */
class PlayerText
{
public:
- void add_fonts (std::list<boost::shared_ptr<Font> > fonts_);
- std::list<boost::shared_ptr<Font> > fonts;
+ void add_fonts (std::list<boost::shared_ptr<dcpomatic::Font> > fonts_);
+ std::list<boost::shared_ptr<dcpomatic::Font> > fonts;
/** BitmapTexts, with their rectangles transformed as specified by their content */
std::list<BitmapText> bitmap;
#include <dcp/picture_asset_writer.h>
#include <boost/shared_ptr.hpp>
+namespace dcpomatic {
+ class Font;
+}
+
class Film;
class Job;
-class Font;
class AudioBuffers;
namespace dcp {
void write (PlayerText text, TextType type, boost::optional<DCPTextTrack> track, dcpomatic::DCPTimePeriod period);
void finish ();
- boost::shared_ptr<dcp::Reel> create_reel (std::list<ReferencedReelAsset> const & refs, std::list<boost::shared_ptr<Font> > const & fonts);
+ boost::shared_ptr<dcp::Reel> create_reel (std::list<ReferencedReelAsset> const & refs, std::list<boost::shared_ptr<dcpomatic::Font> > const & fonts);
void calculate_digests (boost::function<void (float)> set_progress);
Frame start () const;
#include "string_text.h"
#include <dcp/util.h>
-class Font;
+namespace dcpomatic {
+ class Font;
+}
std::string marked_up (std::list<StringText> subtitles, int target_height, float fade_factor);
std::list<PositionImage> render_text (
- std::list<StringText>, std::list<boost::shared_ptr<Font> > fonts, dcp::Size, dcpomatic::DCPTime, int
+ std::list<StringText>, std::list<boost::shared_ptr<dcpomatic::Font> > fonts, dcp::Size, dcpomatic::DCPTime, int
);
using std::string;
using std::vector;
+using namespace dcpomatic;
Screen::Screen (cxml::ConstNodePtr node)
: name (node->string_child("Name"))
boost::optional<std::string> _thumbprint;
};
+namespace dcpomatic {
+
/** @class Screen
* @brief A representation of a Screen for KDM generation.
*
std::vector<TrustedDevice> trusted_devices;
};
+}
+
#endif
/*
- Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include <dcp/name_format.h>
#include <boost/shared_ptr.hpp>
-class Screen;
+namespace dcpomatic {
+ class Screen;
+}
/** Simple class to collect a screen and an encrypted KDM */
class ScreenKDM
{
public:
- ScreenKDM (boost::shared_ptr<Screen> s, dcp::EncryptedKDM k)
+ ScreenKDM (boost::shared_ptr<dcpomatic::Screen> s, dcp::EncryptedKDM k)
: screen (s)
, kdm (k)
{}
boost::function<bool (boost::filesystem::path)> confirm_overwrite
);
- boost::shared_ptr<Screen> screen;
+ boost::shared_ptr<dcpomatic::Screen> screen;
dcp::EncryptedKDM kdm;
};
/*
- Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include <dcp/name_format.h>
#include <boost/filesystem.hpp>
-class Screen;
+namespace dcpomatic {
+ class Screen;
+}
+
class CinemaKDMs;
class Log;
/*
- Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include <dcp/types.h>
#include <boost/signals2.hpp>
-class Font;
+namespace dcpomatic {
+ class Font;
+}
class TextContentProperty
{
std::string identifier () const;
void take_settings_from (boost::shared_ptr<const TextContent> c);
- void add_font (boost::shared_ptr<Font> font);
+ void add_font (boost::shared_ptr<dcpomatic::Font> font);
void set_use (bool);
void set_burn (bool);
return _y_scale;
}
- std::list<boost::shared_ptr<Font> > fonts () const {
+ std::list<boost::shared_ptr<dcpomatic::Font> > fonts () const {
boost::mutex::scoped_lock lm (_mutex);
return _fonts;
}
double _x_scale;
/** y scale factor to apply to subtitles */
double _y_scale;
- std::list<boost::shared_ptr<Font> > _fonts;
+ std::list<boost::shared_ptr<dcpomatic::Font> > _fonts;
boost::optional<dcp::Colour> _colour;
boost::optional<dcp::Effect> _effect;
boost::optional<dcp::Colour> _effect_colour;
/*
- Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
class Data;
}
+namespace dcpomatic {
+ class Font;
+}
+
class Film;
class AudioBuffers;
class Job;
-class Font;
class ReferencedReelAsset;
class ReelWriter;
void repeat (Frame, Eyes);
void write (boost::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime time);
void write (PlayerText text, TextType type, boost::optional<DCPTextTrack>, dcpomatic::DCPTimePeriod period);
- void write (std::list<boost::shared_ptr<Font> > fonts);
+ void write (std::list<boost::shared_ptr<dcpomatic::Font> > fonts);
void write (ReferencedReelAsset asset);
void finish ();
std::list<ReferencedReelAsset> _reel_assets;
- std::list<boost::shared_ptr<Font> > _fonts;
+ std::list<boost::shared_ptr<dcpomatic::Font> > _fonts;
};
using boost::optional;
using boost::ref;
using boost::dynamic_pointer_cast;
+using namespace dcpomatic;
enum {
ID_help_report_a_problem = 1,
using boost::optional;
using boost::bind;
using boost::dynamic_pointer_cast;
+using namespace dcpomatic;
static void
help ()
using std::string;
using std::cout;
using boost::shared_ptr;
+using namespace dcpomatic;
FontsDialog::FontsDialog (wxWindow* parent, shared_ptr<Content> content, shared_ptr<TextContent> caption)
: wxDialog (parent, wxID_ANY, _("Fonts"))
#include <boost/date_time/posix_time/posix_time.hpp>
#include <map>
+namespace dcpomatic {
+ class Screen;
+}
+
class Cinema;
-class Screen;
class Film;
class ScreensPanel;
class KDMTimingPanel;
using std::make_pair;
using boost::shared_ptr;
using boost::optional;
+using namespace dcpomatic;
ScreensPanel::ScreensPanel (wxWindow* parent)
: wxPanel (parent, wxID_ANY)
#include <list>
#include <map>
+namespace dcpomatic {
+ class Screen;
+}
+
class Cinema;
-class Screen;
class ScreensPanel : public wxPanel
{
explicit ScreensPanel (wxWindow* parent);
~ScreensPanel ();
- std::list<boost::shared_ptr<Screen> > screens () const;
+ std::list<boost::shared_ptr<dcpomatic::Screen> > screens () const;
void setup_sensitivity ();
boost::signals2::signal<void ()> ScreensChanged;
private:
void add_cinemas ();
void add_cinema (boost::shared_ptr<Cinema>);
- boost::optional<wxTreeItemId> add_screen (boost::shared_ptr<Cinema>, boost::shared_ptr<Screen>);
+ boost::optional<wxTreeItemId> add_screen (boost::shared_ptr<Cinema>, boost::shared_ptr<dcpomatic::Screen>);
void add_cinema_clicked ();
void edit_cinema_clicked ();
void remove_cinema_clicked ();
wxTreeItemId _root;
typedef std::map<wxTreeItemId, boost::shared_ptr<Cinema> > CinemaMap;
- typedef std::map<wxTreeItemId, boost::shared_ptr<Screen> > ScreenMap;
+ typedef std::map<wxTreeItemId, boost::shared_ptr<dcpomatic::Screen> > ScreenMap;
CinemaMap _cinemas;
ScreenMap _screens;