| 67 | } |
| 68 | |
| 69 | static uint8_t eccNextBit(uint32_t ecc, uint8_t data_bit) |
| 70 | { |
| 71 | // This is 0x81932080 which is 0x0104C981 with reversed bits |
| 72 | return b(ecc, 7) ^ b(ecc, 13) ^ b(ecc, 16) ^ b(ecc, 17) ^ b(ecc, 20) ^ |
| 73 | b(ecc, 23) ^ b(ecc, 24) ^ b(ecc, 31) ^ data_bit; |
| 74 | } |
| 75 | |
| 76 | uint32_t vectorGraphicEcc(const Bytes& bytes) |
| 77 | { |