Versions in this module Expand all Collapse all v1 v1.0.0 Apr 27, 2022 Changes in this version + const GB2312_SUBSET + var ALPHANUMERIC_CHARS = []byte("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:") + var DataMaskValues = []DataMask + var Mode_ALPHANUMERIC = NewMode([]int{ ... }, 0x02) + var Mode_BYTE = NewMode([]int{ ... }, 0x04) + var Mode_ECI = NewMode([]int{ ... }, 0x07) + var Mode_FNC1_FIRST_POSITION = NewMode([]int{ ... }, 0x05) + var Mode_FNC1_SECOND_POSITION = NewMode([]int{ ... }, 0x09) + var Mode_HANZI = NewMode([]int{ ... }, 0x0D) + var Mode_KANJI = NewMode([]int{ ... }, 0x08) + var Mode_NUMERIC = NewMode([]int{ ... }, 0x01) + var Mode_STRUCTURED_APPEND = NewMode([]int{ ... }, 0x03) + var Mode_TERMINATOR = NewMode([]int{ ... }, 0x00) + var VERSIONS = []*Version + var VERSION_DECODE_INFO = []int + func DecodedBitStreamParser_Decode(bytes []byte, version *Version, ecLevel ErrorCorrectionLevel, ...) (*common.DecoderResult, error) + func DecodedBitStreamParser_decodeAlphanumericSegment(bits *common.BitSource, result []byte, count int, fc1InEffect bool) ([]byte, error) + func DecodedBitStreamParser_decodeByteSegment(bits *common.BitSource, result []byte, count int, ...) ([]byte, [][]byte, error) + func DecodedBitStreamParser_decodeHanziSegment(bits *common.BitSource, result []byte, count int) ([]byte, error) + func DecodedBitStreamParser_decodeKanjiSegment(bits *common.BitSource, result []byte, count int) ([]byte, error) + func DecodedBitStreamParser_decodeNumericSegment(bits *common.BitSource, result []byte, count int) ([]byte, error) + func DecodedBitStreamParser_parseECIValue(bits *common.BitSource) (int, error) + func FormatInformation_NumBitsDiffering(a, b uint) int + type BitMatrixParser struct + func NewBitMatrixParser(bitMatrix *gozxing.BitMatrix) (*BitMatrixParser, error) + func (this *BitMatrixParser) Mirror() + func (this *BitMatrixParser) ReadCodewords() ([]byte, error) + func (this *BitMatrixParser) ReadFormatInformation() (*FormatInformation, error) + func (this *BitMatrixParser) ReadVersion() (*Version, error) + func (this *BitMatrixParser) Remask() + func (this *BitMatrixParser) SetMirror(mirror bool) + type DataBlock struct + func DataBlock_GetDataBlocks(rawCodewords []byte, version *Version, ecLevel ErrorCorrectionLevel) ([]*DataBlock, error) + func NewDataBlock(numDataCodewords int, codewords []byte) *DataBlock + func (this *DataBlock) GetCodewords() []byte + func (this *DataBlock) GetNumDataCodewords() int + type DataMask struct + func (this DataMask) UnmaskBitMatrix(bits *gozxing.BitMatrix, dimension int) + type Decoder struct + func NewDecoder() *Decoder + func (this *Decoder) Decode(bits *gozxing.BitMatrix, hints map[gozxing.DecodeHintType]interface{}) (*common.DecoderResult, error) + func (this *Decoder) DecodeBoolMap(image [][]bool, hints map[gozxing.DecodeHintType]interface{}) (*common.DecoderResult, error) + func (this *Decoder) DecodeBoolMapWithoutHint(image [][]bool) (*common.DecoderResult, error) + func (this *Decoder) DecodeWithoutHint(bits *gozxing.BitMatrix) (*common.DecoderResult, error) + type ECB struct + func (e ECB) GetCount() int + func (e ECB) GetDataCodewords() int + type ECBlocks struct + func (b *ECBlocks) GetECBlocks() []ECB + func (b *ECBlocks) GetECCodewordsPerBlock() int + func (b *ECBlocks) GetNumBlocks() int + func (b *ECBlocks) GetTotalECCodewords() int + type ErrorCorrectionLevel int + const ErrorCorrectionLevel_H + const ErrorCorrectionLevel_L + const ErrorCorrectionLevel_M + const ErrorCorrectionLevel_Q + func ErrorCorrectionLevel_ForBits(bits uint) (ErrorCorrectionLevel, error) + func ErrorCorrectionLevel_ValueOf(s string) (ErrorCorrectionLevel, error) + func (e ErrorCorrectionLevel) GetBits() int + func (e ErrorCorrectionLevel) String() string + type FormatInformation struct + func FormatInformation_DecodeFormatInformation(maskedFormatInfo1, maskedFormatInfo2 uint) *FormatInformation + func (f *FormatInformation) GetDataMask() byte + func (f *FormatInformation) GetErrorCorrectionLevel() ErrorCorrectionLevel + type Mode struct + func ModeForBits(bits int) (*Mode, error) + func NewMode(characterCountBitsForVersions []int, bits int) *Mode + func (this *Mode) GetBits() int + func (this *Mode) GetCharacterCountBits(version *Version) int + func (this *Mode) String() string + type QRCodeDecoderMetaData struct + func NewQRCodeDecoderMetaData(mirrored bool) *QRCodeDecoderMetaData + func (this *QRCodeDecoderMetaData) ApplyMirroredCorrection(points []gozxing.ResultPoint) + func (this *QRCodeDecoderMetaData) IsMirrored() bool + type Version struct + func NewVersion(versionNumber int, alignmentPatternCenters []int, ecBlocks ...ECBlocks) *Version + func Version_GetProvisionalVersionForDimension(dimension int) (*Version, error) + func Version_GetVersionForNumber(versionNumber int) (*Version, error) + func Version_decodeVersionInformation(versionBits int) (*Version, error) + func (this *Version) String() string + func (v *Version) GetAlignmentPatternCenters() []int + func (v *Version) GetDimensionForVersion() int + func (v *Version) GetECBlocksForLevel(ecLevel ErrorCorrectionLevel) *ECBlocks + func (v *Version) GetTotalCodewords() int + func (v *Version) GetVersionNumber() int