• Adam Langley's avatar
    qr: add support for selecting the mask. · 029e171b
    Adam Langley authored
    The QR standard says that the mask should be auto-selected, not fixed to
    three, and specifies a fitness function for choosing the best mask for
    each QR code.
    
    This change adds support for that and lets the caller specify a mask if
    it really wants … say if it wanted to cycle through a series of QR codes
    for the same data with a dancing dinosaur on top.
    
    Change-Id: Ief4dedce236aa2ae13cc94b2248a17a0488f88ec
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2365222
    Commit-Queue: Adam Langley <agl@chromium.org>
    Auto-Submit: Adam Langley <agl@chromium.org>
    Reviewed-by: default avatarMartin Kreichgauer <martinkr@google.com>
    Cr-Commit-Position: refs/heads/master@{#800326}
    029e171b
qr_print.cc 2.57 KB