gdcmJpeg2000.cxx File Reference

#include "gdcmFileHelper.h"
#include "gdcmDebug.h"
#include <iostream>
#include <fstream>
#include <openjpeg.h>

Include dependency graph for gdcmJpeg2000.cxx:

Go to the source code of this file.

Namespaces

namespace  GDCM_NAME_SPACE

Defines

#define J2K_CFMT   0
#define JP2_CFMT   1
#define JPT_CFMT   2
#define MJ2_CFMT   3
#define PXM_DFMT   0
#define PGX_DFMT   1
#define BMP_DFMT   2
#define YUV_DFMT   3

Functions

void error_callback (const char *msg, void *)
void warning_callback (const char *msg, void *)
void info_callback (const char *msg, void *)
void GDCM_NAME_SPACE::error_callback (const char *msg, void *)
 routine for JPEG decompression
void GDCM_NAME_SPACE::warning_callback (const char *msg, void *)
void GDCM_NAME_SPACE::info_callback (const char *msg, void *)
int GDCM_NAME_SPACE::int_ceildivpow2 (int a, int b)
bool GDCM_NAME_SPACE::gdcm_read_JPEG2000_file (void *raw, char *inputdata, size_t inputlength)
template<typename T>
void GDCM_NAME_SPACE::rawtoimage_fill (T *inputbuffer, int w, int h, int numcomps, opj_image_t *image)
opj_image_t * GDCM_NAME_SPACE::rawtoimage (char *inputbuffer, opj_cparameters_t *parameters, int fragment_size, int image_width, int image_height, int sample_pixel, int bitsallocated, int sign, int quality)
bool GDCM_NAME_SPACE::gdcm_write_JPEG2000_file (std::ostream *fp, char *inputdata, size_t inputlength, int image_width, int image_height, int numZ, int sample_pixel, int bitsallocated, int sign, int quality)


Define Documentation

#define BMP_DFMT   2
 

Definition at line 87 of file gdcmJpeg2000.cxx.

#define J2K_CFMT   0
 

Definition at line 81 of file gdcmJpeg2000.cxx.

Referenced by GDCM_NAME_SPACE::gdcm_read_JPEG2000_file(), and GDCM_NAME_SPACE::gdcm_write_JPEG2000_file().

#define JP2_CFMT   1
 

Definition at line 82 of file gdcmJpeg2000.cxx.

#define JPT_CFMT   2
 

Definition at line 83 of file gdcmJpeg2000.cxx.

#define MJ2_CFMT   3
 

Definition at line 84 of file gdcmJpeg2000.cxx.

#define PGX_DFMT   1
 

Definition at line 86 of file gdcmJpeg2000.cxx.

Referenced by GDCM_NAME_SPACE::gdcm_read_JPEG2000_file().

#define PXM_DFMT   0
 

Definition at line 85 of file gdcmJpeg2000.cxx.

#define YUV_DFMT   3
 

Definition at line 88 of file gdcmJpeg2000.cxx.


Function Documentation

void error_callback const char *  msg,
void * 
 

sample error callback expecting a FILE* client object

Definition at line 34 of file gdcmJpeg2000.cxx.

Referenced by GDCM_NAME_SPACE::gdcm_write_JPEG2000_file().

00034                                              {
00035   std::cerr << "Error in gdcmopenjpeg" << msg << std::endl;
00036 }

void info_callback const char *  msg,
void * 
 

sample debug callback expecting no client object

Definition at line 46 of file gdcmJpeg2000.cxx.

Referenced by GDCM_NAME_SPACE::gdcm_write_JPEG2000_file().

00046                                             {
00047   std::cerr << "Info in gdcmopenjpeg" << msg << std::endl;
00048 }

void warning_callback const char *  msg,
void * 
 

sample warning callback expecting a FILE* client object

Definition at line 40 of file gdcmJpeg2000.cxx.

Referenced by GDCM_NAME_SPACE::gdcm_write_JPEG2000_file().

00040                                                {
00041   std::cerr << "Warning in gdcmopenjpeg" << msg << std::endl;
00042 }


Generated on Fri Aug 24 13:00:43 2007 for gdcm by  doxygen 1.4.6