+2013-12-23 Carl Hetherington <cth@carlh.net>
+
+ * Add top/bottom option for 3D frames.
+
2013-12-20 Carl Hetherington <cth@carlh.net>
* Add configuration option for default audio delay (#276).
enum VideoFrameType
{
VIDEO_FRAME_TYPE_2D,
- VIDEO_FRAME_TYPE_3D_LEFT_RIGHT
+ VIDEO_FRAME_TYPE_3D_LEFT_RIGHT,
+ VIDEO_FRAME_TYPE_3D_TOP_BOTTOM
};
enum Eyes
return s;
case VIDEO_FRAME_TYPE_3D_LEFT_RIGHT:
return libdcp::Size (s.width / 2, s.height);
+ case VIDEO_FRAME_TYPE_3D_TOP_BOTTOM:
+ return libdcp::Size (s.width, s.height / 2);
}
assert (false);
Video (image->crop (Crop (half, 0, 0, 0), true), EYES_RIGHT, same, frame);
break;
}
+ case VIDEO_FRAME_TYPE_3D_TOP_BOTTOM:
+ {
+ int const half = image->size().height / 2;
+ Video (image->crop (Crop (0, 0, 0, half), true), EYES_LEFT, same, frame);
+ Video (image->crop (Crop (0, 0, half, 0), true), EYES_RIGHT, same, frame);
+ break;
+ }
}
_video_position = frame + 1;
_frame_type->wrapped()->Append (_("2D"));
_frame_type->wrapped()->Append (_("3D left/right"));
+ _frame_type->wrapped()->Append (_("3D top/bottom"));
_filters_button->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&VideoPanel::edit_filters_clicked, this));
_colour_conversion_button->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&VideoPanel::edit_colour_conversion_clicked, this));