MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi__get_chunk_header

Function stbi__get_chunk_header

lite/example/cpp_example/mge/cv/stb_image.h:4970–4975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4968} stbi__pngchunk;
4969
4970static stbi__pngchunk stbi__get_chunk_header(stbi__context* s) {
4971 stbi__pngchunk c;
4972 c.length = stbi__get32be(s);
4973 c.type = stbi__get32be(s);
4974 return c;
4975}
4976
4977static int stbi__check_png_header(stbi__context* s) {
4978 static const stbi_uc png_sig[8] = {137, 80, 78, 71, 13, 10, 26, 10};

Callers 1

stbi__parse_png_fileFunction · 0.85

Calls 1

stbi__get32beFunction · 0.85

Tested by

no test coverage detected