switch (_range->GetSelection()) {
case 0:
- vc.front()->video->set_range (VIDEO_RANGE_FULL);
+ vc.front()->video->set_range (VideoRange::FULL);
break;
case 1:
- vc.front()->video->set_range (VIDEO_RANGE_VIDEO);
+ vc.front()->video->set_range (VideoRange::VIDEO);
break;
default:
DCPOMATIC_ASSERT (false);
VideoPanel::film_changed (Film::Property property)
{
switch (property) {
- case Film::VIDEO_FRAME_RATE:
- case Film::CONTAINER:
- case Film::RESOLUTION:
+ case Film::Property::VIDEO_FRAME_RATE:
+ case Film::Property::CONTAINER:
+ case Film::Property::RESOLUTION:
setup_description ();
setup_sensitivity ();
break;
- case Film::REEL_TYPE:
- case Film::INTEROP:
+ case Film::Property::REEL_TYPE:
+ case Film::Property::INTEROP:
setup_sensitivity ();
break;
default:
setup_sensitivity ();
} else if (property == VideoContentProperty::RANGE) {
if (vcs) {
- checked_set (_range, vcs->video->range() == VIDEO_RANGE_FULL ? 0 : 1);
+ checked_set (_range, vcs->video->range() == VideoRange::FULL ? 0 : 1);
} else {
checked_set (_range, 0);
}
void
VideoPanel::fade_in_changed ()
{
- for (auto i: _parent->selected_video ()) {
+ auto const hmsf = _fade_in->get();
+ for (auto i: _parent->selected_video()) {
double const vfr = i->active_video_frame_rate (_parent->film());
- i->video->set_fade_in (_fade_in->get(vfr).frames_round(vfr));
+ i->video->set_fade_in (dcpomatic::ContentTime(hmsf, vfr).frames_round(vfr));
}
}
void
VideoPanel::fade_out_changed ()
{
- for (auto i: _parent->selected_video ()) {
+ auto const hmsf = _fade_out->get();
+ for (auto i: _parent->selected_video()) {
double const vfr = i->active_video_frame_rate (_parent->film());
- i->video->set_fade_out (_fade_out->get(vfr).frames_round(vfr));
+ i->video->set_fade_out (dcpomatic::ContentTime(hmsf, vfr).frames_round(vfr));
}
}