MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / addUnknownChunks

Function addUnknownChunks

samples/shared/lodepng.cpp:5498–5508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5496
5497#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
5498static unsigned addUnknownChunks(ucvector* out, unsigned char* data, size_t datasize)
5499{
5500 unsigned char* inchunk = data;
5501 while((size_t)(inchunk - data) < datasize)
5502 {
5503 CERROR_TRY_RETURN(lodepng_chunk_append(&out->data, &out->size, inchunk));
5504 out->allocsize = out->size; /*fix the allocsize again*/
5505 inchunk = lodepng_chunk_next(inchunk);
5506 }
5507 return 0;
5508}
5509#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
5510
5511unsigned lodepng_encode(unsigned char** out, size_t* outsize,

Callers 1

lodepng_encodeFunction · 0.85

Calls 2

lodepng_chunk_appendFunction · 0.85
lodepng_chunk_nextFunction · 0.85

Tested by

no test coverage detected