X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilm.cc;h=932048d8b2997418bcb3b8902777c4631d8fdb60;hb=f0e95aa5b7ada81a1c40f06facab2e94e45ab26c;hp=8e93667d5e54ad1ccb7474257e6536ce97a1bd27;hpb=a5b59faff75265d3256ad0dbd9f0c69e51e31ce4;p=dcpomatic.git diff --git a/src/lib/film.cc b/src/lib/film.cc index 8e93667d5..932048d8b 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -854,18 +854,12 @@ Film::has_subtitles () const return _playlist->has_subtitles (); } -OutputVideoFrame +VideoFrame Film::best_video_frame_rate () const { return _playlist->best_dcp_frame_rate (); } -bool -Film::content_paths_valid () const -{ - return _playlist->content_paths_valid (); -} - FrameRateChange Film::active_frame_rate_change (DCPTime t) const { @@ -890,31 +884,31 @@ Film::playlist_changed () signal_changed (CONTENT); } -OutputAudioFrame +AudioFrame Film::time_to_audio_frames (DCPTime t) const { return t * audio_frame_rate () / TIME_HZ; } -OutputVideoFrame +VideoFrame Film::time_to_video_frames (DCPTime t) const { return t * video_frame_rate () / TIME_HZ; } DCPTime -Film::audio_frames_to_time (OutputAudioFrame f) const +Film::audio_frames_to_time (AudioFrame f) const { return f * TIME_HZ / audio_frame_rate (); } DCPTime -Film::video_frames_to_time (OutputVideoFrame f) const +Film::video_frames_to_time (VideoFrame f) const { return f * TIME_HZ / video_frame_rate (); } -OutputAudioFrame +AudioFrame Film::audio_frame_rate () const { /* XXX */