Add a hint if there is 3D content and the DCP is 2D.
authorCarl Hetherington <cth@carlh.net>
Fri, 7 Nov 2014 09:50:43 +0000 (09:50 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 7 Nov 2014 09:50:43 +0000 (09:50 +0000)
ChangeLog
src/wx/hints_dialog.cc

index 96307028bd8fd383403def21612bfa197e9030f4..47aea47cc253fb2d613157b496d045c2490a669a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-07  c.hetherington  <cth@carlh.net>
+
+       * Add a hint if there is 3D content in a proposed 2D DCP.
+
 2014-11-06  Carl Hetherington  <cth@carlh.net>
 
        * Basic support for emailing a report of
index 497d138ca0608074dba29dd131f00a339ece8afc..a5f3417a2401a018c24db4caa4451f0a4506e9e4 100644 (file)
@@ -133,6 +133,20 @@ HintsDialog::film_changed ()
                _text->Newline ();
        }
 
+       int three_d = 0;
+       for (ContentList::const_iterator i = content.begin(); i != content.end(); ++i) {
+               shared_ptr<const VideoContent> vc = dynamic_pointer_cast<const VideoContent> (*i);
+               if (vc && vc->video_frame_type() != VIDEO_FRAME_TYPE_2D) {
+                       ++three_d;
+               }
+       }
+
+       if (three_d > 0) {
+               hint = true;
+               _text->WriteText (_("You are using 3D content but your DCP is set to 2D.  Set the DCP to 3D if you want to play it back on a 3D system (e.g.\ Real-D, MasterImage etc.)"));
+               _text->Newline ();
+       }
+
        _text->EndSymbolBullet ();
 
        if (!hint) {