| 16 | static bool lastBit; |
| 17 | |
| 18 | static int encode_data_gcr(uint8_t data) |
| 19 | { |
| 20 | switch (data) |
| 21 | { |
| 22 | #define GCR_ENTRY(gcr, data) \ |
| 23 | case data: \ |
| 24 | return gcr; |
| 25 | #include "data_gcr.h" |
| 26 | #undef GCR_ENTRY |
| 27 | } |
| 28 | return -1; |
| 29 | } |
| 30 | |
| 31 | static void write_bits( |
| 32 | std::vector<bool>& bits, unsigned& cursor, const std::vector<bool>& src) |