[][src]Module qrcode53bytes::mask

Masking flips data modules with certain patterns.

Structs

DLP1
DLP2
Mask

A mask, must be inside [0, 7] inclusive.

Functions

apply_mask

Apply a mask of a specific type to a matrix.

apply_mask_fun
count_dl_col
count_dl_patterns
count_dl_row
diff_5
eval_5_col
eval_5_row
evaluate

Evaluate the mask score of a matrix.

evaluate_2x2
evaluate_5_in_line
evaluate_bw
evaluate_dl_pattern
mask

Evaluates masks. Returns the mask with the lowest score and a matrix with the mask applied.