<ahref="j2kheader__manager_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_s_i_zmarker__param_html_a04d37f31c54e9ff34a328532e83ff059"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a04d37f31c54e9ff34a328532e83ff059">SIZmarker_param::Lsiz</a></div><divclass="ttdeci">Byte2_t Lsiz</div><divclass="ttdoc">length of marker segment excluding the marker</div><divclass="ttdef"><b>Definition:</b> index_manager.h:56</div></div>
<divclass="ttc"id="aj2kheader__manager_8h_html_aaf155590fb82d18a01ddef20353cf076"><divclass="ttname"><ahref="j2kheader__manager_8h.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_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="astruct_c_o_dmarker__param_html_aaa174b456bfeb15a6bf45e0b775df2c7"><divclass="ttname"><ahref="struct_c_o_dmarker__param.html#aaa174b456bfeb15a6bf45e0b775df2c7">CODmarker_param::Lcod</a></div><divclass="ttdeci">Byte2_t Lcod</div><divclass="ttdoc">length of marker segment excluding the marker</div><divclass="ttdef"><b>Definition:</b> index_manager.h:76</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_ad8dca49bdd3b445532a377cf29cc5616"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#ad8dca49bdd3b445532a377cf29cc5616">SIZmarker_param::XTsiz</a></div><divclass="ttdeci">Byte4_t XTsiz</div><divclass="ttdoc">width of one reference tile with respect to the reference grid</div><divclass="ttdef"><b>Definition:</b> index_manager.h:62</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="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="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_a166021779c499bd144656e1ce352bc90"><divclass="ttname"><ahref="j2kheader__manager_8c.html#a166021779c499bd144656e1ce352bc90">modify_SIZmkrstream</a></div><divclass="ttdeci">OPJ_BOOL modify_SIZmkrstream(SIZmarker_param_t SIZ, int difOfdecomplev, Byte_t *SIZstream)</div><divclass="ttdef"><b>Definition:</b> j2kheader_manager.c:187</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="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="astruct_s_i_zmarker__param_html_aafe7317077e6f622c29cbad5c76b1e0e"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#aafe7317077e6f622c29cbad5c76b1e0e">SIZmarker_param::XOsiz</a></div><divclass="ttdeci">Byte4_t XOsiz</div><divclass="ttdoc">horizontal offset from the origin of the reference grid to the left side of the image area</div><divclass="ttdef"><b>Definition:</b> index_manager.h:60</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a93eb50194320c4282d09617e853518c1"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a93eb50194320c4282d09617e853518c1">SIZmarker_param::YRsiz</a></div><divclass="ttdeci">Byte_t YRsiz[3]</div><divclass="ttdoc">vertical separation of a sample of component with respect to the reference grid</div><divclass="ttdef"><b>Definition:</b> index_manager.h:71</div></div>
<divclass="ttc"id="abyte__manager_8c_html_a48c7dad6f593aa718712b9451317fae3"><divclass="ttname"><ahref="byte__manager_8c.html#a48c7dad6f593aa718712b9451317fae3">modify_4Bytecode</a></div><divclass="ttdeci">void modify_4Bytecode(Byte4_t code, Byte_t *stream)</div><divclass="ttdoc">modify 4Byte code in a codestream</div><divclass="ttdef"><b>Definition:</b> byte_manager.c:159</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a13718b50fb1f83e7e5eb9ef931a553e9"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a13718b50fb1f83e7e5eb9ef931a553e9">SIZmarker_param::Ssiz</a></div><divclass="ttdeci">Byte_t Ssiz[3]</div><divclass="ttdoc">precision (depth) in bits and sign of the component samples</div><divclass="ttdef"><b>Definition:</b> index_manager.h:69</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="astruct_s_i_zmarker__param_html_a6871c1df6924ded7d2bbda1db7d4d22e"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a6871c1df6924ded7d2bbda1db7d4d22e">SIZmarker_param::YOsiz</a></div><divclass="ttdeci">Byte4_t YOsiz</div><divclass="ttdoc">vertical offset from the origin of the reference grid to the top side of the image area</div><divclass="ttdef"><b>Definition:</b> index_manager.h:61</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a79ad27514d2f6de09b1dc2487c41e59d"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a79ad27514d2f6de09b1dc2487c41e59d">SIZmarker_param::XRsiz</a></div><divclass="ttdeci">Byte_t XRsiz[3]</div><divclass="ttdoc">horizontal separation of a sample of component with respect to the reference grid</div><divclass="ttdef"><b>Definition:</b> index_manager.h:70</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="abyte__manager_8c_html_a0c20ded21352121723f9df94c7568356"><divclass="ttname"><ahref="byte__manager_8c.html#a0c20ded21352121723f9df94c7568356">big2</a></div><divclass="ttdeci">Byte2_t big2(Byte_t *buf)</div><divclass="ttdoc">convert 2-byte big endian Byte codes to number</div><divclass="ttdef"><b>Definition:</b> byte_manager.c:142</div></div>
<divclass="ttc"id="astruct_c_o_dmarker__param_html_a8b5a7ec3922783dbb050dd2c6ee729a3"><divclass="ttname"><ahref="struct_c_o_dmarker__param.html#a8b5a7ec3922783dbb050dd2c6ee729a3">CODmarker_param::numOfdecomp</a></div><divclass="ttdeci">Byte_t numOfdecomp</div><divclass="ttdoc">number of decompositions levels</div><divclass="ttdef"><b>Definition:</b> index_manager.h:80</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_aa1dc0a9082714efdd8bfa4c6ed6e3327"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#aa1dc0a9082714efdd8bfa4c6ed6e3327">SIZmarker_param::YTsiz</a></div><divclass="ttdeci">Byte4_t YTsiz</div><divclass="ttdoc">height of one reference tile with respect to the reference grid</div><divclass="ttdef"><b>Definition:</b> index_manager.h:63</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="aj2kheader__manager_8h_html_a6e85dbe0255e26a6027b19afde275b60"><divclass="ttname"><ahref="j2kheader__manager_8h.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="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="astruct_s_i_zmarker__param_html_a90f95a5cbb8edd382b995e8bfd0f56f9"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a90f95a5cbb8edd382b995e8bfd0f56f9">SIZmarker_param::XTOsiz</a></div><divclass="ttdeci">Byte4_t XTOsiz</div><divclass="ttdoc">horizontal offset from the origin of the reference grid to the left side of the first tile</div><divclass="ttdef"><b>Definition:</b> index_manager.h:64</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="aj2kheader__manager_8h_html_acaadd27484f5ed74d421b53a8712ece9"><divclass="ttname"><ahref="j2kheader__manager_8h.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="astruct_s_i_zmarker__param_html_a87cc22a74996709f8ff25e4a80cc6e91"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a87cc22a74996709f8ff25e4a80cc6e91">SIZmarker_param::Rsiz</a></div><divclass="ttdeci">Byte2_t Rsiz</div><divclass="ttdoc">capabilities that a decoder needs</div><divclass="ttdef"><b>Definition:</b> index_manager.h:57</div></div>
<divclass="ttc"id="astruct_s_i_zmarker__param_html_a3d2f0d96ab372070bcd8a9d3b85a2d07"><divclass="ttname"><ahref="struct_s_i_zmarker__param.html#a3d2f0d96ab372070bcd8a9d3b85a2d07">SIZmarker_param::YTOsiz</a></div><divclass="ttdeci">Byte4_t YTOsiz</div><divclass="ttdoc">vertical offset from the origin of the reference grid to the top side of the first tile</div><divclass="ttdef"><b>Definition:</b> index_manager.h:65</div></div>