scanFromNv21

open override fun scanFromNv21(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int): BarcodeScannerResult?

Scan barcodes from the nv21 frame.

For efficiency, reuse the same scanner object between scans. The barcode filters list is taken from the current configuration state.

Parameters

nv21

The YUV preview frame.

width

The width of the preview frame.

height

The height of the preview frame.

frameOrientation

The frame orientation degrees.


open override fun scanFromNv21(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int, finderRect: Rect?): BarcodeScannerResult?

Scan barcodes from the nv21 frame within the viewfinder rectangle.

For efficiency, reuse the same scanner object between scans. The barcode filters list is taken from the current configuration state.

Parameters

nv21

The YUV preview frame.

width

The width of the preview frame.

height

The height of the preview frame.

finderRect

decode area

frameOrientation

The frame orientation degrees.