openjpeg/doxygen/openjpippage.html

106 lines
6.5 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>OpenJPEG: OpenJPIP v2.3.0 Documentation</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OpenJPEG
&#160;<span id="projectnumber">2.3.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">OpenJPIP v2.3.0 Documentation </div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="Introduction"></a>
Introduction</h1>
<p>This manual documents the low-level OpenJPIP C API.<br />
OpenJPIP software is an implementation of JPEG 2000 Part9: Interactivity tools, APIs and protocols (JPIP).<br />
( For more info about JPIP, check the website: <a href="http://www.jpeg.org/jpeg2000/j2kpart9.html">http://www.jpeg.org/jpeg2000/j2kpart9.html</a>)<br />
This whole documents covers the following six programs.<br />
</p><ul>
<li>opj_server.c JPIP server supporting HTTP connection and JPT/JPP-stream</li>
<li>opj_dec_server.c Server to decode JPT/JPP-stream and communicate locally with JPIP client, which is coded in java</li>
<li>opj_jpip_addxml.c To Embed metadata into JP2 file</li>
<li>opj_jpip_transcode.c To Convert JPT/JPP-stream to JP2 or J2K</li>
<li>opj_jpip_test.c To test index code format of a JP2 file</li>
</ul>
<h1><a class="anchor" id="License"></a>
License</h1>
<p>This software is released under the BSD license, anybody can use or modify the library, even for commercial applications.<br />
The only restriction is to retain the copyright in the sources or the binaries documentation.<br />
Neither the author, nor the university accept any responsibility for any kind of error or data loss which may occur during usage.</p>
<h1><a class="anchor" id="reqlibs"></a>
Required libraries</h1>
<ul>
<li>OpenJPEG library</li>
<li>FastCGI development kit (C libraries) at server (<a href="http://www.fastcgi.com">http://www.fastcgi.com</a>)</li>
<li>libcURL library</li>
</ul>
<p>We tested this software with a virtual server running on the same Linux machine as the clients.</p>
<h1><a class="anchor" id="compilenotes"></a>
Compiling Notes</h1>
<p>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.<br />
Otherwise do not define (or do not set to) the parameter jpipserver.<br />
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).<br />
In other words, do make clean before making new targets which are in different modes as previous make.<br />
</p>
<h1><a class="anchor" id="sysarchtect"></a>
System Architecture</h1>
<p>JPIP protocol is implemented between the JPIP server program (opj_server) and the JPIP client java program (opj_viewer).<br />
Figure below represents the overview of our system architecture.<br />
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.<br />
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.</p>
<div class="image">
<img src="jpip_architect.png" alt="jpip_architect.png"/>
<div class="caption">
OpenJPIP system architecture</div></div>
<p> JPIP server follows up the client cache during a session. <br />
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.<br />
Typical requests and replies among JPIP server, JPIP client, and Image decoding server is presented below.<br />
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.</p>
<div class="image">
<img src="jpip_protocol.png" alt="jpip_protocol.png"/>
<div class="caption">
Message Sequence Chart of OpenJPIP implementation</div></div>
<dl class="section author"><dt>Author</dt><dd>Kaori Hagihara UCL/SST/ICTM/ELEN </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>