#@+ Penalty weights from section 6.8.2.1
Applies mask penalty rule 1 and returns the penalty.
Helper function for applyMaskPenaltyRule1.
Applies mask penalty rule 2 and returns the penalty.
Applies mask penalty rule 3 and returns the penalty.
Applies mask penalty rule 4 and returns the penalty.
Returns the mask bit for "getMaskPattern" at "x" and "y".
Mask utility.