1. applications/codec/convert.c:
---------------------------------
imagetobmp() uses prec but reports number of components.
tiftoimage() always reports a value of 0 in case of error.
Now:
-------------
./image_to_j2k -i zackthecat.tif -o zack.j2k
tiftoimage: Bad color format 6.
Only RGB(A) and GRAY(A) has been implemented
Aborting
Unable to load tiff file
-------------
2. applications/mj2/mj2.h
---------------------------------
name[4] instead of name[2].
3. applications/JavaOpenJPEG
---------------------------------
CMAKE configuration report:
-- Found Java: /usr/lib64/java/bin/java (found suitable version "1.6.0.25", required is "1.5")
-- Found JNI: /usr/lib64/java/jre/lib/amd64/libjawt.so
I had to change some code in JavaOpenJPEG.c/JavaOpenJPEGDecoder.c
to get this tiny compilation report:
Note: /sources/LIB/OPENJPEG/openjpeg-branch15-r1536/applications/jpip/util/opj_viewer/src/PnmImage.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
What does
public int decodeJ2KtoImage()
expect/return?
0, -1, 1 ?
I have chosen two values: OK or FAILS.
Now the result for JavaOpenJPEG:
java -jar openjpeg.jar
Failed to load Main-Class manifest attribute from
openjpeg.jar
java -jar opj_viewer.jar
Usage: java -jar opj_viewer.jar HTTP_server_URI imagefile.jp2 [hostname] [portnumber] [stateless/session] [JPT/JPP] [tcp/udp]
'applications/JavaOpenJPEG' should contain a README.txt or HOWTO.txt
to help the user.
winfried