- shared_ptr<VideoContent> vcs = vc.front ();
-
- wxString d;
-
- int lines = 0;
-
- if (vcs->video_size().width && vcs->video_size().height) {
- d << wxString::Format (
- _("Content video is %dx%d (%.2f:1)\n"),
- vcs->video_size_after_3d_split().width,
- vcs->video_size_after_3d_split().height,
- vcs->video_size_after_3d_split().ratio ()
- );
- ++lines;
- }
-
- Crop const crop = vcs->crop ();
- if ((crop.left || crop.right || crop.top || crop.bottom) && vcs->video_size() != libdcp::Size (0, 0)) {
- libdcp::Size cropped = vcs->video_size_after_crop ();
- d << wxString::Format (
- _("Cropped to %dx%d (%.2f:1)\n"),
- cropped.width, cropped.height,
- cropped.ratio ()
- );
- ++lines;
- }
-
- Ratio const * ratio = vcs->ratio ();
- libdcp::Size container_size = fit_ratio_within (_editor->film()->container()->ratio (), _editor->film()->full_frame ());
- float const ratio_value = ratio ? ratio->ratio() : vcs->video_size_after_crop().ratio ();
-
- /* We have a specified ratio to scale to */
- libdcp::Size const scaled = fit_ratio_within (ratio_value, container_size);
-
- d << wxString::Format (
- _("Scaled to %dx%d (%.2f:1)\n"),
- scaled.width, scaled.height,
- scaled.ratio ()
- );
- ++lines;
-
- if (scaled != container_size) {
- d << wxString::Format (
- _("Padded with black to %dx%d (%.2f:1)\n"),
- container_size.width, container_size.height,
- container_size.ratio ()
- );
- ++lines;
- }
-
- d << wxString::Format (_("Content frame rate %.4f\n"), vcs->video_frame_rate ());
- ++lines;
- FrameRateChange frc (vcs->video_frame_rate(), _editor->film()->video_frame_rate ());
- d << std_to_wx (frc.description) << "\n";
- ++lines;