HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //usr/share/doc/openjpeg-devel-1.5.1/html/crc_8c.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.5"/>
<title>OpenJPEG: crc.c File Reference</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 style="padding-left: 0.5em;">
   <div id="projectname">OpenJPEG
   &#160;<span id="projectnumber">1.5.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><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 class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_99d2dc560f84dde124e930de108007a7.html">builddir</a></li><li class="navelem"><a class="el" href="dir_f6883469d6f26503444921bb15d930e9.html">build</a></li><li class="navelem"><a class="el" href="dir_37d5b7668ae03bfa373b2267d602ea0e.html">BUILD</a></li><li class="navelem"><a class="el" href="dir_9904e09c490f202282706830189faba0.html">openjpeg-1.5.1</a></li><li class="navelem"><a class="el" href="dir_10074df973a1c5851187da2011751b4d.html">libopenjpeg</a></li><li class="navelem"><a class="el" href="dir_62bcdca9cc05fca788a00c591ae9c50b.html">jpwl</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">crc.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Functions used to compute the 16- and 32-bit CRC of byte arrays.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="crc_8h_source.html">crc.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9fdce689f6b00ce83acbd20c79adae96"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8c.html#a9fdce689f6b00ce83acbd20c79adae96">updateCRC16</a> (unsigned short *crc, unsigned char data)</td></tr>
<tr class="memdesc:a9fdce689f6b00ce83acbd20c79adae96"><td class="mdescLeft">&#160;</td><td class="mdescRight">file: CRC16.HPP  <a href="#a9fdce689f6b00ce83acbd20c79adae96">More...</a><br/></td></tr>
<tr class="separator:a9fdce689f6b00ce83acbd20c79adae96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10d4e89d7ca9e8dcfe5a129798e8aadf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8c.html#a10d4e89d7ca9e8dcfe5a129798e8aadf">updateCRC32</a> (unsigned long *crc, unsigned char data)</td></tr>
<tr class="memdesc:a10d4e89d7ca9e8dcfe5a129798e8aadf"><td class="mdescLeft">&#160;</td><td class="mdescRight">file: CRC32.HPP  <a href="#a10d4e89d7ca9e8dcfe5a129798e8aadf">More...</a><br/></td></tr>
<tr class="separator:a10d4e89d7ca9e8dcfe5a129798e8aadf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a843f794c8d1bc5dfe252e3370c8e0641"><td class="memItemLeft" align="right" valign="top">const unsigned short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8c.html#a843f794c8d1bc5dfe252e3370c8e0641">CRC16_table</a> [256]</td></tr>
<tr class="memdesc:a843f794c8d1bc5dfe252e3370c8e0641"><td class="mdescLeft">&#160;</td><td class="mdescRight">file: CRC16.CPP  <a href="#a843f794c8d1bc5dfe252e3370c8e0641">More...</a><br/></td></tr>
<tr class="separator:a843f794c8d1bc5dfe252e3370c8e0641"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99b3cc1aedd0eff6de2fde6629f716cf"><td class="memItemLeft" align="right" valign="top">const unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8c.html#a99b3cc1aedd0eff6de2fde6629f716cf">CRC32_table</a> [256]</td></tr>
<tr class="memdesc:a99b3cc1aedd0eff6de2fde6629f716cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">file: CRC32.CPP  <a href="#a99b3cc1aedd0eff6de2fde6629f716cf">More...</a><br/></td></tr>
<tr class="separator:a99b3cc1aedd0eff6de2fde6629f716cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Functions used to compute the 16- and 32-bit CRC of byte arrays. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a9fdce689f6b00ce83acbd20c79adae96"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void updateCRC16 </td>
          <td>(</td>
          <td class="paramtype">unsigned short *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>char</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>file: CRC16.HPP </p>
<p>CRC - Cyclic Redundancy Check (16-bit)</p>
<p>A CRC-checksum is used to be sure, the data hasn't changed or is false. To create a CRC-checksum, initialise a check-variable (unsigned short), and set this to zero. Than call for every byte in the file (e.g.) the procedure updateCRC16 with this check-variable as the first parameter, and the byte as the second. At the end, the check-variable contains the CRC-checksum.</p>
<p>implemented by Michael Neumann, 14.06.1998 </p>

<p>References <a class="el" href="crc_8c.html#a843f794c8d1bc5dfe252e3370c8e0641">CRC16_table</a>.</p>

</div>
</div>
<a class="anchor" id="a10d4e89d7ca9e8dcfe5a129798e8aadf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void updateCRC32 </td>
          <td>(</td>
          <td class="paramtype">unsigned long *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>char</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>file: CRC32.HPP </p>
<p>CRC - Cyclic Redundancy Check (32-bit)</p>
<p>A CRC-checksum is used to be sure, the data hasn't changed or is false. To create a CRC-checksum, initialise a check-variable (unsigned short), and set this to zero. Than call for every byte in the file (e.g.) the procedure updateCRC32 with this check-variable as the first parameter, and the byte as the second. At the end, the check-variable contains the CRC-checksum.</p>
<p>implemented by Michael Neumann, 14.06.1998 </p>

<p>References <a class="el" href="crc_8c.html#a99b3cc1aedd0eff6de2fde6629f716cf">CRC32_table</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a843f794c8d1bc5dfe252e3370c8e0641"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const unsigned short CRC16_table[256]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>file: CRC16.CPP </p>
<p>CRC - Cyclic Redundancy Check (16-bit)</p>
<p>A CRC-checksum is used to be sure, the data hasn't changed or is false. To create a CRC-checksum, initialise a check-variable (unsigned short), and set this to zero. Than call for every byte in the file (e.g.) the procedure updateCRC16 with this check-variable as the first parameter, and the byte as the second. At the end, the check-variable contains the CRC-checksum.</p>
<p>implemented by Michael Neumann, 14.06.1998 </p>

<p>Referenced by <a class="el" href="crc_8h.html#ae079d65607d82f50db39b0ad07c984f6">updateCRC16()</a>.</p>

</div>
</div>
<a class="anchor" id="a99b3cc1aedd0eff6de2fde6629f716cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const unsigned long CRC32_table[256]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>file: CRC32.CPP </p>
<p>CRC - Cyclic Redundancy Check (32-bit)</p>
<p>A CRC-checksum is used to be sure, the data hasn't changed or is false. To create a CRC-checksum, initialise a check-variable (unsigned long), and set this to zero. Than call for every byte in the file (e.g.) the procedure updateCRC32 with this check-variable as the first parameter, and the byte as the second. At the end, the check-variable contains the CRC-checksum.</p>
<p>implemented by Michael Neumann, 14.06.1998 </p>

<p>Referenced by <a class="el" href="crc_8h.html#a53141295267ce8db2b6d1d4d6c97f212">updateCRC32()</a>.</p>

</div>
</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.5
</small></address>
</body>
</html>