MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / readChunk_tIME

Function readChunk_tIME

samples/shared/lodepng.cpp:4386–4399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4384}
4385
4386static unsigned readChunk_tIME(LodePNGInfo* info, const unsigned char* data, size_t chunkLength)
4387{
4388 if(chunkLength != 7) return 73; /*invalid tIME chunk size*/
4389
4390 info->time_defined = 1;
4391 info->time.year = 256u * data[0] + data[1];
4392 info->time.month = data[2];
4393 info->time.day = data[3];
4394 info->time.hour = data[4];
4395 info->time.minute = data[5];
4396 info->time.second = data[6];
4397
4398 return 0; /* OK */
4399}
4400
4401static unsigned readChunk_pHYs(LodePNGInfo* info, const unsigned char* data, size_t chunkLength)
4402{

Callers 1

decodeGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected