blob: 9fc5cf1a22f486f868d6da64a5d770086332244f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "video_content.h"
#include "video_decoder.h"
int const VideoContentProperty::VIDEO_LENGTH = 0;
int const VideoContentProperty::VIDEO_SIZE = 1;
int const VideoContentProperty::VIDEO_FRAME_RATE = 2;
using boost::shared_ptr;
VideoContent::VideoContent (boost::filesystem::path f)
: Content (f)
, _video_length (0)
{
}
void
VideoContent::take_from_video_decoder (shared_ptr<VideoDecoder> d)
{
{
boost::mutex::scoped_lock lm (_mutex);
_video_size = d->native_size ();
_video_frame_rate = d->frames_per_second ();
}
Changed (VideoContentProperty::VIDEO_SIZE);
Changed (VideoContentProperty::VIDEO_FRAME_RATE);
}
|