X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmJpeg2000.cxx;h=a6f3a42a90d3a3335e2a7b30c27a9f76257042b5;hb=e37def13c113c838f969f2dc37b5b7ce4c0c2483;hp=fb942ba22438ac93bf53defc85c837227fda0583;hpb=d92be82d301c24a42e894d1d40b2b2c7173b1032;p=gdcm.git diff --git a/src/gdcmJpeg2000.cxx b/src/gdcmJpeg2000.cxx index fb942ba2..a6f3a42a 100644 --- a/src/gdcmJpeg2000.cxx +++ b/src/gdcmJpeg2000.cxx @@ -1,20 +1,43 @@ - - - /* -------------------------------------------------------------------- */ - // - // JPEG 2000 Files - // - /* -------------------------------------------------------------------- */ - -#include +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmJpeg2000.cxx,v $ + Language: C++ + Date: $Date: 2004/10/12 04:35:46 $ + Version: $Revision: 1.12 $ + + 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 "gdcmFile.h" -int -gdcmFile::gdcm_read_JPEG2000_file (void * image_buffer) { +namespace gdcm +{ +//----------------------------------------------------------------------------- + /** + * \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 + */ - printf("Sorry JPEG 2000 File not yet taken into account\n"); - return 0; +bool gdcm_read_JPEG2000_file (FILE* 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 +//-----------------------------------------------------------------------------