| 5781 | |
| 5782 | #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS |
| 5783 | static unsigned addUnknownChunks(ucvector* out, unsigned char* data, size_t datasize) { |
| 5784 | unsigned char* inchunk = data; |
| 5785 | while((size_t)(inchunk - data) < datasize) { |
| 5786 | CERROR_TRY_RETURN(lodepng_chunk_append(&out->data, &out->size, inchunk)); |
| 5787 | out->allocsize = out->size; /*fix the allocsize again*/ |
| 5788 | inchunk = lodepng_chunk_next(inchunk, data + datasize); |
| 5789 | } |
| 5790 | return 0; |
| 5791 | } |
| 5792 | |
| 5793 | static unsigned isGrayICCProfile(const unsigned char* profile, unsigned size) { |
| 5794 | /* |
no test coverage detected