jasper-software / jasper

Official Repository for the JasPer Image Coding Toolkit
http://www.ece.uvic.ca/~mdadams/jasper
Other
223 stars 101 forks source link

JAS_DLLEXPORT missing for several functions in jas_image.h #217

Closed SpaceIm closed 4 years ago

SpaceIm commented 4 years ago

Several functions are not properly exported at the end of jas_image.h, leading to undefined references with shared lib:

#define jas_image_setcmprof(image, cmprof) ((image)->cmprof_ = cmprof)
JAS_DLLEXPORT jas_image_t *jas_image_chclrspc(jas_image_t *image, jas_cmprof_t *outprof,
  int intent);
void jas_image_dump(jas_image_t *image, FILE *out);

/******************************************************************************\
* Image format-dependent operations.
\******************************************************************************/

#if !defined(EXCLUDE_JPG_SUPPORT)
/* Format-dependent operations for JPG support. */
jas_image_t *jpg_decode(jas_stream_t *in, const char *optstr);
int jpg_encode(jas_image_t *image, jas_stream_t *out, const char *optstr);
int jpg_validate(jas_stream_t *in);
#endif

#if !defined(EXCLUDE_MIF_SUPPORT)
/* Format-dependent operations for MIF support. */
jas_image_t *mif_decode(jas_stream_t *in, const char *optstr);
int mif_encode(jas_image_t *image, jas_stream_t *out, const char *optstr);
int mif_validate(jas_stream_t *in);
#endif

#if !defined(EXCLUDE_PNM_SUPPORT)
/* Format-dependent operations for PNM support. */
jas_image_t *pnm_decode(jas_stream_t *in, const char *optstr);
int pnm_encode(jas_image_t *image, jas_stream_t *out, const char *optstr);
int pnm_validate(jas_stream_t *in);
#endif

#if !defined(EXCLUDE_RAS_SUPPORT)
/* Format-dependent operations for Sun Rasterfile support. */
jas_image_t *ras_decode(jas_stream_t *in, const char *optstr);
int ras_encode(jas_image_t *image, jas_stream_t *out, const char *optstr);
int ras_validate(jas_stream_t *in);
#endif

#if !defined(EXCLUDE_BMP_SUPPORT)
/* Format-dependent operations for BMP support. */
jas_image_t *bmp_decode(jas_stream_t *in, const char *optstr);
int bmp_encode(jas_image_t *image, jas_stream_t *out, const char *optstr);
int bmp_validate(jas_stream_t *in);
#endif

#if !defined(EXCLUDE_JP2_SUPPORT)
/* Format-dependent operations for JP2 support. */
jas_image_t *jp2_decode(jas_stream_t *in, const char *optstr);
int jp2_encode(jas_image_t *image, jas_stream_t *out, const char *optstr);
int jp2_validate(jas_stream_t *in);
#endif

#if !defined(EXCLUDE_JPC_SUPPORT)
/* Format-dependent operations for JPEG-2000 code stream support. */
jas_image_t *jpc_decode(jas_stream_t *in, const char *optstr);
int jpc_encode(jas_image_t *image, jas_stream_t *out, const char *optstr);
int jpc_validate(jas_stream_t *in);
#endif

#if !defined(EXCLUDE_PGX_SUPPORT)
/* Format-dependent operations for PGX support. */
jas_image_t *pgx_decode(jas_stream_t *in, const char *optstr);
int pgx_encode(jas_image_t *image, jas_stream_t *out, const char *optstr);
int pgx_validate(jas_stream_t *in);
#endif