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

Function stbi__info_main

include/stb/stb_image.h:7632–7672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7630#endif
7631
7632static 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
7674static int stbi__is_16_main(stbi__context *s)
7675{

Callers 3

stbi_info_from_fileFunction · 0.85
stbi_info_from_memoryFunction · 0.85
stbi_info_from_callbacksFunction · 0.85

Calls 10

stbi__jpeg_infoFunction · 0.85
stbi__png_infoFunction · 0.85
stbi__gif_infoFunction · 0.85
stbi__bmp_infoFunction · 0.85
stbi__psd_infoFunction · 0.85
stbi__pic_infoFunction · 0.85
stbi__pnm_infoFunction · 0.85
stbi__hdr_infoFunction · 0.85
stbi__tga_infoFunction · 0.85
stbi__errFunction · 0.85

Tested by

no test coverage detected