]> Creatis software - gdcm.git/blobdiff - src/gdcmJpeg2000.cxx
First stage of name normalisation : gdcm::File replace by gdcm::FileHelper
[gdcm.git] / src / gdcmJpeg2000.cxx
index 2d60fe09b816bb6973715c8e4f65dcaf78ecc098..ad5956c5b5cfbf5082a4a5717f0fcf158f35dbcc 100644 (file)
@@ -1,13 +1,46 @@
-// gdcmJpeg2000.cxx
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmJpeg2000.cxx,v $
+  Language:  C++
+  Date:      $Date: 2004/12/04 17:17:15 $
+  Version:   $Revision: 1.15 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
 //-----------------------------------------------------------------------------
-#include <stdio.h>
 #include "gdcmFile.h"
 
+#include <iostream>
+#include <fstream>
+
+namespace gdcm 
+{
+
 //-----------------------------------------------------------------------------
-bool gdcmFile::gdcm_read_JPEG2000_file (FILE *fp,void * image_buffer) {
-   printf("Sorry JPEG 2000 File not yet taken into account\n");
+ /**
+ * \brief   routine for JPEG decompression 
+ * @param fp pointer to an already open file descriptor 
+ *                      JPEG2000 encoded image
+ * @param image_buffer to receive uncompressed pixels
+ * @return 1 on success, 0 on error
+ * @warning : not yet made
+ */
+
+bool gdcm_read_JPEG2000_file (std::ifstream* fp,void* image_buffer) {
+   (void)fp;                  //FIXME
+   (void)image_buffer;        //FIXME
+   std::cout << "Sorry JPEG 2000 File not yet taken into account" << std::endl;
    return false;
 }
+} // end namespace gdcm
 
 //-----------------------------------------------------------------------------