-using boost::shared_ptr;
-using boost::optional;
-
-VideoDecoder::VideoDecoder (shared_ptr<Film> f, shared_ptr<const DecodeOptions> o, Job* j)
- : Decoder (f, o, j)
- , _video_frame (0)
- , _last_source_frame (0)
-{
-
-}
-
-/** Called by subclasses to tell the world that some video data is ready.
- * We find a subtitle then emit it for listeners.
- * @param frame to emit.
- */
-void
-VideoDecoder::emit_video (shared_ptr<Image> image, SourceFrame f)
-{
- shared_ptr<Subtitle> sub;
- if (_timed_subtitle && _timed_subtitle->displayed_at (f / _film->frames_per_second())) {
- sub = _timed_subtitle->subtitle ();
- }
-
- signal_video (image, sub);
- _last_source_frame = f;
-}