+ if (vft == VideoFrameType::THREE_D) {
+ auto j2k = dynamic_pointer_cast<const J2KImageProxy>(image);
+ if (j2k && j2k->eye()) {
+ if (j2k->eye() == dcp::Eye::LEFT) {
+ frame = _position->frames_round(afr) + 1;
+ eyes = Eyes::LEFT;
+ } else {
+ frame = _position->frames_round(afr);
+ eyes = Eyes::RIGHT;
+ }
+ } else {
+ /* This should not happen; see above */
+ frame = _position->frames_round(afr) + 1;
+ }
+ } else if (vft == VideoFrameType::THREE_D_ALTERNATE) {