+ switch (_content->video->frame_type()) {
+ case VIDEO_FRAME_TYPE_2D:
+ case VIDEO_FRAME_TYPE_3D_LEFT:
+ case VIDEO_FRAME_TYPE_3D_RIGHT:
+ from_frame = _decoded.back().frame + 1;
+ break;
+ case VIDEO_FRAME_TYPE_3D:
+ case VIDEO_FRAME_TYPE_3D_LEFT_RIGHT:
+ case VIDEO_FRAME_TYPE_3D_TOP_BOTTOM:
+ case VIDEO_FRAME_TYPE_3D_ALTERNATE:
+ /* Get the last frame that we have */
+ from_frame = _decoded.back().frame;
+ from_eye = _decoded.back().eyes;
+ /* And increment */
+ if (from_eye.get() == EYES_LEFT) {
+ from_eye = EYES_RIGHT;
+ } else {
+ from_eye = EYES_LEFT;
+ from_frame = from_frame.get() + 1;
+ }
+ }