diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-21 19:12:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-21 19:12:44 +0100 |
| commit | fe771b1f0ed9f794bc98faa4cca2a15651f28e87 (patch) | |
| tree | ae4366fcdd84796bcb75d3012893929f7bc2c71f /src/lib/video_content.cc | |
| parent | 6ec7654b77b22d32cb1ca0dd35c8d66e16ca36d6 (diff) | |
Add more video properties to content properties dialog.
Also implement the whole properties thing more neatly.
Diffstat (limited to 'src/lib/video_content.cc')
| -rw-r--r-- | src/lib/video_content.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index 8c6f6c7eb..e2fba5829 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -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"))); +} |
