MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / readChunk_tIME

Function readChunk_tIME

dependency/densecrf/examples/lodepng.cpp:4487–4500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4485}
4486
4487static unsigned readChunk_tIME(LodePNGInfo* info, const unsigned char* data, size_t chunkLength)
4488{
4489 if(chunkLength != 7) return 73; /*invalid tIME chunk size*/
4490
4491 info->time_defined = 1;
4492 info->time.year = 256u * data[0] + data[1];
4493 info->time.month = data[2];
4494 info->time.day = data[3];
4495 info->time.hour = data[4];
4496 info->time.minute = data[5];
4497 info->time.second = data[6];
4498
4499 return 0; /* OK */
4500}
4501
4502static unsigned readChunk_pHYs(LodePNGInfo* info, const unsigned char* data, size_t chunkLength)
4503{

Callers 1

decodeGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected