* from the Cornell lossless JPEG code
*/
/*
- * $Id: decomp.c,v 1.1 2003/10/21 12:08:53 jpr Exp $
+ * $Id: decomp.c,v 1.2 2003/10/29 18:24:40 malaterre Exp $
*/
#include <stdio.h>
#include <stdlib.h>
}
-short JPEGLosslessDecodeImage (StreamIN inFile, unsigned short *image16, int depth, int length)
+GLOBAL(short) JPEGLosslessDecodeImage (StreamIN inFile, unsigned short *image16, int depth, int length)
{
/* Initialization */
JpegInFile = inFile;
* Basic jpeg data structure definitions.
*/
/*
- * $Id: jpeg.h,v 1.1 2003/10/21 12:08:54 jpr Exp $
+ * $Id: jpeg.h,v 1.2 2003/10/29 18:24:40 malaterre Exp $
*/
#ifndef _JPEG
#define _JPEG
+/* a function referenced thru EXTERNs: */
+#ifdef WIN32
+ #define GLOBAL(type) __declspec( dllexport ) type
+#else
+ #define GLOBAL(type) type
+#endif
+
typedef unsigned char Uchar;
typedef unsigned short Ushort;
typedef unsigned int Uint;
* parts are stolen from the IJG code
*/
/*
- * $Id: jpegless.h,v 1.1 2003/10/21 12:08:54 jpr Exp $
+ * $Id: jpegless.h,v 1.2 2003/10/29 18:24:40 malaterre Exp $
*/
#include "jpeg.h"
/*
* read a JPEG lossless (8 or 16 bit) image in a file and decode it
*/
-short JPEGLosslessDecodeImage (StreamIN inFile, unsigned short * image16, int depth, int length);
+GLOBAL(short) JPEGLosslessDecodeImage (StreamIN inFile, unsigned short * image16, int depth, int length);
#if defined(__cplusplus)