in cpp/spectrum/image/Orientation.cpp [107:128]
Orientation orientationFlippedVertically(const Orientation orientation) {
switch (orientation) {
case Orientation::Up:
return Orientation::BottomMirrored;
case Orientation::Right:
return Orientation::LeftMirrored;
case Orientation::Bottom:
return Orientation::UpMirrored;
case Orientation::Left:
return Orientation::RightMirrored;
case Orientation::UpMirrored:
return Orientation::Bottom;
case Orientation::RightMirrored:
return Orientation::Left;
case Orientation::BottomMirrored:
return Orientation::Up;
case Orientation::LeftMirrored:
return Orientation::Right;
default:
SPECTRUM_UNREACHABLE_IMAGE_ORIENTATION(orientation);
}
}