| 5308 | } |
| 5309 | |
| 5310 | static 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 | |
| 5322 | static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp) |
| 5323 | { |
no test coverage detected