class ExifHelper {

    private static int getRotation(int orientation) {
        switch (orientation) {
            case 1:
                return 0;
            case 2: // Flip X
                // unsupported
                return 0;
            case 3: // PI rotation
                return 180;
            case 4: // Flip Y
                // unsupported
                return 0;
            case 5: // - PI/2 and Flip X
                // unsupported
                return 0;
            case 6: // -PI/2 and -width
                return 90;
            case 7: // PI/2 and Flip
                // unsupported
                return 0;
            case 8: // PI / 2
                return 270;
        }

        return 0;
    }

}