public Result decode(LuminanceSource source) {
        return decode(toBitmap(source));
    }
Given an image source, attempt to decode the barcode.

Must not raise an exception.

@param source the image source
@return a Result or null
zxing-android-embedded/src/com/journeyapps/barcodescanner/Decoder.java