Detects a barcode or QRCode from a given RawBitMap, offering to optimise on what kinds of codes it should detect, as detecting all types of codes is slower than just some types.
The function will not return nil as result if no code was found but it will return a BarCodeResult class instance that can tell you if something was found or not.