+
#include <stdio.h>
#include "gdcmFile.h"
-// for jpeglib defined BITS_IN_JSAMPLE
-#include "jpeg/libijg8/jBitsInJsample.h"
-// FIXME : find something else when both
-// libJpeg8 and libJpeg12 will be active
+#define BITS_IN_JSAMPLE 8
#define DEBUG 0
* Sample routine for JPEG decompression. We assume that the source file name
* is passed in. We want to return 1 on success, 0 on error.
*/
-
-
-//GLOBAL(int)
-int
-gdcmFile::gdcm_read_JPEG_file (void * image_buffer) {
+//GLOBAL(bool)
+bool gdcmFile::gdcm_read_JPEG_file (FILE *fp,void * image_buffer) {
char *pimage;