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

Function addChunk_IDAT

dependency/densecrf/examples/lodepng.cpp:4965–4978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4963}
4964
4965static unsigned addChunk_IDAT(ucvector* out, const unsigned char* data, size_t datasize,
4966 LodePNGCompressSettings* zlibsettings)
4967{
4968 ucvector zlibdata;
4969 unsigned error = 0;
4970
4971 /*compress with the Zlib compressor*/
4972 ucvector_init(&zlibdata);
4973 error = zlib_compress(&zlibdata.data, &zlibdata.size, data, datasize, zlibsettings);
4974 if(!error) error = addChunk(out, "IDAT", zlibdata.data, zlibdata.size);
4975 ucvector_cleanup(&zlibdata);
4976
4977 return error;
4978}
4979
4980static unsigned addChunk_IEND(ucvector* out)
4981{

Callers 1

lodepng_encodeFunction · 0.85

Calls 4

ucvector_initFunction · 0.85
zlib_compressFunction · 0.85
addChunkFunction · 0.85
ucvector_cleanupFunction · 0.85

Tested by

no test coverage detected