| 5845 | } |
| 5846 | |
| 5847 | static int stbi__png_info_raw(stbi__png* p, int* x, int* y, int* comp) { |
| 5848 | if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) { |
| 5849 | stbi__rewind(p->s); |
| 5850 | return 0; |
| 5851 | } |
| 5852 | if (x) |
| 5853 | *x = p->s->img_x; |
| 5854 | if (y) |
| 5855 | *y = p->s->img_y; |
| 5856 | if (comp) |
| 5857 | *comp = p->s->img_n; |
| 5858 | return 1; |
| 5859 | } |
| 5860 | |
| 5861 | static int stbi__png_info(stbi__context* s, int* x, int* y, int* comp) { |
| 5862 | stbi__png p; |
no test coverage detected