# Use distro-provided FFmpeg on Arch
deps = []
- deps.append(('libdcp', 'cc4445c'))
- deps.append(('libsub', '0515e41'))
+ deps.append(('libdcp', '9bc5ced'))
+ deps.append(('libsub', '749c204'))
deps.append(('leqm-nrt', '93ae9e6'))
deps.append(('rtaudio', 'f619b76'))
# We get our OpenSSL libraries from the environment, but we
if (_release_territory) {
root->add_child("ReleaseTerritory")->add_child_text(_release_territory->subtag());
}
+ if (_sign_language_video_language) {
+ root->add_child("SignLanguageVideoLanguage")->add_child_text(_sign_language_video_language->to_string());
+ }
root->add_child("VersionNumber")->add_child_text(raw_convert<string>(_version_number));
root->add_child("Status")->add_child_text(dcp::status_to_string(_status));
if (_chain) {
_release_territory = dcp::LanguageTag::RegionSubtag (*release_territory);
}
+ auto sign_language_video_language = f.optional_string_child("SignLanguageVideoLanguage");
+ if (sign_language_video_language) {
+ _sign_language_video_language = dcp::LanguageTag(*sign_language_video_language);
+ }
+
_version_number = f.optional_number_child<int>("VersionNumber").get_value_or(0);
auto status = f.optional_string_child("Status");
_audio_language = language;
}
+
+bool
+Film::has_sign_language_video_channel () const
+{
+ return _audio_channels >= static_cast<int>(dcp::Channel::SIGN_LANGUAGE);
+}
+
+
+void
+Film::set_sign_language_video_language (optional<dcp::LanguageTag> lang)
+{
+ FilmChangeSignaller ch (this, Property::SIGN_LANGUAGE_VIDEO_LANGUAGE);
+ _sign_language_video_language = lang;
+}
+
uint64_t required_disk_space () const;
bool should_be_enough_disk_space (double& required, double& available, bool& can_hard_link) const;
+ bool has_sign_language_video_channel () const;
+
/* Proxies for some Playlist methods */
ContentList content () const;
NAME_LANGUAGE,
AUDIO_LANGUAGE,
RELEASE_TERRITORY,
+ SIGN_LANGUAGE_VIDEO_LANGUAGE,
VERSION_NUMBER,
STATUS,
CHAIN,
return _release_territory;
}
+ boost::optional<dcp::LanguageTag> sign_language_video_language () const {
+ return _sign_language_video_language;
+ }
+
int version_number () const {
return _version_number;
}
void set_content_versions (std::vector<std::string> v);
void set_name_language (dcp::LanguageTag lang);
void set_release_territory (boost::optional<dcp::LanguageTag::RegionSubtag> region = boost::none);
+ void set_sign_language_video_language (boost::optional<dcp::LanguageTag> tag);
void set_version_number (int v);
void set_status (dcp::Status s);
void set_chain (boost::optional<std::string> c = boost::none);
std::vector<std::string> _content_versions;
dcp::LanguageTag _name_language;
boost::optional<dcp::LanguageTag::RegionSubtag> _release_territory;
+ boost::optional<dcp::LanguageTag> _sign_language_video_language;
int _version_number;
dcp::Status _status;
boost::optional<std::string> _chain;
if (film()->luminance()) {
cpl->set_luminance (*film()->luminance());
}
+ if (film()->sign_language_video_language()) {
+ cpl->set_sign_language_video_language (*film()->sign_language_video_language());
+ }
auto ac = film()->mapped_audio_channels();
dcp::MCASoundField field = (
#include "dcpomatic_button.h"
#include "full_language_tag_dialog.h"
+#include "language_tag_widget.h"
#include "metadata_dialog.h"
#include "wx_util.h"
#include "lib/film.h"
overall_sizer->Layout ();
overall_sizer->SetSizeHints (this);
+ _sign_language_video_language->Changed.connect (boost::bind(&MetadataDialog::sign_language_video_language_changed, this));
_edit_release_territory->Bind (wxEVT_BUTTON, boost::bind(&MetadataDialog::edit_release_territory, this));
_enable_release_territory->Bind (wxEVT_CHECKBOX, boost::bind(&MetadataDialog::enable_release_territory_changed, this));
_enable_facility->Bind (wxEVT_CHECKBOX, boost::bind(&MetadataDialog::enable_facility_changed, this));
_film_changed_connection = film()->Change.connect(boost::bind(&MetadataDialog::film_changed, this, _1, _2));
film_changed (ChangeType::DONE, Film::Property::RELEASE_TERRITORY);
+ film_changed (ChangeType::DONE, Film::Property::SIGN_LANGUAGE_VIDEO_LANGUAGE);
film_changed (ChangeType::DONE, Film::Property::FACILITY);
film_changed (ChangeType::DONE, Film::Property::STUDIO);
film_changed (ChangeType::DONE, Film::Property::TEMP_VERSION);
return;
}
- if (property == Film::Property::RELEASE_TERRITORY) {
+ if (property == Film::Property::SIGN_LANGUAGE_VIDEO_LANGUAGE) {
+ _sign_language_video_language->set (film()->sign_language_video_language());
+ } else if (property == Film::Property::RELEASE_TERRITORY) {
auto rt = film()->release_territory();
checked_set (_enable_release_territory, static_cast<bool>(rt));
if (rt) {
void
MetadataDialog::setup_sensitivity ()
{
+ _sign_language_video_language->enable (film()->has_sign_language_video_channel());
auto const enabled = _enable_release_territory->GetValue();
_release_territory_text->Enable (enabled);
_edit_release_territory->Enable (enabled);
void
MetadataDialog::setup_advanced (wxPanel* panel, wxSizer* sizer)
{
+ add_label_to_sizer (sizer, panel, _("Sign language video language"), true, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT);
+ _sign_language_video_language = new LanguageTagWidget (panel, _("Language used for any sign language video track"), {}, {});
+ sizer->Add (_sign_language_video_language->sizer(), 1, wxEXPAND);
+
_enable_facility = new wxCheckBox (panel, wxID_ANY, _("Facility"));
sizer->Add (_enable_facility, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL);
_facility = new wxTextCtrl (panel, wxID_ANY);
film()->set_luminance (dcp::Luminance(_luminance_value->GetValue(), unit));
}
+
+void
+MetadataDialog::sign_language_video_language_changed ()
+{
+ film()->set_sign_language_video_language(_sign_language_video_language->get());
+}
+
class Button;
class wxSpinCtrlDouble;
+class LanguageTagWidget;
class MetadataDialog : public wxDialog, public WeakFilm
virtual void setup_sensitivity ();
private:
+ void sign_language_video_language_changed ();
void edit_release_territory ();
void enable_release_territory_changed ();
void facility_changed ();
boost::optional<dcp::LanguageTag::RegionSubtag> _release_territory;
wxStaticText* _release_territory_text;
Button* _edit_release_territory;
+ LanguageTagWidget* _sign_language_video_language = nullptr;
wxCheckBox* _enable_facility;
wxTextCtrl* _facility;
wxCheckBox* _enable_chain;