openjpeg/doxygen/group___e_v_e_n_t.html

141 lines
18 KiB
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.10"/>
<title>OpenJPEG: EVENT - Implementation of a event callback system</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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OpenJPEG
&#160;<span id="projectnumber">2.2.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<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><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">EVENT - Implementation of a event callback system</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Exported functions (see also openjpeg.h)</h2></td></tr>
<tr class="memitem:ga87d9d4bdfd203ccd8a7522d6f197a3b7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___e_v_e_n_t.html#ga87d9d4bdfd203ccd8a7522d6f197a3b7">opj_event_msg</a> (<a class="el" href="event_8h.html#a4cba85f9ee037b1f2c6bceb903051d96">opj_event_mgr_t</a> *event_mgr, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> event_type, const char *fmt,...)</td></tr>
<tr class="memdesc:ga87d9d4bdfd203ccd8a7522d6f197a3b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write formatted data to a string and send the string to a user callback. <a href="#ga87d9d4bdfd203ccd8a7522d6f197a3b7">More...</a><br /></td></tr>
<tr class="separator:ga87d9d4bdfd203ccd8a7522d6f197a3b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8584de0db0bbc62b70d5cf5089165ef2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___e_v_e_n_t.html#ga8584de0db0bbc62b70d5cf5089165ef2">opj_set_default_event_handler</a> (<a class="el" href="event_8h.html#a4cba85f9ee037b1f2c6bceb903051d96">opj_event_mgr_t</a> *p_manager)</td></tr>
<tr class="memdesc:ga8584de0db0bbc62b70d5cf5089165ef2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the event manager with the default callback function for the 3 levels. <a href="#ga8584de0db0bbc62b70d5cf5089165ef2">More...</a><br /></td></tr>
<tr class="separator:ga8584de0db0bbc62b70d5cf5089165ef2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga87d9d4bdfd203ccd8a7522d6f197a3b7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> opj_event_msg </td>
<td>(</td>
<td class="paramtype"><a class="el" href="event_8h.html#a4cba85f9ee037b1f2c6bceb903051d96">opj_event_mgr_t</a> *&#160;</td>
<td class="paramname"><em>event_mgr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>event_type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>fmt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write formatted data to a string and send the string to a user callback. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">event_mgr</td><td>Event handler </td></tr>
<tr><td class="paramname">event_type</td><td>Event type or callback to use to send the message </td></tr>
<tr><td class="paramname">fmt</td><td>Format-control string (plus optional arguments)</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns true if successful, returns false otherwise </dd></dl>
<p>References <a class="el" href="structopj__event__mgr.html#a9ee0c627fefd37d56e3487af6fc250b6">opj_event_mgr::error_handler</a>, <a class="el" href="event_8h.html#a7323671f4df0a721ae02d610b1269ab9">EVT_ERROR</a>, <a class="el" href="event_8h.html#a220921068c5e3c97c8f2ad4db0c60726">EVT_INFO</a>, <a class="el" href="event_8h.html#abefbcb0bea7916739b3adccb2d4e9417">EVT_WARNING</a>, <a class="el" href="structopj__event__mgr.html#ad60a40bbc655af631ec15f84ee45a708">opj_event_mgr::info_handler</a>, <a class="el" href="structopj__event__mgr.html#a551021914bcf2da3a212f1fd128da7d7">opj_event_mgr::m_error_data</a>, <a class="el" href="structopj__event__mgr.html#a914c15d0e74ed08bc54a93664df4402c">opj_event_mgr::m_info_data</a>, <a class="el" href="structopj__event__mgr.html#ae86cf70e19e00750bdf4df2fdae4f4b3">opj_event_mgr::m_warning_data</a>, <a class="el" href="openjpeg_8h.html#ac672bfd7db39c609e828acb07a321964">OPJ_FALSE</a>, <a class="el" href="event_8c.html#a04bd3229f3d8b05834a288b47949483e">OPJ_MSG_SIZE</a>, <a class="el" href="openjpeg_8h.html#a04830036d767cba56cbf5ae5bdc481d3">OPJ_TRUE</a>, and <a class="el" href="structopj__event__mgr.html#af0954e95dec628614f22a501f2b6ce9b">opj_event_mgr::warning_handler</a>.</p>
<p>Referenced by <a class="el" href="group___j2_k.html#ga8ff678e3d2865b7a9e770c594bdbf96f">opj_j2k_check_poc_val()</a>, <a class="el" href="group___j2_k.html#gadaffc1a68a7cbfe82eca1f66e557d78d">opj_j2k_copy_default_tcp_and_create_tcd()</a>, <a class="el" href="group___j2_k.html#ga9e5d9046fb1e8a88af9a8787a551f00b">opj_j2k_create_tcd()</a>, <a class="el" href="j2k_8c.html#ae310be1158fc90d77b9f4bd2711069d2">opj_j2k_decode_one_tile()</a>, <a class="el" href="j2k_8h.html#a589edf58bf96de0a09b6104b6f5c13e8">opj_j2k_decode_tile()</a>, <a class="el" href="group___j2_k.html#ga7b5ed63aa196941746a348042a55dda3">opj_j2k_decode_tiles()</a>, <a class="el" href="j2k_8h.html#af05dd7eedf751beb0033ac42de564fcc">opj_j2k_encode()</a>, <a class="el" href="group___j2_k.html#ga2ef076b003198ded3337ed8d5a641cf2">opj_j2k_encoding_validation()</a>, <a class="el" href="group___j2_k.html#ga01ad31cdc9b2d7478221f55f2aedf7f7">opj_j2k_get_sot_values()</a>, <a class="el" href="j2k_8h.html#a60371d3609364bf033e8c244599abf6f">opj_j2k_get_tile()</a>, <a class="el" href="group___j2_k.html#gacd8c13c7f20ddaca4fbb0aa886d40f18">opj_j2k_is_cinema_compliant()</a>, <a class="el" href="group___j2_k.html#ga5c7aed6778ebe582455869c5df435c5f">opj_j2k_merge_ppm()</a>, <a class="el" href="group___j2_k.html#gaffae175b58a2b960f035136d58bbaaf1">opj_j2k_merge_ppt()</a>, <a class="el" href="group___j2_k.html#gab826458121cf85e37db0f19ba5d38551">opj_j2k_need_nb_tile_parts_correction()</a>, <a class="el" href="group___j2_k.html#ga0101959e0886beb63a1ff0c92742190d">opj_j2k_pre_write_tile()</a>, <a class="el" href="group___j2_k.html#gaf9452f058867874a2545ba57182ccded">opj_j2k_read_cbd()</a>, <a class="el" href="group___j2_k.html#gaf6e255d43d68436d57606f619980bf21">opj_j2k_read_coc()</a>, <a class="el" href="group___j2_k.html#gae37490bb6b2eb9a851e24c4a53aa6da0">opj_j2k_read_cod()</a>, <a class="el" href="group___j2_k.html#ga022938ad2bf4ddd1c3383a5f37841fad">opj_j2k_read_crg()</a>, <a class="el" href="group___j2_k.html#ga445c467bde1da70f07c2cdcd3ffbc25c">opj_j2k_read_header_procedure()</a>, <a class="el" href="group___j2_k.html#ga0f83c1c3390f6368061b89b0e4dad91b">opj_j2k_read_mcc()</a>, <a class="el" href="group___j2_k.html#gaf48ac7c1ee2fe7d1dcfafedf24dba699">opj_j2k_read_mco()</a>, <a class="el" href="group___j2_k.html#ga191850876c179e6f0ce484888df823ad">opj_j2k_read_mct()</a>, <a class="el" href="group___j2_k.html#gaea6560fe7ff48535d1f61eeaa0291728">opj_j2k_read_plm()</a>, <a class="el" href="group___j2_k.html#ga47f7cf1ce731b80ee0fb78545c761c59">opj_j2k_read_plt()</a>, <a class="el" href="group___j2_k.html#ga094ffbf4a7e4ab181717cfe32f95427b">opj_j2k_read_poc()</a>, <a class="el" href="group___j2_k.html#ga49665d853cbf934ca7ad0f83f4185a90">opj_j2k_read_ppm()</a>, <a class="el" href="group___j2_k.html#ga7715f2d96c40992acf9fd7739179b7ca">opj_j2k_read_ppt()</a>, <a class="el" href="group___j2_k.html#gae4bf5d4a61a9c7e8d5c4d4792becff28">opj_j2k_read_qcc()</a>, <a class="el" href="group___j2_k.html#gaf4edcf1840e794d3d3105bbd91c44c7b">opj_j2k_read_qcd()</a>, <a class="el" href="group___j2_k.html#ga2fcbe4a501bc0095f599de812323d62f">opj_j2k_read_rgn()</a>, <a class="el" href="group___j2_k.html#gaa91c21b73fc17028a77ba44d3987f17a">opj_j2k_read_siz()</a>, <a class="el" href="group___j2_k.html#ga4a8ad30a3df7afe15c5377a6f673f911">opj_j2k_read_soc()</a>, <a class="el" href="group___j2_k.html#gaf1ac6b62e18b03816163369ec3a81eff">opj_j2k_read_sod()</a>, <a class="el" href="group___j2_k.html#ga935e4014c63e07bf19ad99584f6de430">opj_j2k_read_sot()</a>, <a class="el" href="group___j2_k.html#ga302098a94dfdd7406da50abc633720d8">opj_j2k_read_SPCod_SPCoc()</a>, <a class="el" href="group___j2_k.html#gad38da30797d61e64273836160152e557">opj_j2k_read_SQcd_SQcc()</a>, <a class="el" href="j2k_8h.html#a25b7b51949ceea33515984f1db2f594d">opj_j2k_read_tile_header()</a>, <a class="el" href="group___j2_k.html#gac4e1d91229956572f9a37707fddc69f6">opj_j2k_read_tlm()</a>, <a class="el" href="group___j2_k.html#ga2ca5884edbdd20eb06972c426cfaa25e">opj_j2k_read_unk()</a>, <a class="el" href="group___j2_k.html#gaba3677bad5a25925a5944670e27f125b">opj_j2k_set_cinema_parameters()</a>, <a class="el" href="j2k_8h.html#ab4cb6916a495309faab2dd7cb587ccb8">opj_j2k_set_decode_area()</a>, <a class="el" href="j2k_8h.html#ad2c05f29bca659d072a13133993312f9">opj_j2k_set_decoded_resolution_factor()</a>, <a class="el" href="group___j2_k.html#ga4a6561d0899d91b38099da38814cbe86">opj_j2k_setup_encoder()</a>, <a class="el" href="j2k_8h.html#accea6429e4f466250b095ee3fb94805c">opj_j2k_start_compress()</a>, <a class="el" href="group___j2_k.html#gab8c3c34855da54058f57a8aeeb14b565">opj_j2k_write_cbd()</a>, <a class="el" href="group___j2_k.html#ga64f4adc973436b83d79df04519964dc3">opj_j2k_write_coc()</a>, <a class="el" href="group___j2_k.html#gad2719d3763be720f09523fd9e17a2f21">opj_j2k_write_cod()</a>, <a class="el" href="group___j2_k.html#ga99a6490d59813c3302a7c1cfe9f81c17">opj_j2k_write_com()</a>, <a class="el" href="group___j2_k.html#gadb0a1bd6194424f47603fbeb4913afff">opj_j2k_write_mcc_record()</a>, <a class="el" href="group___j2_k.html#ga91912b9fd60e738a2476a2f759cd1298">opj_j2k_write_mco()</a>, <a class="el" href="group___j2_k.html#ga06dadd536dc59eabc14e7f89b22b6cc3">opj_j2k_write_mct_record()</a>, <a class="el" href="group___j2_k.html#ga48135c3b26ebe22d53d8f790b803dbc3">opj_j2k_write_poc()</a>, <a class="el" href="group___j2_k.html#ga6ad30a7674c00e6a8b3c9f2131883fbe">opj_j2k_write_qcc()</a>, <a class="el" href="group___j2_k.html#ga9839ebcd3d0e371137ac8d1f8c3bf89c">opj_j2k_write_qcd()</a>, <a class="el" href="group___j2_k.html#gaf495487cb111ddad7ee2d2093d0659a1">opj_j2k_write_siz()</a>, <a class="el" href="group___j2_k.html#ga25486201cd29ff3d7b34d881acb8e38a">opj_j2k_write_sod()</a>, <a class="el" href="group___j2_k.html#gacea7a283240465d291abb1fdfa03002c">opj_j2k_write_SPCod_SPCoc()</a>, <a class="el" href="group___j2_k.html#gaadd045acd64d994b9d5f40767707a9f9">opj_j2k_write_SQcd_SQcc()</a>, <a class="el" href="j2k_8h.html#a74a0d7e52fefc21e50f5d644b69f4c44">opj_j2k_write_tile()</a>, <a class="el" href="group___j2_k.html#ga9b649d1ff3d3aeb6f444405a8d82306e">opj_j2k_write_tlm()</a>, <a class="el" href="group___j_p2.html#gab2a081552f8c61d75c1c925d702057bb">opj_jp2_apply_cdef()</a>, <a class="el" href="group___j_p2.html#ga8c6a6b30b72a7814f8caf2a95aed9e14">opj_jp2_apply_pclr()</a>, <a class="el" href="jp2_8c.html#a7230dd12ccadea216f8dd6b4c670011f">opj_jp2_check_color()</a>, <a class="el" href="group___j_p2.html#gaab973979e00628ffd8b3d99a402d85aa">opj_jp2_decode()</a>, <a class="el" href="group___j_p2.html#ga69b73f68c750cf70dc3b9836ed6ccfdc">opj_jp2_get_tile()</a>, <a class="el" href="jp2_8c.html#a1f64703b3fbabfa7ad87ea693a990218">opj_jp2_read_boxhdr()</a>, <a class="el" href="jp2_8c.html#a7c505f9a7fb2d3edd11ac56d5d4de22f">opj_jp2_read_boxhdr_char()</a>, <a class="el" href="group___j_p2.html#ga289d97e88f9462c72b5dcd3e0b9d8189">opj_jp2_read_bpcc()</a>, <a class="el" href="group___j_p2.html#gaa66cf70fc600399b53cfa6a97cb5e176">opj_jp2_read_cdef()</a>, <a class="el" href="group___j_p2.html#ga364cf233c1485481bd28ad6f59b3eb22">opj_jp2_read_cmap()</a>, <a class="el" href="group___j_p2.html#gac1702a7ea040c681c8d7c9e33e6fd5bd">opj_jp2_read_colr()</a>, <a class="el" href="group___j_p2.html#ga814b516a34d9a0da8bae3850e945c50d">opj_jp2_read_ftyp()</a>, <a class="el" href="group___j_p2.html#ga6bfb434e0d150ae769c7e8eb81117723">opj_jp2_read_header()</a>, <a class="el" href="jp2_8c.html#adcd6dc192302ff32ffbaa079c01a66d8">opj_jp2_read_header_procedure()</a>, <a class="el" href="group___j_p2.html#ga0e0fac85bb2576b0fe2bff8a251a5814">opj_jp2_read_ihdr()</a>, <a class="el" href="group___j_p2.html#gac77bacf6d4801a8842126ef3fbb23bb1">opj_jp2_read_jp()</a>, <a class="el" href="group___j_p2.html#ga13296666d7710af2bfb5a5d55480f90b">opj_jp2_read_jp2h()</a>, <a class="el" href="group___j_p2.html#gaf6030e3df69fb240e22a1a32c715d4e1">opj_jp2_read_pclr()</a>, <a class="el" href="group___j_p2.html#ga94441c4e15ce0c7adfc3610152e630f2">opj_jp2_setup_encoder()</a>, <a class="el" href="group___j_p2.html#gad6f065d9f31f70d57bc3203c2122a9b5">opj_jp2_write_ftyp()</a>, <a class="el" href="group___j_p2.html#ga2e03aa1e225c059d34fc34a11ffc48fc">opj_jp2_write_jp2c()</a>, <a class="el" href="group___j_p2.html#gacbdab130baca04a1d74b841ce978e395">opj_jp2_write_jp2h()</a>, <a class="el" href="group___v_a_l.html#ga504334e4d2e64b16372e70f6c7a9d3e2">opj_procedure_list_add_procedure()</a>, <a class="el" href="openjpeg_8h.html#ab7ccce9a2fb0cf5caa18d814e7f2947f">opj_read_header()</a>, <a class="el" href="openjpeg_8h.html#accb6a7b065e3808777237012011e6894">opj_setup_decoder()</a>, <a class="el" href="group___c_i_o.html#ga3cb2e53726d5dde5a5f97f64a9e5f42d">opj_stream_flush()</a>, <a class="el" href="group___c_i_o.html#ga6102b5a73d4a0235e9cfa65d92a623dc">opj_stream_read_data()</a>, <a class="el" href="group___c_i_o.html#ga092c8153f29a4137728c6d79165c7e51">opj_stream_read_skip()</a>, <a class="el" href="group___c_i_o.html#ga9e71a30be5af724e31c50066b7ff1128">opj_stream_write_skip()</a>, <a class="el" href="group___t1.html#gab90391839b2f56ca40aaae1b8748ca3c">opj_t1_decode_cblk()</a>, <a class="el" href="group___t2.html#ga1ad0998fa29444d7f3a4ad4f5685a045">opj_t2_read_packet_data()</a>, <a class="el" href="group___t2.html#gafd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>, <a class="el" href="group___t2.html#gac743f3f9c99827fbd5d6e4ff7de9b944">opj_t2_skip_packet_data()</a>, <a class="el" href="tcd_8c.html#a54bd587a88cc401980302d13635b2703">opj_tcd_init_tile()</a>, <a class="el" href="tcd_8c.html#a5732e7b54aa86da12858cb5b42e32f81">opj_tcd_mct_decode()</a>, <a class="el" href="group___t_g_t.html#gaaf27107458b5242fe7d848480b4a4690">opj_tgt_create()</a>, and <a class="el" href="group___t_g_t.html#gaa34fdf087e24d66a2a661c31ba194c3f">opj_tgt_init()</a>.</p>
</div>
</div>
<a class="anchor" id="ga8584de0db0bbc62b70d5cf5089165ef2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void opj_set_default_event_handler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="event_8h.html#a4cba85f9ee037b1f2c6bceb903051d96">opj_event_mgr_t</a> *&#160;</td>
<td class="paramname"><em>p_manager</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the event manager with the default callback function for the 3 levels. </p>
<p>References <a class="el" href="structopj__event__mgr.html#a9ee0c627fefd37d56e3487af6fc250b6">opj_event_mgr::error_handler</a>, <a class="el" href="structopj__event__mgr.html#ad60a40bbc655af631ec15f84ee45a708">opj_event_mgr::info_handler</a>, <a class="el" href="structopj__event__mgr.html#a551021914bcf2da3a212f1fd128da7d7">opj_event_mgr::m_error_data</a>, <a class="el" href="structopj__event__mgr.html#a914c15d0e74ed08bc54a93664df4402c">opj_event_mgr::m_info_data</a>, <a class="el" href="structopj__event__mgr.html#ae86cf70e19e00750bdf4df2fdae4f4b3">opj_event_mgr::m_warning_data</a>, <a class="el" href="event_8c.html#adf1fd54a14d1011ee5b9c5f0a3e99ac0">opj_default_callback()</a>, and <a class="el" href="structopj__event__mgr.html#af0954e95dec628614f22a501f2b6ce9b">opj_event_mgr::warning_handler</a>.</p>
<p>Referenced by <a class="el" href="openjpeg_8h.html#a990851329975143ee0ad6d9fdf461f06">opj_create_compress()</a>, and <a class="el" href="openjpeg_8h.html#a411e8a7a5ea89724038fd143a48a6892">opj_create_decompress()</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.10
</small></address>
</body>
</html>