diff --git a/ppm.c b/ppm.c index 85b8bf6bb9698bf3afba6397cfaa5059444d0bfd..dff7ad564645c5e6a620e42ee8e325842d930559 100644 --- a/ppm.c +++ b/ppm.c @@ -6,8 +6,6 @@ #include #include Image read_ppm_image(const char *filename) { - /* const char *filename = "textures/test.ppm"; */ - Image img = {0}; FILE *f = fopen(filename, "rb"); @@ -15,7 +13,6 @@ if (!f) { perror("fopen"); return (Image){}; } - int j = 0; int in_token = 0; @@ -94,12 +91,7 @@ } fclose(f); - printf("format: %s\n", img.format); - printf("width: %d\n", img.width); - printf("height: %d\n", img.height); - printf("color_space: %d\n", img.color_space); - printf("pixel_count: %zu\n", pixel_count); - printf("expected: %zu\n", pixel_capacity); + printf("Loading image: [%s] %s (%dx%d) %d (%zu/%zu)\n", filename, img.format, img.width, img.height, img.color_space, pixel_count, pixel_capacity); return img; }