[trunk] Clarify raw input in openjpeg. LSB vs MSB are now documented.
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 25 Feb 2014 10:35:07 +0000 (10:35 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 25 Feb 2014 10:35:07 +0000 (10:35 +0000)
Fixes issue 62

src/bin/common/format_defs.h
src/bin/jp2/opj_compress.c

index e82986cc8f8d4458677ddd11cca714bb5ce2c112..386f21dc8e7b71e54adbfe7670936f62281709e4 100644 (file)
@@ -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_ */
index 73fdc0640315013c5c8fce96afb3b54519621634..7b1c947181691d541dca4f372f266021683f7d99 100644 (file)
@@ -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 <BMP>  \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");