| 7630 | #endif |
| 7631 | |
| 7632 | static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp) |
| 7633 | { |
| 7634 | #ifndef STBI_NO_JPEG |
| 7635 | if (stbi__jpeg_info(s, x, y, comp)) return 1; |
| 7636 | #endif |
| 7637 | |
| 7638 | #ifndef STBI_NO_PNG |
| 7639 | if (stbi__png_info(s, x, y, comp)) return 1; |
| 7640 | #endif |
| 7641 | |
| 7642 | #ifndef STBI_NO_GIF |
| 7643 | if (stbi__gif_info(s, x, y, comp)) return 1; |
| 7644 | #endif |
| 7645 | |
| 7646 | #ifndef STBI_NO_BMP |
| 7647 | if (stbi__bmp_info(s, x, y, comp)) return 1; |
| 7648 | #endif |
| 7649 | |
| 7650 | #ifndef STBI_NO_PSD |
| 7651 | if (stbi__psd_info(s, x, y, comp)) return 1; |
| 7652 | #endif |
| 7653 | |
| 7654 | #ifndef STBI_NO_PIC |
| 7655 | if (stbi__pic_info(s, x, y, comp)) return 1; |
| 7656 | #endif |
| 7657 | |
| 7658 | #ifndef STBI_NO_PNM |
| 7659 | if (stbi__pnm_info(s, x, y, comp)) return 1; |
| 7660 | #endif |
| 7661 | |
| 7662 | #ifndef STBI_NO_HDR |
| 7663 | if (stbi__hdr_info(s, x, y, comp)) return 1; |
| 7664 | #endif |
| 7665 | |
| 7666 | // test tga last because it's a crappy test! |
| 7667 | #ifndef STBI_NO_TGA |
| 7668 | if (stbi__tga_info(s, x, y, comp)) |
| 7669 | return 1; |
| 7670 | #endif |
| 7671 | return stbi__err("unknown image type", "Image not of any known type, or corrupt"); |
| 7672 | } |
| 7673 | |
| 7674 | static int stbi__is_16_main(stbi__context *s) |
| 7675 | { |
no test coverage detected