imageRotationToInt function
Convert enum InputImageRotation to integer value.
Implementation
int imageRotationToInt(InputImageRotation? inputImageRotation) {
switch (inputImageRotation) {
case InputImageRotation.ROTATION_0:
return 0;
case InputImageRotation.ROTATION_90:
return 90;
case InputImageRotation.ROTATION_180:
return 180;
case InputImageRotation.ROTATION_270:
return 270;
default:
return 0;
}
}