MaskUtil

Mask utility.

Members

Manifest constants

N1
enum N1;

#@+ Penalty weights from section 6.8.2.1

Static functions

applyMaskPenaltyRule1
int applyMaskPenaltyRule1(ByteMatrix matrix)

Applies mask penalty rule 1 and returns the penalty.

applyMaskPenaltyRule1Internal
int applyMaskPenaltyRule1Internal(ByteMatrix matrix, bool isHorizontal)

Helper function for applyMaskPenaltyRule1.

applyMaskPenaltyRule2
int applyMaskPenaltyRule2(ByteMatrix matrix)

Applies mask penalty rule 2 and returns the penalty.

applyMaskPenaltyRule3
int applyMaskPenaltyRule3(ByteMatrix matrix)

Applies mask penalty rule 3 and returns the penalty.

applyMaskPenaltyRule4
int applyMaskPenaltyRule4(ByteMatrix matrix)

Applies mask penalty rule 4 and returns the penalty.

getDataMaskBit
int getDataMaskBit(int maskPattern, int x, int y)

Returns the mask bit for "getMaskPattern" at "x" and "y".

Meta