diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-21 19:14:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-21 19:14:58 +0100 |
| commit | cb990adba9c57e5107ef2aa9716cf0a26c1df83d (patch) | |
| tree | e59571d05db47b6f1070c85331ba351fd2794adf | |
| parent | 8a19e2b56d3b95a18ae8ac9965eab750c28d30ad (diff) | |
| parent | 5c8599593ee8b3ef05d5c55c5f0885a2d8bfb9d2 (diff) | |
Merge master.
| -rw-r--r-- | ChangeLog | 21 | ||||
| -rw-r--r-- | cscript | 3 | ||||
| -rw-r--r-- | debian/changelog | 6 | ||||
| -rw-r--r-- | src/lib/dcp_video.cc | 2 | ||||
| -rw-r--r-- | src/lib/image.cc | 2 | ||||
| -rw-r--r-- | src/lib/image_examiner.cc | 2 | ||||
| -rw-r--r-- | src/lib/player_video.cc | 4 | ||||
| -rw-r--r-- | src/lib/player_video.h | 5 | ||||
| -rw-r--r-- | src/lib/player_video_frame.cc | 148 | ||||
| -rw-r--r-- | src/lib/util.cc | 5 | ||||
| -rw-r--r-- | src/tools/dcpomatic_cli.cc | 11 | ||||
| -rw-r--r-- | src/tools/po/de_DE.po | 2 | ||||
| -rw-r--r-- | src/tools/po/es_ES.po | 2 | ||||
| -rw-r--r-- | src/tools/po/fr_FR.po | 2 | ||||
| -rw-r--r-- | src/tools/po/it_IT.po | 2 | ||||
| -rw-r--r-- | src/tools/po/nl_NL.po | 4 | ||||
| -rw-r--r-- | src/wx/about_dialog.cc | 1 | ||||
| -rw-r--r-- | src/wx/audio_panel.cc | 36 | ||||
| -rw-r--r-- | src/wx/audio_panel.h | 3 | ||||
| -rw-r--r-- | src/wx/film_viewer.cc | 2 | ||||
| -rw-r--r-- | src/wx/po/de_DE.po | 4 | ||||
| -rw-r--r-- | src/wx/po/es_ES.po | 4 | ||||
| -rw-r--r-- | src/wx/po/fr_FR.po | 6 | ||||
| -rw-r--r-- | src/wx/po/it_IT.po | 6 | ||||
| -rw-r--r-- | src/wx/po/nl_NL.po | 6 | ||||
| -rw-r--r-- | src/wx/po/sv_SE.po | 6 | ||||
| -rw-r--r-- | src/wx/wscript | 1 | ||||
| -rw-r--r-- | test/image_test.cc | 14 | ||||
| -rw-r--r-- | test/play_test.cc | 2 | ||||
| -rw-r--r-- | wscript | 15 |
30 files changed, 292 insertions, 35 deletions
@@ -1,3 +1,24 @@ +2014-10-20 Carl Hetherington <cth@carlh.net> + + * Version 1.76.2 released. + +2014-10-19 Carl Hetherington <cth@carlh.net> + + * Add simple note of what audio resampling + will be done to the audio panel. + +2014-10-16 Carl Hetherington <cth@carlh.net> + + * Version 1.75.2 released. + +2014-10-16 Carl Hetherington <cth@carlh.net> + + * Version 1.75.1 released. + +2014-10-16 Carl Hetherington <cth@carlh.net> + + * Version 1.75.0 released. + 2014-10-14 Carl Hetherington <cth@carlh.net> * Version 1.74.3 released. @@ -8,7 +8,6 @@ deb_build_depends = {'debhelper': '8.0.0', 'pkg-config': '0.26', 'libssh-dev': '0.5.2', 'libsndfile1-dev': '1.0.25', - 'libmagick++-dev': '8:6.6.9.7', 'libgtk2.0-dev': '2.24.10'} deb_depends = dict() @@ -173,7 +172,7 @@ def build(target, options): if target.version == '6.5': cmd += ' --target-centos-6 --disable-tests' elif target.version == '7': - cmd += ' --target-centos-7' + cmd += ' --target-centos-7 --disable-tests' target.command(cmd) target.command('./waf') diff --git a/debian/changelog b/debian/changelog index 526cae29f..9842aacb1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -189,8 +189,12 @@ dcpomatic (2.0.14-1) UNRELEASED; urgency=low * New upstream release. * New upstream release. * New upstream release. + * New upstream release. + * New upstream release. + * New upstream release. + * New upstream release. - -- Carl Hetherington <carl@d1stkfactory> Tue, 14 Oct 2014 18:38:17 +0100 + -- Carl Hetherington <carl@d1stkfactory> Mon, 20 Oct 2014 22:50:32 +0100 dcpomatic (0.87-1) UNRELEASED; urgency=low diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index ccfc800c8..f6c671fd1 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -125,7 +125,7 @@ DCPVideo::encode_locally () } shared_ptr<dcp::XYZFrame> xyz = dcp::rgb_to_xyz ( - _frame->image (_burn_subtitles), + _frame->image (AV_PIX_FMT_RGB48LE, _burn_subtitles), in_lut, dcp::GammaLUT::cache.get (16, 1 / _frame->colour_conversion().output_gamma, false), matrix diff --git a/src/lib/image.cc b/src/lib/image.cc index 0da2d1e48..bc64ba3b8 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -322,6 +322,8 @@ Image::make_black () case PIX_FMT_ABGR: case PIX_FMT_BGRA: case PIX_FMT_RGB555LE: + case PIX_FMT_RGB48LE: + case PIX_FMT_RGB48BE: memset (data()[0], 0, lines(0) * stride()[0]); break; diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc index 004b89e65..75ccb6a3e 100644 --- a/src/lib/image_examiner.cc +++ b/src/lib/image_examiner.cc @@ -37,7 +37,9 @@ ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const Imag : _film (film) , _image_content (content) { +#ifdef DCPOMATIC_IMAGE_MAGICK using namespace MagickCore; +#endif Magick::Image* image = new Magick::Image (content->path(0).string()); _video_size = dcp::Size (image->columns(), image->rows()); delete image; diff --git a/src/lib/player_video.cc b/src/lib/player_video.cc index 2feb52f42..8e6fcd5f3 100644 --- a/src/lib/player_video.cc +++ b/src/lib/player_video.cc @@ -90,7 +90,7 @@ PlayerVideo::set_subtitle (PositionImage image) } shared_ptr<Image> -PlayerVideo::image (bool burn_subtitle) const +PlayerVideo::image (AVPixelFormat pixel_format, bool burn_subtitle) const { shared_ptr<Image> im = _in->image (); @@ -112,7 +112,7 @@ PlayerVideo::image (bool burn_subtitle) const break; } - shared_ptr<Image> out = im->crop_scale_window (total_crop, _inter_size, _out_size, _scaler, PIX_FMT_RGB24, true); + shared_ptr<Image> out = im->crop_scale_window (total_crop, _inter_size, _out_size, _scaler, pixel_format, true); if (burn_subtitle && _subtitle.image) { out->alpha_blend (_subtitle.image, _subtitle.position); diff --git a/src/lib/player_video.h b/src/lib/player_video.h index 0f5e83b10..e9d260972 100644 --- a/src/lib/player_video.h +++ b/src/lib/player_video.h @@ -18,6 +18,9 @@ */ #include <boost/shared_ptr.hpp> +extern "C" { +#include <libavutil/pixfmt.h> +} #include "types.h" #include "position.h" #include "colour_conversion.h" @@ -54,7 +57,7 @@ public: void set_subtitle (PositionImage); - boost::shared_ptr<Image> image (bool burn_subtitle) const; + boost::shared_ptr<Image> image (AVPixelFormat pix_fmt, bool burn_subtitle) const; void add_metadata (xmlpp::Node* node, bool send_subtitles) const; void send_binary (boost::shared_ptr<Socket> socket, bool send_subtitles) const; diff --git a/src/lib/player_video_frame.cc b/src/lib/player_video_frame.cc new file mode 100644 index 000000000..63ddc637b --- /dev/null +++ b/src/lib/player_video_frame.cc @@ -0,0 +1,148 @@ +/* + Copyright (C) 2013-2014 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 + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include <libdcp/raw_convert.h> +#include "player_video_frame.h" +#include "image.h" +#include "image_proxy.h" +#include "scaler.h" + +using std::string; +using std::cout; +using boost::shared_ptr; +using libdcp::raw_convert; + +PlayerVideoFrame::PlayerVideoFrame ( + shared_ptr<const ImageProxy> in, + Crop crop, + libdcp::Size inter_size, + libdcp::Size out_size, + Scaler const * scaler, + Eyes eyes, + Part part, + ColourConversion colour_conversion + ) + : _in (in) + , _crop (crop) + , _inter_size (inter_size) + , _out_size (out_size) + , _scaler (scaler) + , _eyes (eyes) + , _part (part) + , _colour_conversion (colour_conversion) +{ + +} + +PlayerVideoFrame::PlayerVideoFrame (shared_ptr<cxml::Node> node, shared_ptr<Socket> socket, shared_ptr<Log> log) +{ + _crop = Crop (node); + + _inter_size = libdcp::Size (node->number_child<int> ("InterWidth"), node->number_child<int> ("InterHeight")); + _out_size = libdcp::Size (node->number_child<int> ("OutWidth"), node->number_child<int> ("OutHeight")); + _scaler = Scaler::from_id (node->string_child ("Scaler")); + _eyes = (Eyes) node->number_child<int> ("Eyes"); + _part = (Part) node->number_child<int> ("Part"); + _colour_conversion = ColourConversion (node); + + _in = image_proxy_factory (node->node_child ("In"), socket, log); + + if (node->optional_number_child<int> ("SubtitleX")) { + + _subtitle_position = Position<int> (node->number_child<int> ("SubtitleX"), node->number_child<int> ("SubtitleY")); + + shared_ptr<Image> image ( + new Image (PIX_FMT_RGBA, libdcp::Size (node->number_child<int> ("SubtitleWidth"), node->number_child<int> ("SubtitleHeight")), true) + ); + + image->read_from_socket (socket); + _subtitle_image = image; + } +} + +void +PlayerVideoFrame::set_subtitle (shared_ptr<const Image> image, Position<int> pos) +{ + _subtitle_image = image; + _subtitle_position = pos; +} + +shared_ptr<Image> +PlayerVideoFrame::image (AVPixelFormat pixel_format) const +{ + shared_ptr<Image> im = _in->image (); + + Crop total_crop = _crop; + switch (_part) { + case PART_LEFT_HALF: + total_crop.right += im->size().width / 2; + break; + case PART_RIGHT_HALF: + total_crop.left += im->size().width / 2; + break; + case PART_TOP_HALF: + total_crop.bottom += im->size().height / 2; + break; + case PART_BOTTOM_HALF: + total_crop.top += im->size().height / 2; + break; + default: + break; + } + + shared_ptr<Image> out = im->crop_scale_window (total_crop, _inter_size, _out_size, _scaler, pixel_format, false); + + Position<int> const container_offset ((_out_size.width - _inter_size.width) / 2, (_out_size.height - _inter_size.width) / 2); + + if (_subtitle_image) { + out->alpha_blend (_subtitle_image, _subtitle_position); + } + + return out; +} + +void +PlayerVideoFrame::add_metadata (xmlpp::Node* node) const +{ + _crop.as_xml (node); + _in->add_metadata (node->add_child ("In")); + node->add_child("InterWidth")->add_child_text (raw_convert<string> (_inter_size.width)); + node->add_child("InterHeight")->add_child_text (raw_convert<string> (_inter_size.height)); + node->add_child("OutWidth")->add_child_text (raw_convert<string> (_out_size.width)); + node->add_child("OutHeight")->add_child_text (raw_convert<string> (_out_size.height)); + node->add_child("Scaler")->add_child_text (_scaler->id ()); + node->add_child("Eyes")->add_child_text (raw_convert<string> (_eyes)); + node->add_child("Part")->add_child_text (raw_convert<string> (_part)); + _colour_conversion.as_xml (node); + if (_subtitle_image) { + node->add_child ("SubtitleWidth")->add_child_text (raw_convert<string> (_subtitle_image->size().width)); + node->add_child ("SubtitleHeight")->add_child_text (raw_convert<string> (_subtitle_image->size().height)); + node->add_child ("SubtitleX")->add_child_text (raw_convert<string> (_subtitle_position.x)); + node->add_child ("SubtitleY")->add_child_text (raw_convert<string> (_subtitle_position.y)); + } +} + +void +PlayerVideoFrame::send_binary (shared_ptr<Socket> socket) const +{ + _in->send_binary (socket); + if (_subtitle_image) { + _subtitle_image->write_to_socket (socket); + } +} diff --git a/src/lib/util.cc b/src/lib/util.cc index e0db5de2e..7a0f1a17a 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -44,7 +44,12 @@ #include <glib.h> #include <openjpeg.h> #include <pangomm/init.h> +#ifdef DCPOMATIC_IMAGE_MAGICK #include <magick/MagickCore.h> +#else +#include <magick/common.h> +#include <magick/magick_config.h> +#endif #include <magick/version.h> #include <dcp/version.h> #include <dcp/util.h> diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc index 8c33b7d83..f55a425ce 100644 --- a/src/tools/dcpomatic_cli.cc +++ b/src/tools/dcpomatic_cli.cc @@ -139,6 +139,17 @@ main (int argc, char* argv[]) exit (EXIT_FAILURE); } + ContentList content = film->content (); + for (ContentList::const_iterator i = content.begin(); i != content.end(); ++i) { + vector<boost::filesystem::path> paths = (*i)->paths (); + for (vector<boost::filesystem::path>::const_iterator j = paths.begin(); j != paths.end(); ++j) { + if (!boost::filesystem::exists (*j)) { + cerr << argv[0] << ": content file " << *j << " not found.\n"; + exit (EXIT_FAILURE); + } + } + } + cout << "\nMaking DCP for " << film->name() << "\n"; film->make_dcp (); diff --git a/src/tools/po/de_DE.po b/src/tools/po/de_DE.po index 4f282e3ac..ab8f2fca7 100644 --- a/src/tools/po/de_DE.po +++ b/src/tools/po/de_DE.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-07-13 03:04+0100\n" "Last-Translator: Carsten Kurz\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/src/tools/po/es_ES.po b/src/tools/po/es_ES.po index 805991581..c4074fb12 100644 --- a/src/tools/po/es_ES.po +++ b/src/tools/po/es_ES.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: DCPOMATIC\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-04-20 10:21-0500\n" "Last-Translator: Manuel AC <manuel.acevedo@civantos.>\n" "Language-Team: Manuel AC <manuel.acevedo@civantos.com>\n" diff --git a/src/tools/po/fr_FR.po b/src/tools/po/fr_FR.po index 6d1b211b2..6d426d432 100644 --- a/src/tools/po/fr_FR.po +++ b/src/tools/po/fr_FR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: DCP-o-matic FRENCH\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-07-14 10:43+0100\n" "Last-Translator: Grégoire AUSINA <gregoire@gisele-productions.eu>\n" "Language-Team: \n" diff --git a/src/tools/po/it_IT.po b/src/tools/po/it_IT.po index 1885fb7fb..7f7baddaf 100644 --- a/src/tools/po/it_IT.po +++ b/src/tools/po/it_IT.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: IT VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-02-03 09:36+0100\n" "Last-Translator: William Fanelli <william.f@impronte.com>\n" "Language-Team: \n" diff --git a/src/tools/po/nl_NL.po b/src/tools/po/nl_NL.po index e07554b48..02eafd9cc 100644 --- a/src/tools/po/nl_NL.po +++ b/src/tools/po/nl_NL.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: DCP-o-matic\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-09-04 20:29+0100\n" "Last-Translator: Cherif Ben Brahim <firehc@mac.com>\n" "Language-Team: UniversalDV <Tkooijmans@universaldv.nl>\n" @@ -52,7 +52,7 @@ msgstr "&Help" msgid "&Jobs" msgstr "&Projecten" -#: src/tools/dcpomatic.cc:634 +#: src/tools/dcpomatic.cc:631 msgid "&Make DCP\tCtrl-M" msgstr "&Maak een DCP\tCtrl-M" diff --git a/src/wx/about_dialog.cc b/src/wx/about_dialog.cc index 15b667f9b..1bbcaba79 100644 --- a/src/wx/about_dialog.cc +++ b/src/wx/about_dialog.cc @@ -165,6 +165,7 @@ AboutDialog::AboutDialog (wxWindow* parent) supported_by.Add (wxT ("Wolfram Weber")); supported_by.Add (wxT ("Frank de Wulf")); supported_by.Add (wxT ("Pavel Zhdanko")); + supported_by.Add (wxT ("Daniel Židek")); add_section (_("Supported by"), supported_by); wxArrayString tested_by; diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index 82604763c..b7d6979d3 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -94,6 +94,15 @@ AudioPanel::AudioPanel (ContentPanel* p) _mapping = new AudioMappingView (this); _sizer->Add (_mapping, 1, wxEXPAND | wxALL, 6); + ++r; + + _description = new wxStaticText (this, wxID_ANY, wxT (" \n"), wxDefaultPosition, wxDefaultSize); + _sizer->Add (_description, 0, wxALL, 12); + wxFont font = _description->GetFont(); + font.SetStyle (wxFONTSTYLE_ITALIC); + font.SetPointSize (font.GetPointSize() - 1); + _description->SetFont (font); + ++r; _gain->wrapped()->SetRange (-60, 60); _gain->wrapped()->SetDigits (1); @@ -117,6 +126,9 @@ AudioPanel::film_changed (Film::Property property) _mapping->set_channels (_parent->film()->audio_channels ()); _sizer->Layout (); break; + case Film::VIDEO_FRAME_RATE: + setup_description (); + break; default: break; } @@ -136,6 +148,8 @@ AudioPanel::film_content_changed (int property) if (property == AudioContentProperty::AUDIO_MAPPING) { _mapping->set (acs ? acs->audio_mapping () : AudioMapping ()); _sizer->Layout (); + } else if (property == AudioContentProperty::AUDIO_FRAME_RATE) { + setup_description (); } else if (property == FFmpegContentProperty::AUDIO_STREAM) { _mapping->set (acs ? acs->audio_mapping () : AudioMapping ()); _sizer->Layout (); @@ -246,6 +260,27 @@ AudioPanel::processor_changed () } void +AudioPanel::setup_description () +{ + AudioContentList ac = _parent->selected_audio (); + if (ac.size () != 1) { + _description->SetLabel (""); + return; + } + + shared_ptr<AudioContent> acs = ac.front (); + if (acs->audio_frame_rate() != acs->resampled_audio_frame_rate ()) { + _description->SetLabel (wxString::Format ( + _("Audio will be resampled from %.3fkHz to %.3fkHz."), + acs->audio_frame_rate() / 1000.0, + acs->resampled_audio_frame_rate() / 1000.0 + )); + } else { + _description->SetLabel (_("Audio will not be resampled.")); + } +} + +void AudioPanel::mapping_changed (AudioMapping m) { AudioContentList c = _parent->selected_audio (); @@ -276,6 +311,7 @@ AudioPanel::content_selection_changed () film_content_changed (AudioContentProperty::AUDIO_MAPPING); film_content_changed (AudioContentProperty::AUDIO_PROCESSOR); + film_content_changed (AudioContentProperty::AUDIO_FRAME_RATE); film_content_changed (FFmpegContentProperty::AUDIO_STREAM); film_content_changed (FFmpegContentProperty::AUDIO_STREAMS); } diff --git a/src/wx/audio_panel.h b/src/wx/audio_panel.h index d5821d26a..b0218575a 100644 --- a/src/wx/audio_panel.h +++ b/src/wx/audio_panel.h @@ -44,6 +44,7 @@ private: void mapping_changed (AudioMapping); void processor_changed (); void setup_processors (); + void setup_description (); ContentSpinCtrlDouble<AudioContent>* _gain; wxButton* _gain_calculate_button; @@ -51,6 +52,8 @@ private: ContentSpinCtrl<AudioContent>* _delay; wxChoice* _stream; wxChoice* _processor; + wxStaticText* _stream_description; AudioMappingView* _mapping; + wxStaticText* _description; AudioDialog* _audio_dialog; }; diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 7ecba1903..a46983a6f 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -172,7 +172,7 @@ FilmViewer::get (DCPTime p, bool accurate) list<shared_ptr<PlayerVideo> > pvf = _player->get_video (p, accurate); if (!pvf.empty ()) { try { - _frame = pvf.front()->image (true); + _frame = pvf.front()->image (PIX_FMT_RGB24, true); _frame = _frame->scale (_frame->size(), Scaler::from_id ("fastbilinear"), PIX_FMT_RGB24, false); _position = pvf.front()->time (); _inter_position = pvf.front()->inter_position (); diff --git a/src/wx/po/de_DE.po b/src/wx/po/de_DE.po index 5050abc0b..d7353e914 100644 --- a/src/wx/po/de_DE.po +++ b/src/wx/po/de_DE.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-07-13 03:08+0100\n" "Last-Translator: Carsten Kurz\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -1119,7 +1119,7 @@ msgstr "Gebiet (z.B. UK)" msgid "Test version " msgstr "Test Version" -#: src/wx/about_dialog.cc:213 +#: src/wx/about_dialog.cc:210 msgid "Tested by" msgstr "Getestet von" diff --git a/src/wx/po/es_ES.po b/src/wx/po/es_ES.po index ea0ed5ab4..0191fc503 100644 --- a/src/wx/po/es_ES.po +++ b/src/wx/po/es_ES.po @@ -1109,7 +1109,7 @@ msgstr "Idioma del subtítulo (ej. EN)" msgid "Subtitles" msgstr "Subtítulos" -#: src/wx/about_dialog.cc:168 +#: src/wx/about_dialog.cc:165 msgid "Supported by" msgstr "Soportado por" @@ -1134,7 +1134,7 @@ msgstr "Territorio (ej. ES)" msgid "Test version " msgstr "Versión en prueba" -#: src/wx/about_dialog.cc:213 +#: src/wx/about_dialog.cc:210 msgid "Tested by" msgstr "Comprobado por" diff --git a/src/wx/po/fr_FR.po b/src/wx/po/fr_FR.po index e4c2034ff..46c4822d6 100644 --- a/src/wx/po/fr_FR.po +++ b/src/wx/po/fr_FR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: DCP-o-matic FRENCH\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-07-14 11:27+0100\n" "Last-Translator: Grégoire AUSINA <gregoire@gisele-productions.eu>\n" "Language-Team: \n" @@ -1096,7 +1096,7 @@ msgstr "Langue de sous-titres (ex. FR)" msgid "Subtitles" msgstr "Sous-titres" -#: src/wx/about_dialog.cc:168 +#: src/wx/about_dialog.cc:165 msgid "Supported by" msgstr "Soutenu par" @@ -1120,7 +1120,7 @@ msgstr "Territoire (ex. FR)" msgid "Test version " msgstr "Version test" -#: src/wx/about_dialog.cc:213 +#: src/wx/about_dialog.cc:210 msgid "Tested by" msgstr "Testé par" diff --git a/src/wx/po/it_IT.po b/src/wx/po/it_IT.po index 35c463d30..35cb8db88 100644 --- a/src/wx/po/it_IT.po +++ b/src/wx/po/it_IT.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: IT VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-02-03 10:46+0100\n" "Last-Translator: William Fanelli <william.f@impronte.com>\n" "Language-Team: \n" @@ -1118,7 +1118,7 @@ msgstr "Lingua dei Sottotitoli (es. FR)" msgid "Subtitles" msgstr "Sottotitoli" -#: src/wx/about_dialog.cc:168 +#: src/wx/about_dialog.cc:165 msgid "Supported by" msgstr "" @@ -1144,7 +1144,7 @@ msgstr "Nazione (es. UK)" msgid "Test version " msgstr "Versione di test" -#: src/wx/about_dialog.cc:213 +#: src/wx/about_dialog.cc:210 msgid "Tested by" msgstr "" diff --git a/src/wx/po/nl_NL.po b/src/wx/po/nl_NL.po index aa609f1f0..e792f84be 100644 --- a/src/wx/po/nl_NL.po +++ b/src/wx/po/nl_NL.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: DCP-o-matic\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-09-04 20:17+0100\n" "Last-Translator: Cherif Ben Brahim <firehc@mac.com>\n" "Language-Team: UniversalDV <TKooijmans@universaldv.nl>\n" @@ -1104,7 +1104,7 @@ msgstr "Ondertitel Taal (vb NL)" msgid "Subtitles" msgstr "Ondertitels" -#: src/wx/about_dialog.cc:168 +#: src/wx/about_dialog.cc:165 msgid "Supported by" msgstr "Ondersteund door" @@ -1128,7 +1128,7 @@ msgstr "Grondgebied (vb NL)" msgid "Test version " msgstr "Test Versie" -#: src/wx/about_dialog.cc:213 +#: src/wx/about_dialog.cc:210 msgid "Tested by" msgstr "Getest door" diff --git a/src/wx/po/sv_SE.po b/src/wx/po/sv_SE.po index 497b9a25d..441643cce 100644 --- a/src/wx/po/sv_SE.po +++ b/src/wx/po/sv_SE.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: DCP-o-matic\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-10-15 09:37+0100\n" +"POT-Creation-Date: 2014-10-16 16:38+0100\n" "PO-Revision-Date: 2014-01-19 09:14+0100\n" "Last-Translator: Adam Klotblixt <adam.klotblixt@gmail.com>\n" "Language-Team: \n" @@ -1131,7 +1131,7 @@ msgstr "Undertextspråk (ex. SV)" msgid "Subtitles" msgstr "Undertexter" -#: src/wx/about_dialog.cc:168 +#: src/wx/about_dialog.cc:165 msgid "Supported by" msgstr "Stöd från" @@ -1156,7 +1156,7 @@ msgstr "Område (ex. SV)" msgid "Test version " msgstr "Testversion" -#: src/wx/about_dialog.cc:213 +#: src/wx/about_dialog.cc:210 #, fuzzy msgid "Tested by" msgstr "Översatt av" diff --git a/src/wx/wscript b/src/wx/wscript index 0f39038a5..8801ccc75 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -68,7 +68,6 @@ def configure(conf): 'wx_gtk2u_adv-3.0', 'wx_gtk2u_core-3.0', 'wx_baseu_xml-3.0', 'wx_baseu-3.0'] conf.env.LIB_WXWIDGETS = ['tiff', 'SM', 'dl', 'jpeg', 'png', 'X11', 'expat'] if conf.env.TARGET_DEBIAN and conf.env.DEBIAN_UNSTABLE: - conf.env.LIB_WXWIDGETS.append('Xxf86vm') conf.env.LIB_WXWIDGETS.append('Xext') conf.env.LIB_WXWIDGETS.append('X11') diff --git a/test/image_test.cc b/test/image_test.cc index ee4819d6b..44d15a8cb 100644 --- a/test/image_test.cc +++ b/test/image_test.cc @@ -181,16 +181,24 @@ read_file (string file) boost::shared_ptr<Image> image (new Image (PIX_FMT_RGB24, size, true)); +#ifdef DCPOMATIC_IMAGE_MAGICK using namespace MagickCore; +#endif uint8_t* p = image->data()[0]; for (int y = 0; y < size.height; ++y) { uint8_t* q = p; for (int x = 0; x < size.width; ++x) { Magick::Color c = magick_image.pixelColor (x, y); +#ifdef DCPOMATIC_IMAGE_MAGICK *q++ = c.redQuantum() * 255 / QuantumRange; *q++ = c.greenQuantum() * 255 / QuantumRange; *q++ = c.blueQuantum() * 255 / QuantumRange; +#else + *q++ = c.redQuantum() * 255 / MaxRGB; + *q++ = c.greenQuantum() * 255 / MaxRGB; + *q++ = c.blueQuantum() * 255 / MaxRGB; +#endif } p += image->stride()[0]; } @@ -202,14 +210,20 @@ static void write_file (shared_ptr<Image> image, string file) { +#ifdef DCPOMATIC_IMAGE_MAGICK using namespace MagickCore; +#endif Magick::Image magick_image (Magick::Geometry (image->size().width, image->size().height), Magick::Color (0, 0, 0)); uint8_t*p = image->data()[0]; for (int y = 0; y < image->size().height; ++y) { uint8_t* q = p; for (int x = 0; x < image->size().width; ++x) { +#ifdef DCPOMATIC_IMAGE_MAGICK Magick::Color c (q[0] * QuantumRange / 256, q[1] * QuantumRange / 256, q[2] * QuantumRange / 256); +#else + Magick::Color c (q[0] * MaxRGB / 256, q[1] * MaxRGB / 256, q[2] * MaxRGB / 256); +#endif magick_image.pixelColor (x, y, c); q += 3; } diff --git a/test/play_test.cc b/test/play_test.cc index 067f772ff..bbf70781a 100644 --- a/test/play_test.cc +++ b/test/play_test.cc @@ -51,7 +51,7 @@ public: { Video v; v.content = _player->_last_video; - v.image = i->image (); + v.image = i->image (PIX_FMT_RGB24); v.time = t; _queue.push_front (v); } @@ -1,6 +1,8 @@ import subprocess import os import sys +import distutils +import distutils.spawn APPNAME = 'dcpomatic' VERSION = '2.0.14devel' @@ -28,8 +30,9 @@ def static_ffmpeg(conf): conf.check_cfg(package='libavfilter', args='--cflags', uselib_store='AVFILTER', mandatory=True) conf.env.STLIB_AVFILTER = ['avfilter', 'swresample'] conf.check_cfg(package='libavcodec', args='--cflags', uselib_store='AVCODEC', mandatory=True) + # lzma link is needed by Centos 7, at least conf.env.STLIB_AVCODEC = ['avcodec'] - conf.env.LIB_AVCODEC = ['z'] + conf.env.LIB_AVCODEC = ['z', 'lzma'] conf.check_cfg(package='libavutil', args='--cflags', uselib_store='AVUTIL', mandatory=True) conf.env.STLIB_AVUTIL = ['avutil'] conf.check_cfg(package='libswscale', args='--cflags', uselib_store='SWSCALE', mandatory=True) @@ -63,7 +66,7 @@ def static_sub(conf): conf.env.STLIB_SUB = ['sub'] def static_dcp(conf, static_boost, static_xmlpp, static_xmlsec, static_ssh): - conf.check_cfg(package='libdcp-1.0', atleast_version='0.96', args='--cflags', uselib_store='DCP', mandatory=True) + conf.check_cfg(package='libdcp-1.0', atleast_version='1.0', args='--cflags', uselib_store='DCP', mandatory=True) conf.env.DEFINES_DCP = [f.replace('\\', '') for f in conf.env.DEFINES_DCP] conf.env.STLIB_DCP = ['dcp-1.0', 'asdcp-libdcp-1.0', 'kumu-libdcp-1.0'] conf.env.LIB_DCP = ['glibmm-2.4', 'ssl', 'crypto', 'bz2', 'xslt'] @@ -339,7 +342,13 @@ def configure(conf): # Dependencies which are always dynamically linked conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True) conf.check_cfg(package='glib-2.0', args='--cflags --libs', uselib_store='GLIB', mandatory=True) - conf.check_cfg(package= '', path=conf.options.magickpp_config, args='--cppflags --cxxflags --libs', uselib_store='MAGICK', mandatory=True) + if distutils.spawn.find_executable(conf.options.magickpp_config): + conf.check_cfg(package='', path=conf.options.magickpp_config, args='--cppflags --cxxflags --libs', uselib_store='MAGICK', mandatory=True) + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_IMAGE_MAGICK') + else: + conf.check_cfg(package='GraphicsMagick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=True) + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_GRAPHICS_MAGICK') + conf.check_cfg(package='libzip', args='--cflags --libs', uselib_store='ZIP', mandatory=True) conf.check_cfg(package='pangomm-1.4', args='--cflags --libs', uselib_store='PANGOMM', mandatory=True) conf.check_cfg(package='cairomm-1.0', args='--cflags --libs', uselib_store='CAIROMM', mandatory=True) |
