Add more video properties to content properties dialog.
[dcpomatic.git] / src / lib / video_content.cc
index 8c6f6c7eb7ae11c39aada00f73ed0113c76febca..e2fba5829a6f489e6638b94d376f624371dc4f1e 100644 (file)
@@ -56,6 +56,8 @@ using std::max;
 using std::stringstream;
 using std::fixed;
 using std::setprecision;
+using std::list;
+using std::pair;
 using boost::shared_ptr;
 using boost::optional;
 using boost::dynamic_pointer_cast;
@@ -569,3 +571,11 @@ VideoContent::processing_description () const
 
        return d.str ();
 }
+
+void
+VideoContent::add_properties (list<pair<string, string> >& p) const
+{
+       p.push_back (make_pair (_("Video length"), raw_convert<string> (video_length ()) + " " + _("video frames")));
+       p.push_back (make_pair (_("Video size"), raw_convert<string> (video_size().width) + "x" + raw_convert<string> (video_size().height)));
+       p.push_back (make_pair (_("Video frame rate"), raw_convert<string> (video_frame_rate()) + " " + _("frames per second")));
+}