OpenJPEG  2.1.2
OpenJPIP v2.1.2 Documentation

Introduction

This manual documents the low-level OpenJPIP C API.
OpenJPIP software is an implementation of JPEG 2000 Part9: Interactivity tools, APIs and protocols (JPIP).
( For more info about JPIP, check the website: http://www.jpeg.org/jpeg2000/j2kpart9.html)
This whole documents covers the following six programs.

License

This software is released under the BSD license, anybody can use or modify the library, even for commercial applications.
The only restriction is to retain the copyright in the sources or the binaries documentation.
Neither the author, nor the university accept any responsibility for any kind of error or data loss which may occur during usage.

Required libraries

We tested this software with a virtual server running on the same Linux machine as the clients.

Compiling Notes

When you are making opj_server, set anything (e.g. yes) to the parameter jpipserver to define itself in the Makefile, which enables to make it in server mode.
Otherwise do not define (or do not set to) the parameter jpipserver.
Be sure that any object files and library file libopenjpip.a are not reused to compile in the two different mode (server mode and non server mode).
In other words, do make clean before making new targets which are in different modes as previous make.

System Architecture

JPIP protocol is implemented between the JPIP server program (opj_server) and the JPIP client java program (opj_viewer).
Figure below represents the overview of our system architecture.
The JPIP server parses JPIP query and sends corresponding JPT/JPP-stream. The JPIP client viewer is an image viewer with GUI to publish JPIP requests and receive JPT/JPP-stream.
Particularly, our system has the image decoding module implemented on a server (opj_dec_server, Image decoding Server). Image decoding Server and JPIP client viewer communicate closely. This specific architecture enables sharing cache of image codestream data among all viewers connected to the same Image decoding Server not only locally but also remotely.

jpip_architect.png
OpenJPIP system architecture

JPIP server follows up the client cache during a session.
Concretely, the JPIP server models cache in each session, to which Channel IDs are associated. A Channel ID identifies a JPIP client viewer. And, new viewers can belong to a session by referring to one of its channel ID. The Image decoding Server maintains the association between channel IDs and targets, and provides a reference channel ID to a Viewer on demand.
Typical requests and replies among JPIP server, JPIP client, and Image decoding server is presented below.
The JPIP server parses HTTP query and sends corresponding JPT/JPP-stream back to the JPIP client (Viewer). JPT/JPP-stream is unreadable by JPIP client, and it is directly passed to Image decoding Server, and which provides the image in raw format (PGM or PPM) to the JPIP client. The Image decoding Server handles the decoding and caching of JPT/JPP-stream. JPIP client can read PGM and PPM images natively. Before connecting to the JPIP server, every JPIP client checks local cache data of the requesting image with the image decoding server. If its cache exists, the image decoding server provides ChannelID (CID), which identifies the image and its cache model on the JPIP server, and the whole system can continue the session using the CID.

jpip_protocol.png
Message Sequence Chart of OpenJPIP impementation
Author
Kaori Hagihara UCL/SST/ICTM/ELEN