using boost::shared_ptr;
using libdcp::Size;
-/* XXX: reads a directory and then ignores it */
-
ImageMagickDecoder::ImageMagickDecoder (
boost::shared_ptr<Film> f, DecodeOptions o)
: Decoder (f, o)
return true;
}
- /* XXX: timestamp */
- emit_video (_image, 0);
+ emit_video (_image, true, double (video_frame()) / frames_per_second());
return false;
}
_image = image->crop (_film->crop(), true);
- /* XXX: timestamp */
- emit_video (_image, 0);
+ emit_video (_image, false, double (video_frame()) / frames_per_second());
++_iter;
return false;
bool
ImageMagickDecoder::seek (double t)
{
- /* XXX: frames_per_second == 0 */
int const f = t * frames_per_second();
_iter = _files.begin ();
OutputChanged ();
}
}
+
+float
+ImageMagickDecoder::frames_per_second () const
+{
+ return _film->source_frame_rate ();
+}