rename jp2_decode_v2 to opj_jp2_decode

This commit is contained in:
Mickael Savinaud 2012-08-09 14:46:11 +00:00
parent ebc3263987
commit c077645f77
3 changed files with 9 additions and 9 deletions

View File

@ -1696,16 +1696,16 @@ opj_bool jp2_read_jp2h(opj_jp2_t *jp2, opj_cio_t *cio, opj_jp2_color_t *color)
opj_bool jp2_decode_v2( opj_jp2_v2_t *jp2, opj_bool opj_jp2_decode(opj_jp2_v2_t *jp2,
struct opj_stream_private *cio, opj_stream_private_t *p_stream,
opj_image_t* p_image, opj_image_t* p_image,
struct opj_event_mgr * p_manager) opj_event_mgr_t * p_manager)
{ {
if (!p_image) if (!p_image)
return OPJ_FALSE; return OPJ_FALSE;
/* J2K decoding */ /* J2K decoding */
if( ! j2k_decode_v2(jp2->j2k, cio, p_image, p_manager) ) { if( ! j2k_decode_v2(jp2->j2k, p_stream, p_image, p_manager) ) {
opj_event_msg_v2(p_manager, EVT_ERROR, "Failed to decode the codestream in the JP2 file\n"); opj_event_msg_v2(p_manager, EVT_ERROR, "Failed to decode the codestream in the JP2 file\n");
return OPJ_FALSE; return OPJ_FALSE;
} }

View File

@ -307,10 +307,10 @@ void opj_jp2_setup_decoder(opj_jp2_v2_t *jp2, opj_dparameters_t *parameters);
* @param cstr_info Codestream information structure if required, NULL otherwise * @param cstr_info Codestream information structure if required, NULL otherwise
* @return Returns a decoded image if successful, returns NULL otherwise * @return Returns a decoded image if successful, returns NULL otherwise
*/ */
opj_bool jp2_decode_v2( opj_jp2_v2_t *jp2, opj_bool opj_jp2_decode(opj_jp2_v2_t *jp2,
struct opj_stream_private *cio, opj_stream_private_t *p_stream,
opj_image_t* p_image, opj_image_t* p_image,
struct opj_event_mgr * p_manager); opj_event_mgr_t * p_manager);
/** /**

View File

@ -363,7 +363,7 @@ opj_codec_t* OPJ_CALLCONV opj_create_decompress(OPJ_CODEC_FORMAT p_format)
(opj_bool (*) ( void *, (opj_bool (*) ( void *,
struct opj_stream_private *, struct opj_stream_private *,
opj_image_t*, opj_image_t*,
struct opj_event_mgr * )) jp2_decode_v2; struct opj_event_mgr * )) opj_jp2_decode;
l_codec->m_codec_data.m_decompression.opj_end_decompress = (opj_bool (*) (void *,struct opj_stream_private *,struct opj_event_mgr *)) jp2_end_decompress; l_codec->m_codec_data.m_decompression.opj_end_decompress = (opj_bool (*) (void *,struct opj_stream_private *,struct opj_event_mgr *)) jp2_end_decompress;