diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-24 23:27:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-24 23:27:09 +0100 |
| commit | 595f564a52d69d0401f5622c7d81cacda679005c (patch) | |
| tree | 6e993fdab993194e9c9d2fc47960caf9c5437d97 /src/lib/video_content.cc | |
| parent | 4c6e64ed9792fa15acba4255f02e2132d4ed4ea5 (diff) | |
Fix video information with 3D.
Diffstat (limited to 'src/lib/video_content.cc')
| -rw-r--r-- | src/lib/video_content.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index d70ece340..f61518ec0 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -243,3 +243,17 @@ VideoContent::technical_summary () const { return String::compose ("video: length %1, size %2x%3, rate %4", video_length(), video_size().width, video_size().height, video_frame_rate()); } + +libdcp::Size +VideoContent::video_size_after_3d_split () const +{ + libdcp::Size const s = video_size (); + switch (video_frame_type ()) { + case VIDEO_FRAME_TYPE_2D: + return s; + case VIDEO_FRAME_TYPE_3D_LEFT_RIGHT: + return libdcp::Size (s.width / 2, s.height); + } + + assert (false); +} |
