]> Creatis software - gdcm.git/commitdiff
ENH: Adding debug
authormalaterre <malaterre>
Tue, 5 Jul 2005 20:58:27 +0000 (20:58 +0000)
committermalaterre <malaterre>
Tue, 5 Jul 2005 20:58:27 +0000 (20:58 +0000)
src/gdcmJpeg2000.cxx

index 51f1b050c7f32b9bc8914c0b57dc75b7d3b4957b..4a33f3a187ff71156ac3330aa1f3d65a6f0bb40e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJpeg2000.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/06/07 20:23:13 $
-  Version:   $Revision: 1.24 $
+  Date:      $Date: 2005/07/05 20:58:27 $
+  Version:   $Revision: 1.25 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -35,6 +35,11 @@ namespace gdcm
 
 bool gdcm_read_JPEG2000_file (void* raw, char *inputdata, size_t inputlength)
 {
+#if 0
+  std::ofstream out("/tmp/jpeg2000.jpc");
+  out.write((char*)inputdata,inputlength);
+  out.close();
+#endif
   jas_init(); //important...
   jas_stream_t *jasStream = 
     jas_stream_memopen((char *)inputdata, inputlength);