From 17ef55754e0cd51ccbe7621c3679d2b181448a09 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Dec 2013 12:04:10 +0000 Subject: Add setup of progression order change (POC) in J2K for 4K (from OpenDCP). --- src/lib/dcp_video_frame.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src') diff --git a/src/lib/dcp_video_frame.cc b/src/lib/dcp_video_frame.cc index e719d7ef4..00dc1ac74 100644 --- a/src/lib/dcp_video_frame.cc +++ b/src/lib/dcp_video_frame.cc @@ -197,6 +197,24 @@ DCPVideoFrame::encode_locally () parameters.tcp_numlayers++; parameters.cp_disto_alloc = 1; parameters.cp_rsiz = _resolution == RESOLUTION_2K ? CINEMA2K : CINEMA4K; + if (_resolution == RESOLUTION_4K) { + parameters.numpocs = 2; + parameters.POC[0].tile = 1; + parameters.POC[0].resno0 = 0; + parameters.POC[0].compno0 = 0; + parameters.POC[0].layno1 = 1; + parameters.POC[0].resno1 = parameters.numresolution - 1; + parameters.POC[0].compno1 = 3; + parameters.POC[0].prg1 = CPRL; + parameters.POC[1].tile = 1; + parameters.POC[1].resno0 = parameters.numresolution - 1; + parameters.POC[1].compno0 = 0; + parameters.POC[1].layno1 = 1; + parameters.POC[1].resno1 = parameters.numresolution; + parameters.POC[1].compno1 = 3; + parameters.POC[1].prg1 = CPRL; + } + parameters.cp_comment = strdup (N_("DCP-o-matic")); parameters.cp_cinema = _resolution == RESOLUTION_2K ? CINEMA2K_24 : CINEMA4K_24; -- cgit v1.2.3 From dae3687a766966d17aed553dddf27bc2679b7fda Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Dec 2013 12:26:42 +0000 Subject: Supporter. --- src/wx/about_dialog.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/wx/about_dialog.cc b/src/wx/about_dialog.cc index 14a997985..0d5ae7fd6 100644 --- a/src/wx/about_dialog.cc +++ b/src/wx/about_dialog.cc @@ -125,6 +125,7 @@ AboutDialog::AboutDialog (wxWindow* parent) supported_by.Add (wxT ("Randy Stankey")); supported_by.Add (wxT ("Frank Cianciolo")); supported_by.Add (wxT ("Rodolfo Giuliano")); + supported_by.Add (wxT ("Sylvain Mielle")); add_section (_("Supported by"), supported_by); sizer->Add (_notebook, wxSizerFlags().Centre().Border(wxALL, 16).Expand()); -- cgit v1.2.3 From 741af11e934300eef55c1e681653842c60bf564b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Dec 2013 14:27:31 +0000 Subject: Do the right thing on closing the window. --- src/tools/dcpomatic.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 72fb56b4f..66f795ddf 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -552,6 +552,8 @@ private: return; } + maybe_save_then_delete_film (); + ev.Skip (); } -- cgit v1.2.3 From a2107a86ee1e5170ab77a04e524bbb5dd94b20c5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Dec 2013 14:28:08 +0000 Subject: Fix non-update of video information on changing DCP resolution (#299). --- ChangeLog | 2 ++ src/wx/video_panel.cc | 1 + 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/ChangeLog b/ChangeLog index 6ccf0ee32..7feabc198 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2013-12-27 Carl Hetherington + * Fix non-update of video information on changing DCP resolution (#299). + * Version 1.52 released. 2013-12-27 Carl Hetherington diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc index 0dbee5420..90b4adfe3 100644 --- a/src/wx/video_panel.cc +++ b/src/wx/video_panel.cc @@ -211,6 +211,7 @@ VideoPanel::film_changed (Film::Property property) switch (property) { case Film::CONTAINER: case Film::VIDEO_FRAME_RATE: + case Film::RESOLUTION: setup_description (); break; default: -- cgit v1.2.3 From 31901d96cd6ba699e8f06b43057786ec405613a3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Dec 2013 15:36:11 +0000 Subject: Remove erroneous float passed as int parameter. --- src/wx/film_editor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 564b90d28..e478734c7 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -284,7 +284,7 @@ FilmEditor::make_content_panel () s->Add (b, 0, wxALL, 4); - _content_sizer->Add (s, 0.75, wxEXPAND | wxALL, 6); + _content_sizer->Add (s, 1, wxEXPAND | wxALL, 6); } _sequence_video = new wxCheckBox (_content_panel, wxID_ANY, _("Keep video in sequence")); -- cgit v1.2.3 From 6293ca30e4afb64fb3e172048c8784adc022f9dc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Dec 2013 15:37:19 +0000 Subject: Remove unused variable. --- src/wx/dir_picker_ctrl.cc | 1 - src/wx/dir_picker_ctrl.h | 1 - src/wx/video_panel.h | 1 - 3 files changed, 3 deletions(-) (limited to 'src') diff --git a/src/wx/dir_picker_ctrl.cc b/src/wx/dir_picker_ctrl.cc index 47a546a8d..fad545283 100644 --- a/src/wx/dir_picker_ctrl.cc +++ b/src/wx/dir_picker_ctrl.cc @@ -29,7 +29,6 @@ using namespace boost; DirPickerCtrl::DirPickerCtrl (wxWindow* parent) : wxPanel (parent) - , _parent (parent) { _sizer = new wxBoxSizer (wxHORIZONTAL); diff --git a/src/wx/dir_picker_ctrl.h b/src/wx/dir_picker_ctrl.h index 97c0d217a..8d596cefc 100644 --- a/src/wx/dir_picker_ctrl.h +++ b/src/wx/dir_picker_ctrl.h @@ -30,7 +30,6 @@ public: private: void browse_clicked (); - wxWindow* _parent; wxStaticText* _folder; wxButton* _browse; wxString _path; diff --git a/src/wx/video_panel.h b/src/wx/video_panel.h index fb1f98b29..2f0c97cb7 100644 --- a/src/wx/video_panel.h +++ b/src/wx/video_panel.h @@ -47,7 +47,6 @@ private: ContentSpinCtrl* _top_crop; ContentSpinCtrl* _bottom_crop; ContentChoice* _ratio; - wxStaticText* _ratio_description; wxStaticText* _description; wxStaticText* _filters; wxButton* _filters_button; -- cgit v1.2.3 From 2026bfd81dbc8975e127e92c5395e996c2d1462b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Dec 2013 16:06:05 +0000 Subject: Remove unused variable. --- src/wx/timecode.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/wx/timecode.h b/src/wx/timecode.h index 5b094e39f..880b44a31 100644 --- a/src/wx/timecode.h +++ b/src/wx/timecode.h @@ -40,7 +40,6 @@ private: wxSizer* _sizer; wxPanel* _editable; wxTextCtrl* _hours; - wxStaticText* _hours_label; wxTextCtrl* _minutes; wxTextCtrl* _seconds; wxTextCtrl* _frames; -- cgit v1.2.3