From 78012b8cf9b4c6e35b425c97b6432551ce635c3a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 13 Jun 2016 16:08:22 +0100 Subject: [PATCH] Add 3D video frame type for, e.g. 3D DCP inputs (part of #806). --- ChangeLog | 2 ++ src/lib/types.cc | 4 ++++ src/lib/types.h | 2 ++ src/lib/video_content.cc | 1 + src/wx/video_panel.cc | 1 + 5 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 44b857dfc..f6f3bc83a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-06-13 c.hetherington + * Add 3D video frame type for 3D DCP inputs (#806). + * Add button to move things to the start of reels (#798). 2016-06-08 Carl Hetherington diff --git a/src/lib/types.cc b/src/lib/types.cc index ce5081464..f31e7a3ec 100644 --- a/src/lib/types.cc +++ b/src/lib/types.cc @@ -95,6 +95,8 @@ video_frame_type_to_string (VideoFrameType t) switch (t) { case VIDEO_FRAME_TYPE_2D: return "2d"; + case VIDEO_FRAME_TYPE_3D: + return "3d"; case VIDEO_FRAME_TYPE_3D_LEFT_RIGHT: return "3d-left-right"; case VIDEO_FRAME_TYPE_3D_TOP_BOTTOM: @@ -117,6 +119,8 @@ string_to_video_frame_type (string s) { if (s == "2d") { return VIDEO_FRAME_TYPE_2D; + } else if (s == "3d") { + return VIDEO_FRAME_TYPE_3D; } else if (s == "3d-left-right") { return VIDEO_FRAME_TYPE_3D_LEFT_RIGHT; } else if (s == "3d-top-bottom") { diff --git a/src/lib/types.h b/src/lib/types.h index 8513fde51..041db1786 100644 --- a/src/lib/types.h +++ b/src/lib/types.h @@ -78,6 +78,8 @@ typedef int64_t Frame; enum VideoFrameType { VIDEO_FRAME_TYPE_2D, + /** `True' 3D content, e.g. 3D DCPs */ + VIDEO_FRAME_TYPE_3D, VIDEO_FRAME_TYPE_3D_LEFT_RIGHT, VIDEO_FRAME_TYPE_3D_TOP_BOTTOM, VIDEO_FRAME_TYPE_3D_ALTERNATE, diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index 66c63961e..a59e9669d 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -303,6 +303,7 @@ VideoContent::size_after_3d_split () const dcp::Size const s = size (); switch (frame_type ()) { case VIDEO_FRAME_TYPE_2D: + case VIDEO_FRAME_TYPE_3D: case VIDEO_FRAME_TYPE_3D_ALTERNATE: case VIDEO_FRAME_TYPE_3D_LEFT: case VIDEO_FRAME_TYPE_3D_RIGHT: diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc index 8a8dbd181..18d589483 100644 --- a/src/wx/video_panel.cc +++ b/src/wx/video_panel.cc @@ -232,6 +232,7 @@ VideoPanel::VideoPanel (ContentPanel* p) } _frame_type->wrapped()->Append (_("2D")); + _frame_type->wrapped()->Append (_("3D")); _frame_type->wrapped()->Append (_("3D left/right")); _frame_type->wrapped()->Append (_("3D top/bottom")); _frame_type->wrapped()->Append (_("3D alternate")); -- 2.30.2