https://github.com/openmv/openmv/blob/6061b6d2bae9f7149ed34214209cbd03393bcacc/src/omv/img/dmtx.c#L6310