Skip to content

Commit b2c2b94

Browse files
committed
sizes: allow consumation of leading spaces
If the result is too big (like 300 MB in case of 10k*10k RGB) do not (needlesly) insist on 10 characters.
1 parent e8d1903 commit b2c2b94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gpujpeg_decoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ gpujpeg_decoder_decode(struct gpujpeg_decoder* decoder, uint8_t* image, size_t i
449449
if ( coder->param.verbose >= GPUJPEG_LL_STATUS ) {
450450
char buf[21];
451451
char* comp_size_delim = format_number_with_delim(output->data_size, buf, sizeof buf);
452-
printf("Decompressed Size: %10s bytes %dx%d %s %s\n",comp_size_delim, output->param_image.width,
452+
printf("Decompressed Size:%13s bytes %dx%d %s %s\n",comp_size_delim, output->param_image.width,
453453
output->param_image.height, gpujpeg_pixel_format_get_name(output->param_image.pixel_format),
454454
gpujpeg_color_space_get_name(output->param_image.color_space));
455455
}

src/gpujpeg_encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ gpujpeg_encoder_encode(struct gpujpeg_encoder* encoder, const struct gpujpeg_par
630630
coder->param.comp_count == 1 ? "" : (coder->param.interleaved ? " interleaved" : " non-interleaved");
631631
char buf[21];
632632
char* comp_size_delim = format_number_with_delim(*image_compressed_size, buf, sizeof buf);
633-
printf("Compressed Size: %10s bytes %dx%d %s %s%s\n", comp_size_delim, coder->param_image.width,
633+
printf("Compressed Size:%15s bytes %dx%d %s %s%s\n", comp_size_delim, coder->param_image.width,
634634
coder->param_image.height, gpujpeg_color_space_get_name(coder->param.color_space_internal),
635635
gpujpeg_subsampling_get_name(coder->param.comp_count, coder->param.sampling_factor), interleaved);
636636
}

0 commit comments

Comments
 (0)