-
-string
-VideoContent::information () const
-{
- if (video_size().width == 0 || video_size().height == 0) {
- return "";
- }
-
- SafeStringStream s;
-
- s << String::compose (
- _("%1x%2 pixels (%3:1)"),
- video_size().width,
- video_size().height,
- setprecision (3), video_size().ratio ()
- );
-
- if (sample_aspect_ratio ()) {
- s << String::compose (_(" sample aspect ratio %1:1"), sample_aspect_ratio().get ());
- }
-
- return s.str ();
-}
-