change_speed = !about_equal (source * factor(), dcp);
if (!skip && !repeat && !change_speed) {
- description = _("DCP and source have the same rate.\n");
+ description = _("Content and DCP have the same rate.\n");
} else {
if (skip) {
- description = _("DCP will use every other frame of the source.\n");
+ description = _("DCP will use every other frame of the content.\n");
} else if (repeat) {
- description = _("Each source frame will be doubled in the DCP.\n");
+ description = _("Each content frame will be doubled in the DCP.\n");
}
if (change_speed) {
float const pc = dcp * 100 / (source * factor());
- description += String::compose (_("DCP will run at %1%% of the source speed.\n"), pc);
+ description += String::compose (_("DCP will run at %1%% of the content speed.\n"), pc);
}
}
}
grid->Add (_ratio, wxGBPosition (r, 1));
++r;
- _scaling_description = new wxStaticText (this, wxID_ANY, wxT ("\n \n \n \n"), wxDefaultPosition, wxDefaultSize);
- grid->Add (_scaling_description, wxGBPosition (r, 0), wxGBSpan (1, 2), wxEXPAND | wxALIGN_CENTER_VERTICAL | wxALL, 6);
- wxFont font = _scaling_description->GetFont();
- font.SetStyle(wxFONTSTYLE_ITALIC);
- font.SetPointSize(font.GetPointSize() - 1);
- _scaling_description->SetFont(font);
- ++r;
-
{
add_label_to_grid_bag_sizer (grid, this, _("Filters"), true, wxGBPosition (r, 0));
wxSizer* s = new wxBoxSizer (wxHORIZONTAL);
}
++r;
+ _description = new wxStaticText (this, wxID_ANY, wxT ("\n \n \n \n \n"), wxDefaultPosition, wxDefaultSize);
+ grid->Add (_description, wxGBPosition (r, 0), wxGBSpan (1, 2), wxEXPAND | wxALIGN_CENTER_VERTICAL | wxALL, 6);
+ wxFont font = _description->GetFont();
+ font.SetStyle(wxFONTSTYLE_ITALIC);
+ font.SetPointSize(font.GetPointSize() - 1);
+ _description->SetFont(font);
+ ++r;
+
_left_crop->SetRange (0, 1024);
_top_crop->SetRange (0, 1024);
_right_crop->SetRange (0, 1024);
{
switch (property) {
case Film::CONTAINER:
- setup_scaling_description ();
+ case Film::VIDEO_FRAME_RATE:
+ setup_description ();
break;
default:
break;
checked_set (_right_crop, vc ? vc->crop().right : 0);
checked_set (_top_crop, vc ? vc->crop().top : 0);
checked_set (_bottom_crop, vc ? vc->crop().bottom : 0);
- setup_scaling_description ();
+ setup_description ();
} else if (property == VideoContentProperty::VIDEO_RATIO) {
if (vc) {
int n = 0;
} else {
checked_set (_ratio, -1);
}
- setup_scaling_description ();
+ setup_description ();
+ } else if (property == VideoContentProperty::VIDEO_FRAME_RATE) {
+ setup_description ();
} else if (property == FFmpegContentProperty::FILTERS) {
if (fc) {
pair<string, string> p = Filter::ffmpeg_strings (fc->filters ());
}
void
-VideoPanel::setup_scaling_description ()
+VideoPanel::setup_description ()
{
shared_ptr<VideoContent> vc = _editor->selected_video_content ();
if (!vc) {
- _scaling_description->SetLabel ("");
+ _description->SetLabel ("");
return;
}
if (vc->video_size().width && vc->video_size().height) {
d << wxString::Format (
- _("Original video is %dx%d (%.2f:1)\n"),
+ _("Content video is %dx%d (%.2f:1)\n"),
vc->video_size().width, vc->video_size().height,
float (vc->video_size().width) / vc->video_size().height
);
}
}
- for (int i = lines; i < 4; ++i) {
+ d << wxString::Format (_("Content frame rate %.4f\n"), vc->video_frame_rate ());
+ ++lines;
+ FrameRateConversion frc (vc->video_frame_rate(), _editor->film()->video_frame_rate ());
+ d << frc.description << "\n";
+ ++lines;
+
+ for (int i = lines; i < 6; ++i) {
d << wxT ("\n ");
}
- _scaling_description->SetLabel (d);
+ _description->SetLabel (d);
_sizer->Layout ();
}