Skip to content

Commit 5416aba

Browse files
committed
gpujpegtool: advertise BMP
1 parent 33450bf commit 5416aba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file
3-
* Copyright (c) 2011-2023, CESNET z.s.p.o
3+
* Copyright (c) 2011-2025, CESNET
44
* Copyright (c) 2011, Silicon Genome, LLC.
55
*
66
* All rights reserved.
@@ -41,6 +41,7 @@
4141
#include "../libgpujpeg/gpujpeg.h"
4242
#include "../libgpujpeg/gpujpeg_common.h"
4343

44+
#define RAW_EXTS "*.rgb, *.yuv, *.r, *.bmp, *.pnm, *.y4m..."
4445
#define USE_IF_NOT_NULL_ELSE(cond, alt_val) (cond) ? (cond) : (alt_val)
4546

4647
static void
@@ -563,7 +564,7 @@ main(int argc, char *argv[])
563564
enum gpujpeg_image_file_format input_format = gpujpeg_image_get_file_format(input);
564565
enum gpujpeg_image_file_format output_format = gpujpeg_image_get_file_format(output);
565566
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);
567568
if ( input_format & GPUJPEG_IMAGE_FILE_JPEG ) {
568569
return -1;
569570
}
@@ -709,7 +710,7 @@ main(int argc, char *argv[])
709710
fprintf(stderr, "[Warning] Decoder input file [%s] should be JPEG image (*.jpg)!\n", input);
710711
}
711712
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);
713714
if ( output_format & GPUJPEG_IMAGE_FILE_JPEG ) {
714715
ret = EXIT_FAILURE; continue;
715716
}

0 commit comments

Comments
 (0)