<ahref="jp2k__encoder_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="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="ttc"id="astruct_c_o_dmarker__param_html_a4b9375e1901cd5ab4ac9b1326f404758"><divclass="ttname"><ahref="struct_c_o_dmarker__param.html#a4b9375e1901cd5ab4ac9b1326f404758">CODmarker_param::numOflayers</a></div><divclass="ttdeci">Byte2_t numOflayers</div><divclass="ttdoc">number of layers</div><divclass="ttdef"><b>Definition:</b> index_manager.h:79</div></div>
<divclass="ttc"id="ajp2k__encoder_8c_html_a722b5ca0c9026f39cd6523ee19c34b91"><divclass="ttname"><ahref="jp2k__encoder_8c.html#a722b5ca0c9026f39cd6523ee19c34b91">recons_codestream_from_JPTstream</a></div><divclass="ttdeci">Byte_t * recons_codestream_from_JPTstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, int fw, int fh, Byte8_t *j2klen)</div><divclass="ttdef"><b>Definition:</b> jp2k_encoder.c:189</div></div>
<divclass="ttc"id="astructplaceholder__param_html_a8986cbfa09947528724c1f152270cb9a"><divclass="ttname"><ahref="structplaceholder__param.html#a8986cbfa09947528724c1f152270cb9a">placeholder_param::OrigBHlen</a></div><divclass="ttdeci">Byte_t OrigBHlen</div><divclass="ttdoc">length of OrigBH</div><divclass="ttdef"><b>Definition:</b> placeholder_manager.h:45</div></div>
<divclass="ttc"id="astruct_c_o_dmarker__param_html_a4fa6918eab9671421653498def3f4df7"><divclass="ttname"><ahref="struct_c_o_dmarker__param.html#a4fa6918eab9671421653498def3f4df7">CODmarker_param::Scod</a></div><divclass="ttdeci">Byte_t Scod</div><divclass="ttdoc">Coding style for all components.</div><divclass="ttdef"><b>Definition:</b> index_manager.h:77</div></div>
<divclass="ttc"id="ajp2k__encoder_8c_html_aae208fb0cb201969e96cda2e7df3c7cc"><divclass="ttname"><ahref="jp2k__encoder_8c.html#aae208fb0cb201969e96cda2e7df3c7cc">recons_j2kmainhead</a></div><divclass="ttdeci">Byte_t * recons_j2kmainhead(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, Byte8_t *j2klen)</div><divclass="ttdoc">reconstruct j2k codestream of mainheader from message queue</div><divclass="ttdef"><b>Definition:</b> jp2k_encoder.c:906</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a79168a3b2807f62ba9efd85676e4ca7c"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a79168a3b2807f62ba9efd85676e4ca7c">SIZmarker_param::XTnum</a></div><divclass="ttdeci">Byte4_t XTnum</div><divclass="ttdoc">number of tiles in horizontal direction</div><divclass="ttdef"><b>Definition:</b> index_manager.h:66</div></div>
<divclass="ttc"id="aindex__manager_8c_html_a02ddb84f0afb66d882fd5c795e35e7a9"><divclass="ttname"><ahref="index__manager_8c.html#a02ddb84f0afb66d882fd5c795e35e7a9">delete_COD</a></div><divclass="ttdeci">void delete_COD(CODmarker_param_t COD)</div><divclass="ttdoc">delete dynamic arrays in COD marker</div><divclass="ttdef"><b>Definition:</b> index_manager.c:215</div></div>
<divclass="ttc"id="abyte__manager_8c_html_a1f29d888bc2d2a63e5ca8a2b71cfafea"><divclass="ttname"><ahref="byte__manager_8c.html#a1f29d888bc2d2a63e5ca8a2b71cfafea">big4</a></div><divclass="ttdeci">Byte4_t big4(Byte_t *buf)</div><divclass="ttdoc">convert 4-byte big endian Byte codes to number</div><divclass="ttdef"><b>Definition:</b> byte_manager.c:147</div></div>
<divclass="ttc"id="astruct_c_o_dmarker__param_html_aecda2eeb8332cff348b11d0c09540b9c"><divclass="ttname"><ahref="struct_c_o_dmarker__param.html#aecda2eeb8332cff348b11d0c09540b9c">CODmarker_param::XPsiz</a></div><divclass="ttdeci">Byte4_t * XPsiz</div><divclass="ttdoc">dynamic array of precinct width at successive resolution level in order</div><divclass="ttdef"><b>Definition:</b> index_manager.h:81</div></div>
<divclass="ttc"id="aj2kheader__manager_8c_html_aaf155590fb82d18a01ddef20353cf076"><divclass="ttname"><ahref="j2kheader__manager_8c.html#aaf155590fb82d18a01ddef20353cf076">modify_tileheader</a></div><divclass="ttdeci">OPJ_BOOL modify_tileheader(Byte_t *j2kstream, Byte8_t SOToffset, int numOfdecomp, Byte2_t Csiz, Byte8_t *j2klen)</div><divclass="ttdoc">modify tile header in j2k codestream to fit with the tile part length, and new number of decompositio...</div><divclass="ttdef"><b>Definition:</b> j2kheader_manager.c:256</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a9a138921fb5a8e902b627ae02b6ffb3f"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a9a138921fb5a8e902b627ae02b6ffb3f">SIZmarker_param::Xsiz</a></div><divclass="ttdeci">Byte4_t Xsiz</div><divclass="ttdoc">width of the reference grid</div><divclass="ttdef"><b>Definition:</b> index_manager.h:58</div></div>
<divclass="ttc"id="amsgqueue__manager_8c_html_a3e8eeeef9d2895126594bdb9d1b991c4"><divclass="ttname"><ahref="msgqueue__manager_8c.html#a3e8eeeef9d2895126594bdb9d1b991c4">comp_precinct_id</a></div><divclass="ttdeci">Byte8_t comp_precinct_id(int t, int c, int s, int num_components, int num_tiles)</div><divclass="ttdoc">compute precinct ID A.3.2.1</div><divclass="ttdef"><b>Definition:</b> msgqueue_manager.c:311</div></div>
<divclass="ttc"id="ajp2k__encoder_8h_html_ae4142d75ff68c5e6e239baa617aac74d"><divclass="ttname"><ahref="jp2k__encoder_8h.html#ae4142d75ff68c5e6e239baa617aac74d">recons_j2k</a></div><divclass="ttdeci">Byte_t * recons_j2k(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, int fw, int fh, Byte8_t *j2klen)</div><divclass="ttdoc">reconstruct j2k codestream from message queue</div><divclass="ttdef"><b>Definition:</b> jp2k_encoder.c:79</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a0f9f980e4c36fb394b87f4041b8344c6"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a0f9f980e4c36fb394b87f4041b8344c6">SIZmarker_param::Ysiz</a></div><divclass="ttdeci">Byte4_t Ysiz</div><divclass="ttdoc">height of the reference grid</div><divclass="ttdef"><b>Definition:</b> index_manager.h:59</div></div>
<divclass="ttc"id="astructmessage__param_html_a9b248b2996284bbd74016a6e7c6fbff2"><divclass="ttname"><ahref="structmessage__param.html#a9b248b2996284bbd74016a6e7c6fbff2">message_param::last_byte</a></div><divclass="ttdeci">OPJ_BOOL last_byte</div><divclass="ttdoc">if message contains the last byte of the data-bin</div><divclass="ttdef"><b>Definition:</b> msgqueue_manager.h:50</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a5a9e6d3f2d4918549184415e4b19eea0"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a5a9e6d3f2d4918549184415e4b19eea0">SIZmarker_param::YTnum</a></div><divclass="ttdeci">Byte4_t YTnum</div><divclass="ttdoc">number of tiles in vertical direction</div><divclass="ttdef"><b>Definition:</b> index_manager.h:67</div></div>
<divclass="ttc"id="astructmessage__param_html_a9b69c2af8de7d5a4ce100bf970ec5d8d"><divclass="ttname"><ahref="structmessage__param.html#a9b69c2af8de7d5a4ce100bf970ec5d8d">message_param::bin_offset</a></div><divclass="ttdeci">Byte8_t bin_offset</div><divclass="ttdoc">offset of the data in this message from the start of the data-bin</div><divclass="ttdef"><b>Definition:</b> msgqueue_manager.h:54</div></div>
<divclass="ttc"id="aj2kheader__manager_8c_html_a6e85dbe0255e26a6027b19afde275b60"><divclass="ttname"><ahref="j2kheader__manager_8c.html#a6e85dbe0255e26a6027b19afde275b60">get_mainheader_from_j2kstream</a></div><divclass="ttdeci">OPJ_BOOL get_mainheader_from_j2kstream(Byte_t *j2kstream, SIZmarker_param_t *SIZ, CODmarker_param_t *COD)</div><divclass="ttdoc">get main header information from j2k codestream</div><divclass="ttdef"><b>Definition:</b> j2kheader_manager.c:52</div></div>
<divclass="ttc"id="ajp2k__encoder_8c_html_ad58b846f1f79499b98a3bed75ecb5071"><divclass="ttname"><ahref="jp2k__encoder_8c.html#ad58b846f1f79499b98a3bed75ecb5071">comp_seqID</a></div><divclass="ttdeci">Byte8_t comp_seqID(Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int r, int p)</div><divclass="ttdef"><b>Definition:</b> jp2k_encoder.c:675</div></div>
<divclass="ttc"id="aimgreg__manager_8c_html_ab9ee71088d3e692543a29baa73d5d00b"><divclass="ttname"><ahref="imgreg__manager_8c.html#ab9ee71088d3e692543a29baa73d5d00b">comp_decomplev</a></div><divclass="ttdeci">int comp_decomplev(int fw, int fh, int Xsiz, int Ysiz)</div><divclass="ttdoc">compute decomposition level (only to get the level use find_level for all parameters</div><divclass="ttdef"><b>Definition:</b> imgreg_manager.c:134</div></div>
<divclass="ttc"id="astruct_c_o_dmarker__param_html_a9991aeac9582166cff53a31a17ac4e1a"><divclass="ttname"><ahref="struct_c_o_dmarker__param.html#a9991aeac9582166cff53a31a17ac4e1a">CODmarker_param::YPsiz</a></div><divclass="ttdeci">Byte4_t * YPsiz</div><divclass="ttdoc">dynamic array of precinct height at successive resolution level in order</div><divclass="ttdef"><b>Definition:</b> index_manager.h:82</div></div>
<divclass="ttc"id="astructmessage__param_html_af349d721c012c38dc1626ee162c767b2"><divclass="ttname"><ahref="structmessage__param.html#af349d721c012c38dc1626ee162c767b2">message_param::next</a></div><divclass="ttdeci">struct message_param * next</div><divclass="ttdoc">pointer to the next message</div><divclass="ttdef"><b>Definition:</b> msgqueue_manager.h:59</div></div>
<divclass="ttc"id="ajp2k__encoder_8c_html_aedb7d18185ab43c75bacb77813e9e72c"><divclass="ttname"><ahref="jp2k__encoder_8c.html#aedb7d18185ab43c75bacb77813e9e72c">recons_precinct</a></div><divclass="ttdeci">Byte_t * recons_precinct(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int *max_reslev, int comp_idx, int res_idx, Byte8_t seqID, Byte8_t *j2klen)</div><divclass="ttdef"><b>Definition:</b> jp2k_encoder.c:636</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="astructmessage__param_html_ab3bc71f3b707116692159e2f1870a2ef"><divclass="ttname"><ahref="structmessage__param.html#ab3bc71f3b707116692159e2f1870a2ef">message_param::res_offset</a></div><divclass="ttdeci">OPJ_OFF_T res_offset</div><divclass="ttdoc">offset in the resource</div><divclass="ttdef"><b>Definition:</b> msgqueue_manager.h:57</div></div>
<divclass="ttc"id="ajp2k__encoder_8c_html_a550ca6a746bd47124122bc2790d914d0"><divclass="ttname"><ahref="jp2k__encoder_8c.html#a550ca6a746bd47124122bc2790d914d0">recons_codestream</a></div><divclass="ttdeci">Byte_t * recons_codestream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, int fw, int fh, Byte8_t *codelen)</div><divclass="ttdoc">reconstruct j2k codestream from JPT- (in future, JPP-) stream</div><divclass="ttdef"><b>Definition:</b> jp2k_encoder.c:149</div></div>
<divclass="ttc"id="aindex__manager_8c_html_a363e109f12af309bc22a5fbc251b46ce"><divclass="ttname"><ahref="index__manager_8c.html#a363e109f12af309bc22a5fbc251b46ce">get_tile_XSiz</a></div><divclass="ttdeci">Byte4_t get_tile_XSiz(SIZmarker_param_t SIZ, Byte4_t tile_id, int level)</div><divclass="ttdoc">get tile wdith at the decomposition level</div><divclass="ttdef"><b>Definition:</b> index_manager.c:757</div></div>
<divclass="ttc"id="astructmessage__param_html_a4d72cb84ea9e3a60da3ce9accf40c771"><divclass="ttname"><ahref="structmessage__param.html#a4d72cb84ea9e3a60da3ce9accf40c771">message_param::csn</a></div><divclass="ttdeci">Byte8_t csn</div><divclass="ttdoc">index of the codestream</div><divclass="ttdef"><b>Definition:</b> msgqueue_manager.h:53</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a8de864778880574d3b7c27dd13462a85"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a8de864778880574d3b7c27dd13462a85">SIZmarker_param::Csiz</a></div><divclass="ttdeci">Byte2_t Csiz</div><divclass="ttdoc">number of the components in the image</div><divclass="ttdef"><b>Definition:</b> index_manager.h:68</div></div>
<divclass="ttc"id="aj2kheader__manager_8c_html_acaadd27484f5ed74d421b53a8712ece9"><divclass="ttname"><ahref="j2kheader__manager_8c.html#acaadd27484f5ed74d421b53a8712ece9">modify_mainheader</a></div><divclass="ttdeci">OPJ_BOOL modify_mainheader(Byte_t *j2kstream, int numOfdecomp, SIZmarker_param_t SIZ, CODmarker_param_t COD, Byte8_t *j2klen)</div><divclass="ttdoc">modify main header in j2k codestream to fit with the new number of decompositions</div><divclass="ttdef"><b>Definition:</b> j2kheader_manager.c:161</div></div>
<divclass="ttc"id="astructmsgqueue__param_html_a7e14c8f89c279bc703cc76070ef2316e"><divclass="ttname"><ahref="structmsgqueue__param.html#a7e14c8f89c279bc703cc76070ef2316e">msgqueue_param::first</a></div><divclass="ttdeci">message_param_t * first</div><divclass="ttdoc">first message pointer of the list</div><divclass="ttdef"><b>Definition:</b> msgqueue_manager.h:64</div></div>