/* Methods to query our input video */
- /** @return length in video frames */
- virtual int length_in_frames () const = 0;
/** @return video frames per second, or 0 if unknown */
virtual float frames_per_second () const = 0;
/** @return native size in pixels */
return false;
}
-int
-FFmpegDecoder::length_in_frames () const
-{
- return (_format_context->duration / AV_TIME_BASE) * frames_per_second ();
-}
-
float
FFmpegDecoder::frames_per_second () const
{
~FFmpegDecoder ();
/* Methods to query our input video */
- int length_in_frames () const;
- int decoding_frames () const;
float frames_per_second () const;
Size native_size () const;
int audio_channels () const;
public:
ImageMagickDecoder (boost::shared_ptr<const FilmState>, boost::shared_ptr<const Options>, Job *, Log *, bool, bool);
- int length_in_frames () const {
- return 1;
- }
-
float frames_per_second () const {
return static_frames_per_second ();
}
}
-int
-TIFFDecoder::length_in_frames () const
-{
- return _files.size ();
-}
-
float
TIFFDecoder::frames_per_second () const
{
TIFFDecoder (boost::shared_ptr<const FilmState>, boost::shared_ptr<const Options>, Job *, Log *, bool, bool);
/* Methods to query our input video */
- int length_in_frames () const;
float frames_per_second () const;
Size native_size () const;
int audio_channels () const;