src/ccmain/osdetect.cpp
int OrientationIdToValue(const int &id) {
  switch (id) {
    case 0:
      return 0;
    case 1:
      return 270;
    case 2:
      return 180;
    case 3:
      return 90;
    default:
      return -1;
  }
}
// Helper method to convert an orientation index to its value in degrees.
// The value represents the amount of clockwise rotation in degrees that must be
// applied for the text to be upright (readable).
Helper method to convert an orientation index to its value in degrees.
The value represents the amount of clockwise rotation in degrees that must be
applied for the text to be upright (readable).
Helper method to convert an orientation index to its value in degrees . The value represents the amount of clockwise rotation in degrees that must be applied for the text to be upright ( readable ) .
int OrientationIdToValue(const int &id) {
  switch (id) {
    case 0:
      return 0;
    case 1:
      return 270;
    case 2:
      return 180;
    case 3:
      return 90;
    default:
      return -1;
  }
}
int OrientationIdToValue ( const int & id ) { switch ( id ) { case 0 : return 0 ; case 1 : return 270 ; case 2 : return 180 ; case 3 : return 90 ; default : return -1 ; } }
Helper method to convert an orientation index to its value in degrees.
Helper method to convert an orientation index to its value in degrees .