MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / addMarker

Method addMarker

extern/toojpeg/toojpeg.cpp:173–178  ·  view source on GitHub ↗

start a new JFIF block

Source from the content-addressed store, hash-verified

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// ////////////////////////////////////////

Callers 1

writeJpegFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected