private static float absRatio(float ratio) {
        if (ratio < 1.0f) {
            return 1.0f / ratio;
        } else {
            return ratio;
        }
    }
Scales the size so that it fits exactly. Aspect ratio is NOT preserved.
zxing-android-embedded/src/com/journeyapps/barcodescanner/camera/FitXYStrategy.java