From f20530dce21ac115628fffc0f58c52989bd5e4ba Mon Sep 17 00:00:00 2001 From: Kaori Hagihara Date: Mon, 10 Oct 2011 13:15:18 +0000 Subject: [PATCH] enable JPT-stream request from client viewer option --- applications/jpip/CHANGES | 1 + applications/jpip/README | 11 ++- .../jpip/libopenjpip/cachemodel_manager.c | 15 +++- .../jpip/libopenjpip/cachemodel_manager.h | 8 +- applications/jpip/libopenjpip/index_manager.c | 8 ++ applications/jpip/libopenjpip/index_manager.h | 10 +++ .../jpip/libopenjpip/j2kheader_manager.c | 15 ++-- applications/jpip/libopenjpip/jp2k_encoder.c | 20 +++-- .../jpip/libopenjpip/msgqueue_manager.c | 16 ++-- .../jpip/libopenjpip/msgqueue_manager.h | 2 - .../jpip/libopenjpip/target_manager.c | 5 +- .../jpip/libopenjpip/target_manager.h | 3 + .../opj_viewer/dist/opj_viewer-20110930.jar | Bin 15592 -> 0 bytes .../opj_client/opj_viewer/dist/opj_viewer.jar | 2 +- .../opj_viewer/src/ImageManager.java | 13 +-- .../opj_viewer/src/ImageViewer.java | 4 +- .../opj_viewer/src/ImageWindow.java | 21 ++--- .../opj_viewer/src/JPIPHttpClient.java | 76 ++++++++++++------ ...930.jar => opj_viewer_xerces-20111010.jar} | Bin 20047 -> 20390 bytes .../dist/opj_viewer_xerces.jar | 2 +- .../opj_viewer_xerces/src/ImageViewer.java | 21 +++-- .../opj_viewer_xerces/src/ImageWindow.java | 22 +++-- applications/jpip/opj_server/opj_server.c | 46 ++++++----- applications/jpip/tools/Makefile.nix | 1 - applications/jpip/tools/jpip_to_j2k.c | 4 +- 25 files changed, 207 insertions(+), 119 deletions(-) delete mode 100644 applications/jpip/opj_client/opj_viewer/dist/opj_viewer-20110930.jar rename applications/jpip/opj_client/opj_viewer_xerces/dist/{opj_viewer_xerces-20110930.jar => opj_viewer_xerces-20111010.jar} (54%) diff --git a/applications/jpip/CHANGES b/applications/jpip/CHANGES index 3f1db2ad..ad582949 100644 --- a/applications/jpip/CHANGES +++ b/applications/jpip/CHANGES @@ -7,6 +7,7 @@ What's New for OpenJPIP October 10, 2011 - [antonin] removed obsolete indexer utility ++ [kaori] enable JPT-stream request from client viewer option September 30, 2011 + [kaori] enabled JPP-stream diff --git a/applications/jpip/README b/applications/jpip/README index 72796460..0bd22fda 100644 --- a/applications/jpip/README +++ b/applications/jpip/README @@ -103,11 +103,12 @@ Client: % ../opj_dec_server 2. Open image viewers (as many as needed) - % java -jar opj_viewer.jar http://hostname/myFCGI JP2_filename.jp2 [stateless] + % java -jar opj_viewer.jar http://hostname/myFCGI JP2_filename.jp2 [stateless/session] [jptstream/jppstream] ( The arguments - http://hostname/myFCGI is the HTTP server URI (myFCGI refers to opj_server by the server setting) - JP2_filename.jp2 is the name of a JP2 file available on the server. - - stateless if stateless request is desired, otherwise session request is implemented + - request type stateless for no caching, session (default) for caching + - return media type, JPT-stream tile based stream, or JPP-stream (default) precinct based stream Image viewer GUI instructions: Scale up request: Enlarge the window ROI request: Select a region by mouse click and drag, then click inside the red frame of the selected region @@ -125,7 +126,11 @@ Client: ---------- An example to encode a TIF image "copenhague1.tif" at resolution 4780x4050, 8bit/pixel, grayscale. - % ./image_to_j2k -i copenhague1.tif -o copenhague1.jp2 -p RPCL -c [64,64] -t 640,480 -jpip + % ./image_to_j2k -i copenhague1.tif -o copenhague1.jp2 -p RPCL -c [64,64] -t 640,480 -jpip -v R + + options + -jpip : embed index table box into the output JP2 file (obligation for JPIP) + -v R : partition a tile into tile parts of different resolution levels (obligation for JPT-stream)