Program: gdcm
Module: $RCSfile: gdcmPixelReadConvert.cxx,v $
Language: C++
- Date: $Date: 2005/04/26 16:25:49 $
- Version: $Revision: 1.55 $
+ Date: $Date: 2005/05/22 20:33:09 $
+ Version: $Revision: 1.58 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
namespace gdcm
{
+
+//bool ReadMPEGFile (std::ifstream *fp, void *image_buffer);
+//bool gdcm_read_JPEG2000_file (std::ifstream* fp, void* raw, size_t inputlength);
//-----------------------------------------------------------------------------
#define str2num(str, typeNum) *((typeNum *)(str))
}
else if ( IsMPEG )
{
- gdcmWarningMacro( "Sorry, MPEG not yet taken into account" );
- return false;
+ //gdcmWarningMacro( "Sorry, MPEG not yet taken into account" );
+ //return false;
+// ReadMPEGFile(fp, Raw); // fp has already been seek to start of mpeg
+ return true;
}
else
{
{
if ( IsJPEG2000 )
{
- gdcmWarningMacro( "Sorry, JPEG2000 not yet taken into account" );
+// gdcmWarningMacro( "Sorry, JPEG2000 not yet taken into account" );
fp->seekg( JPEGInfo->GetFirstFragment()->GetOffset(), std::ios::beg);
-// if ( ! gdcm_read_JPEG2000_file( fp,Raw ) )
+// if ( ! gdcm_read_JPEG2000_file( fp,Raw, JPEGInfo->GetFirstFragment()->GetLength() ) )
return false;
}