MCPcopy
hub / github.com/zxing-js/library / decodeBitmap

Method decodeBitmap

src/browser/BrowserCodeReader.ts:1070–1077  ·  view source on GitHub ↗

* Call the encapsulated readers decode

(binaryBitmap: BinaryBitmap)

Source from the content-addressed store, hash-verified

1068 * Call the encapsulated readers decode
1069 */
1070 public decodeBitmap(binaryBitmap: BinaryBitmap): Result {
1071 try {
1072 return this.reader.decode(binaryBitmap, this._hints);
1073 } finally {
1074 // Readers need to be reset before being reused on another bitmap.
1075 this.reader.reset();
1076 }
1077 }
1078
1079 /**
1080 * 🖌 Prepares the canvas for capture and scan frames.

Callers 1

decodeMethod · 0.95

Calls 2

decodeMethod · 0.65
resetMethod · 0.65

Tested by

no test coverage detected