Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

OpenJpegInterface.hpp

00001 #ifndef _OpenJpegInterface_H
00002 #define _OpenJpegInterface_H
00003 
00004 
00005 
00024 extern"C"
00025 {
00026 #include "jpeglib.h"
00027 }
00028 
00029 class OpenJpegInterface
00030 {
00031 public:
00032         
00033 static bool readImageParams(const char* filename,
00034                                                         int* lineWidth,
00035                                                         int* padding,
00036                                                         int* nlines,
00037                                                         int* channels,
00038                                                         J_COLOR_SPACE* jColorSpace,
00039                                                         int* quality); 
00040 
00041 // read
00042 static unsigned char * read(const char* filename,
00043                                                         int* width,
00044                                                         int* height,                    // lines
00045                                                         int* channels,
00046                                                         J_COLOR_SPACE* jColorSpace); 
00047 
00048 // save byte and RGB raw data
00049 static bool save(const char* filename, 
00050                                                    unsigned char *image,
00051                                                    int width,
00052                                                    int height,
00053                                                    int padding,
00054                                                    int channels,
00055                                                    int quality);
00056 
00057 };
00058 
00059 #endif
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com