1 #include "video_content.h"
2 #include "video_decoder.h"
4 int const VideoContentProperty::VIDEO_LENGTH = 0;
5 int const VideoContentProperty::VIDEO_SIZE = 1;
6 int const VideoContentProperty::VIDEO_FRAME_RATE = 2;
8 using boost::shared_ptr;
10 VideoContent::VideoContent (boost::filesystem::path f)
18 VideoContent::take_from_video_decoder (shared_ptr<VideoDecoder> d)
21 boost::mutex::scoped_lock lm (_mutex);
22 _video_size = d->native_size ();
23 _video_frame_rate = d->frames_per_second ();
26 Changed (VideoContentProperty::VIDEO_SIZE);
27 Changed (VideoContentProperty::VIDEO_FRAME_RATE);