| 5646 | |
| 5647 | #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS |
| 5648 | static unsigned addUnknownChunks(ucvector* out, unsigned char* data, size_t datasize) |
| 5649 | { |
| 5650 | unsigned char* inchunk = data; |
| 5651 | while((size_t)(inchunk - data) < datasize) |
| 5652 | { |
| 5653 | CERROR_TRY_RETURN(lodepng_chunk_append(&out->data, &out->size, inchunk)); |
| 5654 | out->allocsize = out->size; /*fix the allocsize again*/ |
| 5655 | inchunk = lodepng_chunk_next(inchunk); |
| 5656 | } |
| 5657 | return 0; |
| 5658 | } |
| 5659 | #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ |
| 5660 | |
| 5661 | unsigned lodepng_encode(unsigned char** out, size_t* outsize, |
no test coverage detected