MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / lodepng_set32bitInt

Function lodepng_set32bitInt

dependency/densecrf/examples/lodepng.cpp:327–333  ·  view source on GitHub ↗

buffer must have at least 4 allocated bytes available*/

Source from the content-addressed store, hash-verified

325#if defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)
326/*buffer must have at least 4 allocated bytes available*/
327static void lodepng_set32bitInt(unsigned char* buffer, unsigned value)
328{
329 buffer[0] = (unsigned char)((value >> 24) & 0xff);
330 buffer[1] = (unsigned char)((value >> 16) & 0xff);
331 buffer[2] = (unsigned char)((value >> 8) & 0xff);
332 buffer[3] = (unsigned char)((value ) & 0xff);
333}
334#endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/
335
336#ifdef LODEPNG_COMPILE_ENCODER

Callers 3

lodepng_add32bitIntFunction · 0.85
lodepng_chunk_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected