We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4905d6f commit 685152aCopy full SHA for 685152a
src/main.c
@@ -118,6 +118,7 @@ static int print_image_info_jpeg(const char *filename, int verbose) {
118
}
119
fseek(f, 0L, SEEK_END);
120
long int len = ftell(f);
121
+ printf("size: %lu B\n", len);
122
fseek(f, 0L, SEEK_SET);
123
uint8_t *jpeg = malloc(len);
124
size_t ret = fread(jpeg, len, 1, f);
@@ -149,6 +150,7 @@ static int print_image_info(const char *filename, int verbose) {
149
150
fprintf(stderr, "Missing filename!\n");
151
return 1;
152
153
+ printf("name: %s\n", filename);
154
enum gpujpeg_image_file_format format = gpujpeg_image_get_file_format(filename);
155
if (format == GPUJPEG_IMAGE_FILE_JPEG ) {
156
return print_image_info_jpeg(filename, verbose);
0 commit comments