summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-02-25 10:35:07 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-02-25 10:35:07 +0000
commit3ca312033f99eea39fecd83dde5e5797436d6648 (patch)
tree2374a7142dc8ac89f20045aa3c94c9a8198b879c /src
parent1378475573b2fd61c54f2fe295e40f183762f435 (diff)
[trunk] Clarify raw input in openjpeg. LSB vs MSB are now documented.
Fixes issue 62
Diffstat (limited to 'src')
-rw-r--r--src/bin/common/format_defs.h4
-rw-r--r--src/bin/jp2/opj_compress.c2
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 <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");