Searched refs:chunkLength (Results 1 – 1 of 1) sorted by relevance
4352 …c unsigned readChunk_PLTE(LodePNGColorMode* color, const unsigned char* data, size_t chunkLength) { in readChunk_PLTE() argument4354 color->palettesize = chunkLength / 3u; in readChunk_PLTE()4372 …c unsigned readChunk_tRNS(LodePNGColorMode* color, const unsigned char* data, size_t chunkLength) { in readChunk_tRNS() argument4376 if(chunkLength > color->palettesize) return 39; in readChunk_tRNS()4378 for(i = 0; i != chunkLength; ++i) color->palette[4 * i + 3] = data[i]; in readChunk_tRNS()4381 if(chunkLength != 2) return 30; in readChunk_tRNS()4387 if(chunkLength != 6) return 41; in readChunk_tRNS()4402 static unsigned readChunk_bKGD(LodePNGInfo* info, const unsigned char* data, size_t chunkLength) { in readChunk_bKGD() argument4405 if(chunkLength != 1) return 43; in readChunk_bKGD()4414 if(chunkLength != 2) return 44; in readChunk_bKGD()[all …]