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

Function stbi__pnm_getinteger

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

Source from the content-addressed store, hash-verified

8263}
8264
8265static int stbi__pnm_getinteger(stbi__context* s, char* c) {
8266 int value = 0;
8267
8268 while (!stbi__at_eof(s) && stbi__pnm_isdigit(*c)) {
8269 value = value * 10 + (*c - '0');
8270 *c = (char)stbi__get8(s);
8271 }
8272
8273 return value;
8274}
8275
8276static int stbi__pnm_info(stbi__context* s, int* x, int* y, int* comp) {
8277 int maxv, dummy;

Callers 1

stbi__pnm_infoFunction · 0.85

Calls 3

stbi__at_eofFunction · 0.85
stbi__pnm_isdigitFunction · 0.85
stbi__get8Function · 0.85

Tested by

no test coverage detected