}
optional<float>
-VideoContent::fade (VideoFrame f) const
+VideoContent::fade (Frame f) const
{
DCPOMATIC_ASSERT (f >= 0);
return float (f) / _fade_in.frames (video_frame_rate ());
}
- VideoFrame fade_out_start = ContentTime (video_length() - fade_out()).frames (video_frame_rate ());
+ Frame fade_out_start = ContentTime (video_length() - fade_out()).frames (video_frame_rate ());
if (f >= fade_out_start) {
return 1 - float (f - fade_out_start) / fade_out().frames (video_frame_rate ());
}