MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi__png_info_raw

Function stbi__png_info_raw

include/stb/stb_image.h:5310–5320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5308}
5309
5310static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)
5311{
5312 if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) {
5313 stbi__rewind( p->s );
5314 return 0;
5315 }
5316 if (x) *x = p->s->img_x;
5317 if (y) *y = p->s->img_y;
5318 if (comp) *comp = p->s->img_n;
5319 return 1;
5320}
5321
5322static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)
5323{

Callers 2

stbi__png_infoFunction · 0.85
stbi__png_is16Function · 0.85

Calls 2

stbi__parse_png_fileFunction · 0.85
stbi__rewindFunction · 0.85

Tested by

no test coverage detected