|
1 | 1 | /** |
2 | 2 | * @file |
3 | | - * Copyright (c) 2011-2023, CESNET z.s.p.o |
| 3 | + * Copyright (c) 2011-2025, CESNET |
4 | 4 | * Copyright (c) 2011, Silicon Genome, LLC. |
5 | 5 | * |
6 | 6 | * All rights reserved. |
|
41 | 41 | #include "../libgpujpeg/gpujpeg.h" |
42 | 42 | #include "../libgpujpeg/gpujpeg_common.h" |
43 | 43 |
|
| 44 | +#define RAW_EXTS "*.rgb, *.yuv, *.r, *.bmp, *.pnm, *.y4m..." |
44 | 45 | #define USE_IF_NOT_NULL_ELSE(cond, alt_val) (cond) ? (cond) : (alt_val) |
45 | 46 |
|
46 | 47 | static void |
@@ -563,7 +564,7 @@ main(int argc, char *argv[]) |
563 | 564 | enum gpujpeg_image_file_format input_format = gpujpeg_image_get_file_format(input); |
564 | 565 | enum gpujpeg_image_file_format output_format = gpujpeg_image_get_file_format(output); |
565 | 566 | if ( !GPUJPEG_IMAGE_FORMAT_IS_RAW(input_format) ) { |
566 | | - fprintf(stderr, "[Warning] Encoder input file [%s] should be raw image (*.rgb, *.yuv, *.r, *.pnm)!\n", input); |
| 567 | + fprintf(stderr, "[Warning] Encoder input file [%s] should be raw image (" RAW_EXTS ")!\n", input); |
567 | 568 | if ( input_format & GPUJPEG_IMAGE_FILE_JPEG ) { |
568 | 569 | return -1; |
569 | 570 | } |
@@ -709,7 +710,7 @@ main(int argc, char *argv[]) |
709 | 710 | fprintf(stderr, "[Warning] Decoder input file [%s] should be JPEG image (*.jpg)!\n", input); |
710 | 711 | } |
711 | 712 | if ( !GPUJPEG_IMAGE_FORMAT_IS_RAW(output_format) ) { |
712 | | - fprintf(stderr, "[Warning] Decoder output file [%s] should be raw image (*.rgb, *.yuv, *.r, *.pnm)!\n", output); |
| 713 | + fprintf(stderr, "[Warning] Decoder output file [%s] should be raw image (" RAW_EXTS ")!\n", output); |
713 | 714 | if ( output_format & GPUJPEG_IMAGE_FILE_JPEG ) { |
714 | 715 | ret = EXIT_FAILURE; continue; |
715 | 716 | } |
|
0 commit comments