Houjie
2025-07-24 52a3ff1bce1417b39f6872d8e8cb378e9c2ccc6f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import AztecDetectorResult from '../AztecDetectorResult';
import DecoderResult from '../../common/DecoderResult';
/**
 * <p>The main class which implements Aztec Code decoding -- as opposed to locating and extracting
 * the Aztec Code from an image.</p>
 *
 * @author David Olivier
 */
export default class Decoder {
    private static UPPER_TABLE;
    private static LOWER_TABLE;
    private static MIXED_TABLE;
    private static PUNCT_TABLE;
    private static DIGIT_TABLE;
    private ddata;
    decode(detectorResult: AztecDetectorResult): DecoderResult;
    static highLevelDecode(correctedBits: boolean[]): string;
    /**
     * Gets the string encoded in the aztec code bits
     *
     * @return the decoded string
     */
    private static getEncodedData;
    /**
     * gets the table corresponding to the char passed
     */
    private static getTable;
    /**
     * Gets the character (or string) corresponding to the passed code in the given table
     *
     * @param table the table used
     * @param code the code of the character
     */
    private static getCharacter;
    /**
     * <p>Performs RS error correction on an array of bits.</p>
     *
     * @return the corrected array
     * @throws FormatException if the input contains too many errors
     */
    private correctBits;
    /**
     * Gets the array of bits from an Aztec Code matrix
     *
     * @return the array of bits
     */
    private extractBits;
    /**
     * Reads a code of given length and at given index in an array of bits
     */
    private static readCode;
    /**
     * Reads a code of length 8 in an array of bits, padding with zeros
     */
    private static readByte;
    /**
     * Packs a bit array into bytes, most significant bit first
     */
    static convertBoolArrayToByteArray(boolArr: boolean[]): Uint8Array;
    private totalBitsInLayer;
}