minimal jasper support

This commit is contained in:
David Rose 2002-08-05 15:29:09 +00:00
parent d068b1b24a
commit ac5338eb0b
3 changed files with 12 additions and 1 deletions

View File

@ -18,12 +18,16 @@
#ifndef TYPEDEF_H #ifndef TYPEDEF_H
#define TYPEDEF_H #define TYPEDEF_H
#include <pandabase.h> #include "pandabase.h"
#include "numeric_types.h"
typedef unsigned char uchar; typedef unsigned char uchar;
typedef unsigned short ushort; typedef unsigned short ushort;
typedef unsigned int uint; typedef unsigned int uint;
typedef unsigned long ulong; typedef unsigned long ulong;
typedef PN_int64 longlong;
typedef PN_uint64 ulonglong;
#endif #endif

View File

@ -29,6 +29,9 @@
#ifdef HAVE_JPEG #ifdef HAVE_JPEG
#include "pnmFileTypeJPG.h" #include "pnmFileTypeJPG.h"
#endif #endif
#ifdef HAVE_JPEG2000
#include "pnmFileTypeJPG2000.h"
#endif
#include "sgi.h" #include "sgi.h"
#include <config_pnmimage.h> #include <config_pnmimage.h>

View File

@ -29,8 +29,12 @@
#include <windows.h> // we need to include this before jpeglib. #include <windows.h> // we need to include this before jpeglib.
#endif #endif
#include "typedef.h" // jasper requires this first.
#include <jasper/jasper.h> #include <jasper/jasper.h>
// Undo jasper-inflicted damage.
#undef bool
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Class : PNMFileTypeJPG2000 // Class : PNMFileTypeJPG2000
// Description : For reading and writing Jpeg2000 files. // Description : For reading and writing Jpeg2000 files.