<ahref="bio_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*</span></div>
<divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> * The copyright in this software is being made available under the 2-clauses</span></div>
<divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> * BSD License, included below. This software may be subject to other third</span></div>
<divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> * party and contributor rights, including patent rights, and no such rights</span></div>
<divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> * are granted under this license.</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00033"></a><spanclass="lineno"> 33</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="ttc"id="astructopj__bio_html_a82d1b48ca5f22eeb8ab2139982b576ba"><divclass="ttname"><ahref="structopj__bio.html#a82d1b48ca5f22eeb8ab2139982b576ba">opj_bio::end</a></div><divclass="ttdeci">OPJ_BYTE * end</div><divclass="ttdoc">pointer to the end of the buffer</div><divclass="ttdef"><b>Definition:</b> bio.h:60</div></div>
<divclass="ttc"id="abio_8c_html_ab895be8f05401452c080e42427408c5c"><divclass="ttname"><ahref="bio_8c.html#ab895be8f05401452c080e42427408c5c">opj_bio_numbytes</a></div><divclass="ttdeci">ptrdiff_t opj_bio_numbytes(opj_bio_t *bio)</div><divclass="ttdoc">Number of bytes written.</div><divclass="ttdef"><b>Definition:</b> bio.c:142</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a3fe08bb7876e393dd04332d049a4d53e"><divclass="ttname"><ahref="opj__malloc_8c.html#a3fe08bb7876e393dd04332d049a4d53e">opj_calloc</a></div><divclass="ttdeci">void * opj_calloc(size_t num, size_t size)</div><divclass="ttdoc">Allocate a memory block with elements initialized to 0.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:198</div></div>
<divclass="ttc"id="abench__dwt_8c_html_af53ced13a225d45380052173563421bf"><divclass="ttname"><ahref="bench__dwt_8c.html#af53ced13a225d45380052173563421bf">opj_clock</a></div><divclass="ttdeci">OPJ_FLOAT64 opj_clock(void)</div><divclass="ttdoc">Difference in successive opj_clock() calls tells you the elapsed time.</div><divclass="ttdef"><b>Definition:</b> bench_dwt.c:116</div></div>
<divclass="ttc"id="astructopj__image__comp_html_af9d6fd62a2b8bdd9fd162ce403eb0f10"><divclass="ttname"><ahref="structopj__image__comp.html#af9d6fd62a2b8bdd9fd162ce403eb0f10">opj_image_comp::dy</a></div><divclass="ttdeci">OPJ_UINT32 dy</div><divclass="ttdoc">YRsiz: vertical separation of a sample of ith component with respect to the reference grid.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:681</div></div>
<divclass="ttc"id="abio_8h_html_a71dd985d85ece15f4b6c2ea92fae5239"><divclass="ttname"><ahref="bio_8h.html#a71dd985d85ece15f4b6c2ea92fae5239">opj_bio_destroy</a></div><divclass="ttdeci">void opj_bio_destroy(opj_bio_t *bio)</div><divclass="ttdoc">Destroy a previously created BIO handle.</div><divclass="ttdef"><b>Definition:</b> bio.c:135</div></div>
<divclass="ttc"id="astructopj__image_html_ac63093741ed0c70b9c0a8ee3070cbce6"><divclass="ttname"><ahref="structopj__image.html#ac63093741ed0c70b9c0a8ee3070cbce6">opj_image::numcomps</a></div><divclass="ttdeci">OPJ_UINT32 numcomps</div><divclass="ttdoc">number of components in the image</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:719</div></div>
<divclass="ttc"id="abio_8c_html_a00f1d2645b33a7281e2b2dbc20079957"><divclass="ttname"><ahref="bio_8c.html#a00f1d2645b33a7281e2b2dbc20079957">opj_bio_create</a></div><divclass="ttdeci">opj_bio_t * opj_bio_create(void)</div><divclass="ttdoc">Create a new BIO handle.</div><divclass="ttdef"><b>Definition:</b> bio.c:129</div></div>
<divclass="ttc"id="abio_8c_html_a71dd985d85ece15f4b6c2ea92fae5239"><divclass="ttname"><ahref="bio_8c.html#a71dd985d85ece15f4b6c2ea92fae5239">opj_bio_destroy</a></div><divclass="ttdeci">void opj_bio_destroy(opj_bio_t *bio)</div><divclass="ttdoc">Destroy a previously created BIO handle.</div><divclass="ttdef"><b>Definition:</b> bio.c:135</div></div>
<divclass="ttc"id="astructopj__image__comp_html"><divclass="ttname"><ahref="structopj__image__comp.html">opj_image_comp</a></div><divclass="ttdoc">Defines a single image component.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:677</div></div>
<divclass="ttc"id="astructopj__bio_html_a5b7b5826e12247721d21b8b118beaf38"><divclass="ttname"><ahref="structopj__bio.html#a5b7b5826e12247721d21b8b118beaf38">opj_bio::start</a></div><divclass="ttdeci">OPJ_BYTE * start</div><divclass="ttdoc">pointer to the start of the buffer</div><divclass="ttdef"><b>Definition:</b> bio.h:58</div></div>
<divclass="ttc"id="astructopj__bio_html_a91e6c579ced7a356d042b27cbeba3e03"><divclass="ttname"><ahref="structopj__bio.html#a91e6c579ced7a356d042b27cbeba3e03">opj_bio::buf</a></div><divclass="ttdeci">OPJ_UINT32 buf</div><divclass="ttdoc">temporary place where each byte is read or written</div><divclass="ttdef"><b>Definition:</b> bio.h:64</div></div>
<divclass="ttc"id="astructopj__bio_html_afbbfc81d9624cfd55add60bef5d0fb42"><divclass="ttname"><ahref="structopj__bio.html#afbbfc81d9624cfd55add60bef5d0fb42">opj_bio::bp</a></div><divclass="ttdeci">OPJ_BYTE * bp</div><divclass="ttdoc">pointer to the present position in the buffer</div><divclass="ttdef"><b>Definition:</b> bio.h:62</div></div>
<divclass="ttc"id="abio_8c_html_a7aa126e3f12e3b56d83a0b19dce2370b"><divclass="ttname"><ahref="bio_8c.html#a7aa126e3f12e3b56d83a0b19dce2370b">opj_bio_getbit</a></div><divclass="ttdeci">static OPJ_UINT32 opj_bio_getbit(opj_bio_t *bio)</div><divclass="ttdoc">Read a bit.</div><divclass="ttdef"><b>Definition:</b> bio.c:113</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a9d7d909f8dc1a2c23313c48645341e81"><divclass="ttname"><ahref="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free</a></div><divclass="ttdeci">void opj_free(void *ptr)</div><divclass="ttdoc">Deallocates or frees a memory block.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:246</div></div>
<divclass="ttc"id="abio_8h_html_a830ee6789a9be0ae5f9a8ff056b771fe"><divclass="ttname"><ahref="bio_8h.html#a830ee6789a9be0ae5f9a8ff056b771fe">opj_bio_inalign</a></div><divclass="ttdeci">OPJ_BOOL opj_bio_inalign(opj_bio_t *bio)</div><divclass="ttdoc">Passes the ending bits (coming from flushing)</div><divclass="ttdef"><b>Definition:</b> bio.c:208</div></div>
<divclass="ttc"id="astructopj__tcd_html_a57a0a72c3eeb7b383a62182bd02f6db2"><divclass="ttname"><ahref="structopj__tcd.html#a57a0a72c3eeb7b383a62182bd02f6db2">opj_tcd::tcd_image</a></div><divclass="ttdeci">opj_tcd_image_t * tcd_image</div><divclass="ttdoc">info on each image tile</div><divclass="ttdef"><b>Definition:</b> tcd.h:268</div></div>
<divclass="ttc"id="abio_8c_html_a9b06f926913047b80974f8f3c64be378"><divclass="ttname"><ahref="bio_8c.html#a9b06f926913047b80974f8f3c64be378">opj_bio_byteout</a></div><divclass="ttdeci">static OPJ_BOOL opj_bio_byteout(opj_bio_t *bio)</div><divclass="ttdoc">Write a byte.</div><divclass="ttdef"><b>Definition:</b> bio.c:81</div></div>
<divclass="ttc"id="athread_8c_html_a24a3a1b343df1168a3beb57babfa0916"><divclass="ttname"><ahref="thread_8c.html#a24a3a1b343df1168a3beb57babfa0916">opj_thread_pool_create</a></div><divclass="ttdeci">opj_thread_pool_t * opj_thread_pool_create(int num_threads)</div><divclass="ttdoc">Create a new thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:625</div></div>
<divclass="ttc"id="abio_8c_html_a830ee6789a9be0ae5f9a8ff056b771fe"><divclass="ttname"><ahref="bio_8c.html#a830ee6789a9be0ae5f9a8ff056b771fe">opj_bio_inalign</a></div><divclass="ttdeci">OPJ_BOOL opj_bio_inalign(opj_bio_t *bio)</div><divclass="ttdoc">Passes the ending bits (coming from flushing)</div><divclass="ttdef"><b>Definition:</b> bio.c:208</div></div>
<divclass="ttc"id="astructopj__image__comp_html_a0805d2f69bb770ff022c164aeda22685"><divclass="ttname"><ahref="structopj__image__comp.html#a0805d2f69bb770ff022c164aeda22685">opj_image_comp::dx</a></div><divclass="ttdeci">OPJ_UINT32 dx</div><divclass="ttdoc">XRsiz: horizontal separation of a sample of ith component with respect to the reference grid.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:679</div></div>
<divclass="ttc"id="abio_8h_html_a00f1d2645b33a7281e2b2dbc20079957"><divclass="ttname"><ahref="bio_8h.html#a00f1d2645b33a7281e2b2dbc20079957">opj_bio_create</a></div><divclass="ttdeci">opj_bio_t * opj_bio_create(void)</div><divclass="ttdoc">Create a new BIO handle.</div><divclass="ttdef"><b>Definition:</b> bio.c:129</div></div>
<divclass="ttc"id="astructopj__tcd_html_a0ae43e0bcaae1095138b6ab8752e7ed2"><divclass="ttname"><ahref="structopj__tcd.html#a0ae43e0bcaae1095138b6ab8752e7ed2">opj_tcd::win_x0</a></div><divclass="ttdeci">OPJ_UINT32 win_x0</div><divclass="ttdoc">Coordinates of the window of interest, in grid reference space.</div><divclass="ttdef"><b>Definition:</b> tcd.h:282</div></div>
<divclass="ttc"id="astructopj__image_html"><divclass="ttname"><ahref="structopj__image.html">opj_image</a></div><divclass="ttdoc">Defines image data and characteristics.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:709</div></div>
<divclass="ttc"id="aopj__intmath_8h_html_aaa1e441dec325d33ccd86aa7ca8ccfdc"><divclass="ttname"><ahref="opj__intmath_8h.html#aaa1e441dec325d33ccd86aa7ca8ccfdc">opj_int_ceildivpow2</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_ceildivpow2(OPJ_INT32 a, OPJ_INT32 b)</div><divclass="ttdoc">Divide an integer by a power of 2 and round upwards.</div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:180</div></div>
<divclass="ttc"id="astructopj__bio_html_a739743b6883a37747cd417edaa18cf88"><divclass="ttname"><ahref="structopj__bio.html#a739743b6883a37747cd417edaa18cf88">opj_bio::ct</a></div><divclass="ttdeci">OPJ_UINT32 ct</div><divclass="ttdoc">coder : number of bits free to write.</div><divclass="ttdef"><b>Definition:</b> bio.h:66</div></div>