From 3ca312033f99eea39fecd83dde5e5797436d6648 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Tue, 25 Feb 2014 10:35:07 +0000 Subject: [PATCH] [trunk] Clarify raw input in openjpeg. LSB vs MSB are now documented. Fixes issue 62 --- src/bin/common/format_defs.h | 4 ++-- src/bin/jp2/opj_compress.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/common/format_defs.h b/src/bin/common/format_defs.h index e82986cc..386f21dc 100644 --- a/src/bin/common/format_defs.h +++ b/src/bin/common/format_defs.h @@ -41,9 +41,9 @@ #define BMP_DFMT 12 #define YUV_DFMT 13 #define TIF_DFMT 14 -#define RAW_DFMT 15 +#define RAW_DFMT 15 /* MSB / Big Endian */ #define TGA_DFMT 16 #define PNG_DFMT 17 -#define RAWL_DFMT 18 +#define RAWL_DFMT 18 /* LSB / Little Endian */ #endif /* _OPJ_FORMAT_DEFS_H_ */ diff --git a/src/bin/jp2/opj_compress.c b/src/bin/jp2/opj_compress.c index 73fdc064..7b1c9471 100644 --- a/src/bin/jp2/opj_compress.c +++ b/src/bin/jp2/opj_compress.c @@ -133,7 +133,7 @@ static void encode_help_display(void) { fprintf(stdout,"-OutFor \n"); fprintf(stdout," REQUIRED only if -ImgDir is used\n"); fprintf(stdout," Need to specify only format without filename \n"); - fprintf(stdout," Currently accepts PBM, PGM, PPM, PNM, PAM, PGX, PNG, BMP, TIF, RAW, RAWL and TGA formats\n"); + fprintf(stdout," Currently accepts PBM, PGM, PPM, PNM, PAM, PGX, PNG, BMP, TIF, RAW (MSB), RAWL (LSB) and TGA formats\n"); fprintf(stdout,"\n"); fprintf(stdout,"-i : source file (-i source.pnm also *pbm, *.pgm, *.ppm, *.pam, *.pgx, *png, *.bmp, *.tif, *.raw, *.tga) \n"); fprintf(stdout," When using this option -o must be used\n"); -- 2.40.0