[trunk] Fix another set of issue with calling convention
This commit is contained in:
parent
3c4698435c
commit
9b2897ccd9
|
@ -664,29 +664,29 @@ opj_codec_t* OPJ_CALLCONV opj_create_compress(OPJ_CODEC_FORMAT p_format)
|
||||||
|
|
||||||
switch(p_format) {
|
switch(p_format) {
|
||||||
case CODEC_J2K:
|
case CODEC_J2K:
|
||||||
l_codec->m_codec_data.m_compression.opj_encode = (opj_bool (*) (void *,
|
l_codec->m_codec_data.m_compression.opj_encode = (opj_bool (OPJ_CALLCONV *) (void *,
|
||||||
struct opj_stream_private *,
|
struct opj_stream_private *,
|
||||||
struct opj_event_mgr * )) opj_j2k_encode_v2;
|
struct opj_event_mgr * )) opj_j2k_encode_v2;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_end_compress = (opj_bool (*) ( void *,
|
l_codec->m_codec_data.m_compression.opj_end_compress = (opj_bool (OPJ_CALLCONV *) ( void *,
|
||||||
struct opj_stream_private *,
|
struct opj_stream_private *,
|
||||||
struct opj_event_mgr *)) opj_j2k_end_compress;
|
struct opj_event_mgr *)) opj_j2k_end_compress;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_start_compress = (opj_bool (*) (void *,
|
l_codec->m_codec_data.m_compression.opj_start_compress = (opj_bool (OPJ_CALLCONV *) (void *,
|
||||||
struct opj_stream_private *,
|
struct opj_stream_private *,
|
||||||
struct opj_image * ,
|
struct opj_image * ,
|
||||||
struct opj_event_mgr *)) opj_j2k_start_compress;
|
struct opj_event_mgr *)) opj_j2k_start_compress;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_write_tile = (opj_bool (*) (void *,
|
l_codec->m_codec_data.m_compression.opj_write_tile = (opj_bool (OPJ_CALLCONV *) (void *,
|
||||||
OPJ_UINT32,
|
OPJ_UINT32,
|
||||||
OPJ_BYTE*,
|
OPJ_BYTE*,
|
||||||
OPJ_UINT32,
|
OPJ_UINT32,
|
||||||
struct opj_stream_private *,
|
struct opj_stream_private *,
|
||||||
struct opj_event_mgr *) ) opj_j2k_write_tile;
|
struct opj_event_mgr *) ) opj_j2k_write_tile;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_destroy = (void (*) (void *)) opj_j2k_destroy;
|
l_codec->m_codec_data.m_compression.opj_destroy = (void (OPJ_CALLCONV *) (void *)) opj_j2k_destroy;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_setup_encoder = (void (*) ( void *,
|
l_codec->m_codec_data.m_compression.opj_setup_encoder = (void (OPJ_CALLCONV *) ( void *,
|
||||||
opj_cparameters_t *,
|
opj_cparameters_t *,
|
||||||
struct opj_image *,
|
struct opj_image *,
|
||||||
struct opj_event_mgr * )) opj_j2k_setup_encoder;
|
struct opj_event_mgr * )) opj_j2k_setup_encoder;
|
||||||
|
@ -701,29 +701,29 @@ opj_codec_t* OPJ_CALLCONV opj_create_compress(OPJ_CODEC_FORMAT p_format)
|
||||||
|
|
||||||
case CODEC_JP2:
|
case CODEC_JP2:
|
||||||
/* get a JP2 decoder handle */
|
/* get a JP2 decoder handle */
|
||||||
l_codec->m_codec_data.m_compression.opj_encode = (opj_bool (*) (void *,
|
l_codec->m_codec_data.m_compression.opj_encode = (opj_bool (OPJ_CALLCONV *) (void *,
|
||||||
struct opj_stream_private *,
|
struct opj_stream_private *,
|
||||||
struct opj_event_mgr * )) opj_jp2_encode;
|
struct opj_event_mgr * )) opj_jp2_encode;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_end_compress = (opj_bool (*) ( void *,
|
l_codec->m_codec_data.m_compression.opj_end_compress = (opj_bool (OPJ_CALLCONV *) ( void *,
|
||||||
struct opj_stream_private *,
|
struct opj_stream_private *,
|
||||||
struct opj_event_mgr *)) opj_jp2_end_compress;
|
struct opj_event_mgr *)) opj_jp2_end_compress;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_start_compress = (opj_bool (*) (void *,
|
l_codec->m_codec_data.m_compression.opj_start_compress = (opj_bool (OPJ_CALLCONV *) (void *,
|
||||||
struct opj_stream_private *,
|
struct opj_stream_private *,
|
||||||
struct opj_image * ,
|
struct opj_image * ,
|
||||||
struct opj_event_mgr *)) opj_jp2_start_compress;
|
struct opj_event_mgr *)) opj_jp2_start_compress;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_write_tile = (opj_bool (*) (void *,
|
l_codec->m_codec_data.m_compression.opj_write_tile = (opj_bool (OPJ_CALLCONV *) (void *,
|
||||||
OPJ_UINT32,
|
OPJ_UINT32,
|
||||||
OPJ_BYTE*,
|
OPJ_BYTE*,
|
||||||
OPJ_UINT32,
|
OPJ_UINT32,
|
||||||
struct opj_stream_private *,
|
struct opj_stream_private *,
|
||||||
struct opj_event_mgr *)) opj_jp2_write_tile;
|
struct opj_event_mgr *)) opj_jp2_write_tile;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_destroy = (void (*) (void *)) opj_jp2_destroy;
|
l_codec->m_codec_data.m_compression.opj_destroy = (void (OPJ_CALLCONV *) (void *)) opj_jp2_destroy;
|
||||||
|
|
||||||
l_codec->m_codec_data.m_compression.opj_setup_encoder = (void (*) ( void *,
|
l_codec->m_codec_data.m_compression.opj_setup_encoder = (void (OPJ_CALLCONV *) ( void *,
|
||||||
opj_cparameters_t *,
|
opj_cparameters_t *,
|
||||||
struct opj_image *,
|
struct opj_image *,
|
||||||
struct opj_event_mgr * )) opj_jp2_setup_encoder;
|
struct opj_event_mgr * )) opj_jp2_setup_encoder;
|
||||||
|
|
Loading…
Reference in New Issue