X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmJpeg2000.cxx;h=d2862fa9de6e4c9567e5d95e9ac69620384261a2;hb=37973b4c1ebed21b41d0dcdb4abe51f726bd2c2e;hp=895c865b553b971dbd5376c6e4da8de192b57b88;hpb=2fde1103e77a2448cce41d061781d0ec89ef239b;p=gdcm.git diff --git a/src/gdcmJpeg2000.cxx b/src/gdcmJpeg2000.cxx index 895c865b..d2862fa9 100644 --- a/src/gdcmJpeg2000.cxx +++ b/src/gdcmJpeg2000.cxx @@ -1,16 +1,46 @@ - - /* -------------------------------------------------------------------- */ - // - // JPEG 2000 Files - // - /* -------------------------------------------------------------------- */ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmJpeg2000.cxx,v $ + Language: C++ + Date: $Date: 2005/01/20 17:17:12 $ + Version: $Revision: 1.16 $ + + 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 "gdcmFileHelper.h" -#include -#include "gdcmFile.h" +#include +#include -bool gdcmFile::gdcm_read_JPEG2000_file (FILE *fp,void * image_buffer) { - printf("Sorry JPEG 2000 File not yet taken into account\n"); +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 + */ + +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 +//-----------------------------------------------------------------------------