| 6048 | |
| 6049 | #ifdef LODEPNG_COMPILE_ENCODER |
| 6050 | unsigned compress(std::vector<unsigned char>& out, const unsigned char* in, size_t insize, |
| 6051 | const LodePNGCompressSettings& settings) |
| 6052 | { |
| 6053 | unsigned char* buffer = 0; |
| 6054 | size_t buffersize = 0; |
| 6055 | unsigned error = zlib_compress(&buffer, &buffersize, in, insize, &settings); |
| 6056 | if(buffer) |
| 6057 | { |
| 6058 | out.insert(out.end(), &buffer[0], &buffer[buffersize]); |
| 6059 | lodepng_free(buffer); |
| 6060 | } |
| 6061 | return error; |
| 6062 | } |
| 6063 | |
| 6064 | unsigned compress(std::vector<unsigned char>& out, const std::vector<unsigned char>& in, |
| 6065 | const LodePNGCompressSettings& settings) |
nothing calls this directly
no test coverage detected