MCPcopy Create free account
hub / github.com/DentonW/DevIL / skip_input_data

Function skip_input_data

DevIL/src-IL/src/il_jpeg.cpp:263–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262METHODDEF(void)
263skip_input_data (j_decompress_ptr cinfo, long num_bytes)
264{
265 iread_ptr src = (iread_ptr) cinfo->src;
266
267 if (num_bytes > 0) {
268 while (num_bytes > (long) src->pub.bytes_in_buffer) {
269 num_bytes -= (long) src->pub.bytes_in_buffer;
270 (void) fill_input_buffer(cinfo);
271 }
272 src->pub.next_input_byte += (size_t) num_bytes;
273 src->pub.bytes_in_buffer -= (size_t) num_bytes;
274 }
275}
276
277
278METHODDEF(void)

Callers

nothing calls this directly

Calls 1

fill_input_bufferFunction · 0.85

Tested by

no test coverage detected