<ahref="jp2k__decoder_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="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="ttc"id="aopenjpeg_8c_html_a0b847b8776315c6f654a6ad7c2d8af67"><divclass="ttname"><ahref="openjpeg_8c.html#a0b847b8776315c6f654a6ad7c2d8af67">opj_set_error_handler</a></div><divclass="ttdeci">OPJ_BOOL OPJ_CALLCONV opj_set_error_handler(opj_codec_t *p_codec, opj_msg_callback p_callback, void *p_user_data)</div><divclass="ttdoc">Set the error handler use by openjpeg.</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:74</div></div>
<divclass="ttc"id="aopenjpeg_8c_html_a6b7606d660444e8f414aa6e2c148fa44"><divclass="ttname"><ahref="openjpeg_8c.html#a6b7606d660444e8f414aa6e2c148fa44">opj_set_info_handler</a></div><divclass="ttdeci">OPJ_BOOL OPJ_CALLCONV opj_set_info_handler(opj_codec_t *p_codec, opj_msg_callback p_callback, void *p_user_data)</div><divclass="ttdoc">Set the info handler use by openjpeg.</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:44</div></div>
<divclass="ttc"id="astructopj__dparameters_html_a52c99d552c89a73a85710fb313de6995"><divclass="ttname"><ahref="structopj__dparameters.html#a52c99d552c89a73a85710fb313de6995">opj_dparameters::DA_y1</a></div><divclass="ttdeci">OPJ_UINT32 DA_y1</div><divclass="ttdoc">Decoding area bottom boundary.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:587</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="aopenjpeg_8c_html_ad8473386b576be935efe653b9773ba06"><divclass="ttname"><ahref="openjpeg_8c.html#ad8473386b576be935efe653b9773ba06">opj_setup_decoder</a></div><divclass="ttdeci">OPJ_BOOL OPJ_CALLCONV opj_setup_decoder(opj_codec_t *p_codec, opj_dparameters_t *parameters)</div><divclass="ttdoc">Setup the decoder with decompression parameters provided by the user and with the message handler pro...</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:416</div></div>
<divclass="ttc"id="aopenjpeg_8c_html_aea476bddc65f8bf5b5b2bbbe41af7389"><divclass="ttname"><ahref="openjpeg_8c.html#aea476bddc65f8bf5b5b2bbbe41af7389">opj_set_decode_area</a></div><divclass="ttdeci">OPJ_BOOL OPJ_CALLCONV opj_set_decode_area(opj_codec_t *p_codec, opj_image_t *p_image, OPJ_INT32 p_start_x, OPJ_INT32 p_start_y, OPJ_INT32 p_end_x, OPJ_INT32 p_end_y)</div><divclass="ttdoc">Sets the given area to be decoded.</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:530</div></div>
<divclass="ttc"id="aimage_8c_html_a193f6a609b0a3c4aa4912be9c987cd14"><divclass="ttname"><ahref="image_8c.html#a193f6a609b0a3c4aa4912be9c987cd14">opj_image_destroy</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_image_destroy(opj_image_t *image)</div><divclass="ttdoc">Deallocate any resources associated with an image.</div><divclass="ttdef"><b>Definition:</b> image.c:91</div></div>
<divclass="ttc"id="astructopj__dparameters_html_a440bb7c355913b2dade15a4b811f3f23"><divclass="ttname"><ahref="structopj__dparameters.html#a440bb7c355913b2dade15a4b811f3f23">opj_dparameters::DA_x0</a></div><divclass="ttdeci">OPJ_UINT32 DA_x0</div><divclass="ttdoc">Decoding area left boundary.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:581</div></div>
<divclass="ttc"id="astructopj__image__comp_html_ab7210ddbf12e6d9998d24034a579cea1"><divclass="ttname"><ahref="structopj__image__comp.html#ab7210ddbf12e6d9998d24034a579cea1">opj_image_comp::prec</a></div><divclass="ttdeci">OPJ_UINT32 prec</div><divclass="ttdoc">precision: number of bits per component per pixel</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:691</div></div>
<divclass="ttc"id="aopenjpeg_8c_html_acb36a77efa64f8332c27fc4ea6be066c"><divclass="ttname"><ahref="openjpeg_8c.html#acb36a77efa64f8332c27fc4ea6be066c">opj_stream_create_default_file_stream</a></div><divclass="ttdeci">opj_stream_t *OPJ_CALLCONV opj_stream_create_default_file_stream(const char *fname, OPJ_BOOL p_is_read_stream)</div><divclass="ttdoc">Create a stream from a file identified with its filename with default parameters (helper function)</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:1077</div></div>
<divclass="ttc"id="aopenjpeg_8c_html_af5b94be0890f895a5527eb3ca9abe2f1"><divclass="ttname"><ahref="openjpeg_8c.html#af5b94be0890f895a5527eb3ca9abe2f1">opj_decode</a></div><divclass="ttdeci">OPJ_BOOL OPJ_CALLCONV opj_decode(opj_codec_t *p_codec, opj_stream_t *p_stream, opj_image_t *p_image)</div><divclass="ttdoc">Decode an image from a JPEG-2000 codestream.</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:509</div></div>
<divclass="ttc"id="aopenjpeg_8c_html_ab460c38323da1140f66763aa419c404b"><divclass="ttname"><ahref="openjpeg_8c.html#ab460c38323da1140f66763aa419c404b">opj_set_warning_handler</a></div><divclass="ttdeci">OPJ_BOOL OPJ_CALLCONV opj_set_warning_handler(opj_codec_t *p_codec, opj_msg_callback p_callback, void *p_user_data)</div><divclass="ttdoc">Set the warning handler use by openjpeg.</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:59</div></div>
<divclass="ttc"id="acio_8c_html_ac0686c0048dfa2d2fcffaf649891ea58"><divclass="ttname"><ahref="cio_8c.html#ac0686c0048dfa2d2fcffaf649891ea58">opj_stream_destroy</a></div><divclass="ttdeci">void OPJ_CALLCONV opj_stream_destroy(opj_stream_t *p_stream)</div><divclass="ttdoc">Destroys a stream created by opj_create_stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:199</div></div>
<divclass="ttc"id="aopenjpeg_8c_html_ab9b3cca67f964a3099a64729744084c8"><divclass="ttname"><ahref="openjpeg_8c.html#ab9b3cca67f964a3099a64729744084c8">opj_create_decompress</a></div><divclass="ttdeci">opj_codec_t *OPJ_CALLCONV opj_create_decompress(OPJ_CODEC_FORMAT p_format)</div><divclass="ttdoc">Creates a J2K/JP2 decompression structure.</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:179</div></div>
<divclass="ttc"id="astructopj__dparameters_html_a3349a1210e55ae91e8eb9446fb6f979f"><divclass="ttname"><ahref="structopj__dparameters.html#a3349a1210e55ae91e8eb9446fb6f979f">opj_dparameters::DA_y0</a></div><divclass="ttdeci">OPJ_UINT32 DA_y0</div><divclass="ttdoc">Decoding area up boundary.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:585</div></div>
<divclass="ttc"id="astructopj__dparameters_html_a98e9ceaf5c68dcc39019ec707961e24d"><divclass="ttname"><ahref="structopj__dparameters.html#a98e9ceaf5c68dcc39019ec707961e24d">opj_dparameters::DA_x1</a></div><divclass="ttdeci">OPJ_UINT32 DA_x1</div><divclass="ttdoc">Decoding area right boundary.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:583</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="aopenjpeg_8c_html_a2a9a4836a18cc832d8683508235c900d"><divclass="ttname"><ahref="openjpeg_8c.html#a2a9a4836a18cc832d8683508235c900d">opj_end_decompress</a></div><divclass="ttdeci">OPJ_BOOL OPJ_CALLCONV opj_end_decompress(opj_codec_t *p_codec, opj_stream_t *p_stream)</div><divclass="ttdoc">Read after the codestream if necessary.</div><divclass="ttdef"><b>Definition:</b> openjpeg.c:919</div></div>