Skip to content

Commit 685152a

Browse files
committed
gpujpegtool: image info: print also name and size
1 parent 4905d6f commit 685152a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ static int print_image_info_jpeg(const char *filename, int verbose) {
118118
}
119119
fseek(f, 0L, SEEK_END);
120120
long int len = ftell(f);
121+
printf("size: %lu B\n", len);
121122
fseek(f, 0L, SEEK_SET);
122123
uint8_t *jpeg = malloc(len);
123124
size_t ret = fread(jpeg, len, 1, f);
@@ -149,6 +150,7 @@ static int print_image_info(const char *filename, int verbose) {
149150
fprintf(stderr, "Missing filename!\n");
150151
return 1;
151152
}
153+
printf("name: %s\n", filename);
152154
enum gpujpeg_image_file_format format = gpujpeg_image_get_file_format(filename);
153155
if (format == GPUJPEG_IMAGE_FILE_JPEG ) {
154156
return print_image_info_jpeg(filename, verbose);

0 commit comments

Comments
 (0)