image_test: tweak testing to open image in more modes

This commit is contained in:
Sean Barrett 2019-08-11 04:58:48 -07:00
parent bd8d9a88bc
commit 846d15c102
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ int main(int argc, char **argv)
unsigned char *data;
printf("%s\n", argv[i]);
res = stbi_info(argv[i], &w2, &h2, &n2);
data = stbi_load(argv[i], &w, &h, &n, 0); if (data) free(data); else printf("Failed &n\n");
data = stbi_load(argv[i], &w, &h, &n, 4); if (data) free(data); else printf("Failed &n\n");
data = stbi_load(argv[i], &w, &h, 0, 1); if (data) free(data); else printf("Failed 1\n");
data = stbi_load(argv[i], &w, &h, 0, 2); if (data) free(data); else printf("Failed 2\n");