
#ifndef _H_JPEG_DATEI_LOADED
#define _H_JPEG_DATEI_LOADED 1


/* jpeg_datei */

#include <unistd.h>
#include <stdio.h>
#include <string.h>
extern "C"
{

#include <jpeglib.h>
}

#define JPEG_FILENAMELENGTH 256
class JpegInfoType
{
   public:
      JpegInfoType();
      ~JpegInfoType();
      int JpegGetBildBreite (  );

      int JpegGetBildHoehe (  );

      int JpegSetFilename (  char *filename );

      unsigned char *JpegReadLine (  );

   private:
   
   char dateiname[JPEG_FILENAMELENGTH];
   FILE *jpegDatei;
   struct jpeg_decompress_struct jpegInfo;
   struct jpeg_error_mgr         jpegError;
   int row_stride;	
   int zeilenSchonGelesen;	
   JSAMPARRAY buffer;		
  
};



#endif /* _H_JPEG_DATEI_LOADED */

