start a new JFIF block
| 171 | |
| 172 | // start a new JFIF block |
| 173 | void addMarker(uint8_t id, uint16_t length) |
| 174 | { |
| 175 | output(0xFF); output(id); // ID, always preceded by 0xFF |
| 176 | output(uint8_t(length >> 8)); // length of the block (big-endian, includes the 2 length bytes as well) |
| 177 | output(uint8_t(length & 0xFF)); |
| 178 | } |
| 179 | }; |
| 180 | |
| 181 | // //////////////////////////////////////// |