public void setDecoderFactory(DecoderFactory decoderFactory) {
        Util.validateMainThread();

        this.decoderFactory = decoderFactory;
        if (this.decoderThread != null) {
            this.decoderThread.setDecoder(createDecoder());
        }
    }
Set the DecoderFactory to use. Use this to specify the formats to decode.

Call this from UI thread only.

@param decoderFactory the DecoderFactory creating Decoders.
@see DefaultDecoderFactory
zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeView.java