| 5496 | |
| 5497 | #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS |
| 5498 | static 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 | |
| 5511 | unsigned lodepng_encode(unsigned char** out, size_t* outsize, |
no test coverage detected