MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / readChunk_tIME

Function readChunk_tIME

src/lodepng.cpp:4533–4546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4531}
4532
4533static unsigned readChunk_tIME(LodePNGInfo* info, const unsigned char* data, size_t chunkLength)
4534{
4535 if(chunkLength != 7) return 73; /*invalid tIME chunk size*/
4536
4537 info->time_defined = 1;
4538 info->time.year = 256 * data[0] + data[+ 1];
4539 info->time.month = data[2];
4540 info->time.day = data[3];
4541 info->time.hour = data[4];
4542 info->time.minute = data[5];
4543 info->time.second = data[6];
4544
4545 return 0; /* OK */
4546}
4547
4548static unsigned readChunk_pHYs(LodePNGInfo* info, const unsigned char* data, size_t chunkLength)
4549{

Callers 1

decodeGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected